Zitat von bulia byak <buliabyak@...400...>:
Hi all,
in the last two days:
- on startup: ** (inkscape:18931): CRITICAL **: gdouble
sp_document_height(SPDocument*): assertion `document->root != NULL' failed
[...]
- a green fish skeleton (!) is visible above the canvas on startup or
loading any document - not an object but some stray helperpath display, likely from a broken LPE
These two are caused by my recent commits. I'm sorry that I haven't fixed this yet. My first attempt was screwed by a broken internet connection, and at the moment I'm not at home and thus can't connect my laptop to the internet to commit a fix.
Both of these errors are harmless, though. The green skeleton is a helperpath from an icon which contains an LPE (namely, the icon for "edit next parameter on canvas"). Part of my recent changes was to add such helperpaths automatically for selected items with LPE applied. The bug is that the path in said icon is not selected but still a helperpath is shown. The console warning message is then displayed because in the helperpath code the item's transform is computed, which needs to access the document's height - but no document exists yet (at least that's what I assume).
A quick way to get rid of both errors (until I have internet access again and can commit a proper fix) is to comment out lines 354 and 355 in sp-lpe-item.cpp, which read
sp_lpe_item_remove_temporary_canvasitems(lpeitem, desktop); sp_lpe_item_add_temporary_canvasitems(lpeitem, desktop);
Could someone please do this for me? Thanks!
Sorry for the hassle (but at least it has initiated a discussion about proper error handling), Max