dee

Dee.ResourceManager fails to load the first model attempted

Bug #818245 reported by Ken VanDine
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Unity
Fix Released
Undecided
Unassigned
dee
Medium
Mikkel Kamstrup Erlandsen
unity-2d
Undecided
Unassigned
dee (Ubuntu)
Medium
Mikkel Kamstrup Erlandsen
unity (Ubuntu)
Undecided
Unassigned

Bug Description

Using the Dee.ResourceManager, I found that it fails to load an existing stored model the first time. The error is:

dee-CRITICAL **: No known GType for type name DeeSequenceModel

A second attempt on the same model also seems to fail, but an attempt on a second model succeeds. My work around for gwibber was to attempt to load a tiny, useless model first then load the models I actually need.

Revision history for this message
Mikkel Kamstrup Erlandsen (kamstrup) wrote :

Can you try with lp:~kamstrup/dee/resource-man-unknown-gtype Ken?

I think the root problem is that the Dee.SequenceModel GType has not been initialized yet. You can alternatively verify this by calling a dee_sequence_model_get_type() before using the resource manager...

Changed in unity-2d:
status: New → Invalid
Revision history for this message
Mikkel Kamstrup Erlandsen (kamstrup) wrote :

I committed a fix to trunk that pre-registers DeeSequenceModel with the serialization subsystem. Also added a more helpful error message.

Changed in dee:
milestone: none → 0.5.20
assignee: nobody → Mikkel Kamstrup Erlandsen (kamstrup)
importance: Undecided → Medium
status: New → Fix Committed
Changed in dee:
status: Fix Committed → Fix Released
Didier Roche (didrocks)
Changed in unity:
status: New → Fix Released
Didier Roche (didrocks)
Changed in unity-2d:
status: Invalid → Fix Released
Changed in unity-2d:
status: Fix Released → Invalid
Changed in dee (Ubuntu):
assignee: nobody → Mikkel Kamstrup Erlandsen (kamstrup)
importance: Undecided → Medium
status: New → Fix Released
Changed in unity (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers