bulia byak wrote:
Hi all,
in the last two days:
- on startup: ** (inkscape:18931): CRITICAL **: gdouble
sp_document_height(SPDocument*): assertion `document->root != NULL' failed
Hi, bulia!
I saw that, too. The problem seems minor. The GUI is too short. However, it was good to see it in a different way. I'm glad that you caught it, sir. :-)
If you look at the diagnostic, it's good that it caught a bad state. The root -was- screwed.
But its handling of the error is all wrong. Inkscape has far too many legacy assert()s and things like that in the source. This could be handled so much better by a little more Adrian Monk-like paranoid parameter checking. And follow that up by smarter error handling. Instead of dying or bailing, try to get back to a quiescent, default, safe state.
Maybe Inkscape needs a document and/or design pertaining to depths of error handling and recovery. Currently the depth is 0.
bob