Inkscape Community

Help Using Inkscape => Beyond the Basics => Topic started by: tubahorse on September 08, 2017, 11:08:23 AM

Title: Bezier Curve Tool Ellipse mode causes crash
Post by: tubahorse on September 08, 2017, 11:08:23 AM
Hello! I recently updated to the newest version of inkscape, and there's one glaring bug that has caused me some grief. Whenever I make a line with the bezier tool in ellipse mode, if I move that line and then try to undo past the creation of that line with it still selected, Inkscape crashes immediately. It reads "Inkscape encountered an internal error and will close now. Automatic backups of unsaved documents were done to the following locations", and then forces me to close.

Why is this?
Title: Re: Bezier Curve Tool Ellipse mode causes crash
Post by: Moini on September 08, 2017, 05:23:29 PM
Can't reproduce here - but it sounds like a bug.
Can you browse the bug reports here: https://bugs.launchpad.net/inkscape and if you can't find yours, make a new one with step-by-step instructions how to reproduce, and also include operating system and Inkscape version there?
Title: Re: Bezier Curve Tool Ellipse mode causes crash
Post by: brynn on September 09, 2017, 08:50:38 PM
Welcome to the forum!

I'm trying to test here, but I need more details.  Which options do you have enabled on the control bar, besides the Ellipse shape option?

I've tried a number of options, but still haven't reproduced it.

Does this happen in any file you edit?  Or is it only happening in one file?  If it seems particular to one, or maybe certain files, if you could share one, we could test further.
Title: Re: Bezier Curve Tool Ellipse mode causes crash
Post by: tubahorse on September 11, 2017, 01:01:38 PM
Does this happen in any file you edit?  Or is it only happening in one file?
It's been happening in every picture I've worked on nearly without fail. The mode is regular bezier path, and the shape is ellipse. Those are the only options visible.

EDIT: As it turns out, my version listed is incorrect. I'm using 0.92.1. I will try reproducing this in the new version'

EDIT 2: The problem is still persisting in version 0.92.2
Title: Re: Bezier Curve Tool Ellipse mode causes crash
Post by: brynn on September 11, 2017, 08:12:08 PM
Is it just a simple 2-node path that will create a crash?  Can you show us an example?  Or does it crash before you can finish something?  If you can, please share a file with us.

Does it happen in a new blank file?  Is there something else in the file, when this happens?  Like maybe you're tracing an imported raster image?

I agree with Moini, that this is probably going to be a bug.  I was just hoping to find some parameters to report.  Otherwise, it will be harder for developers.

Oh, what about templates -- are you using a custom template?

I found a bug about rotating pattern along path:  https://bugs.launchpad.net/inkscape/+bug/1658330  (Using the Pen/Bezier tool with Ellipse shape is automatically creating pattern along path LPE.)

Oh, look at this one!  https://bugs.launchpad.net/inkscape/+bug/323061  It's a good sign that it says Fix Committed, if this is the problem you're having.

This one could be related:  https://bugs.launchpad.net/inkscape/+bug/1482806

Do any of those seem to fit?
Title: Re: Bezier Curve Tool Ellipse mode causes crash
Post by: tubahorse on September 11, 2017, 09:28:36 PM
Here, I've made a video detailing exactly what happens. I demonstrate the glitch twice, as well as show my preferences, my system specs, and the inkscape version. I had a friend try it as well and she got the same result. Note this is a fresh install of Inkscape 0.92.2

https://youtu.be/YE-ahcmeAFY
Title: Re: Bezier Curve Tool Ellipse mode causes crash
Post by: brynn on September 11, 2017, 10:20:59 PM
Ok, following your video, I see you draw the path.  Then you switch to the node tool (using key shortcut apparently) and drag the path in 2 places.  Then the path snaps back to a straight line right before the error message appears.

Did the crash come when you used Undo (via Ctrl Z) ?  I believe that IS a known bug.  I'll see if I can find it.

Edit
I think this is it:  https://bugs.launchpad.net/inkscape/+bug/540591

(Remember how I said that using the Ellipse shape with Pen (and Pencil) tools automatically creates Pattern Along Path LPE?)

Edit #2 -- And btw, I can absolutely reproduce that crash!
Title: Re: Bezier Curve Tool Ellipse mode causes crash
Post by: brynn on September 11, 2017, 10:31:57 PM
I don't know if this works for everyone.  But if I switch from the Node tool to some other tool, before I Undo, it avoids the crash.

Edit
Actually I just looked to the status of the bug report, and it says Fix Released.  So either it's not fixed, or I have not found the correct bug report.  Maybe Moini can comment here?  She knows more about bugs than I do.
Title: Re: Bezier Curve Tool Ellipse mode causes crash
Post by: tubahorse on September 12, 2017, 12:28:25 AM
Did the crash come when you used Undo (via Ctrl Z) ?
Yes, and I know it can be avoided by switching tools, but if I'm not thinking about it as I work and just try to undo it, boom I'm hit with a crash. Thankfully it makes a dump save.

Actually I just looked to the status of the bug report, and it says Fix Released.
Given this is a fresh install and fresh update as of today, it surely isn't fixed.
Title: Re: Bezier Curve Tool Ellipse mode causes crash
Post by: brynn on September 12, 2017, 04:52:49 AM
Well, assuming what we're seeing is this same bug, I agree.  But there's way too much technical info in that report, for me to feel sure it's the same thing.

What I would do is make a new post to that report.  Explain everything you've explained here, and including the part about the crash coming after Undo.

If you don't want to get involved on this level, I could make the post for you.

But I would wait and see what Moini thinks.  As I said before, she understands a lot more technical things than I do, and she might be able to say whether this problem you're having is the same as that bug.  Or she might know if there was some last minute decision about including the fix, but no one remembered to update the report.
Title: Re: Bezier Curve Tool Ellipse mode causes crash
Post by: tubahorse on September 12, 2017, 09:59:02 AM
Okay. I'll wait for their input, and then if that yield no results I can go report the bug.
Title: Re: Bezier Curve Tool Ellipse mode causes crash
Post by: Moini on September 12, 2017, 03:17:06 PM
None of the linked bug reports seem to be covering the issue, and I couldn't find one that does (I'm not a great bug report hunter, though).

Please create a new one, with a title similar to 'Memory access error (crash) on undo of Pattern along Path' (I get a memory access error message, and it 'works', i.e. crashes, even with a PaP effect added via Path effects menu). Include the video link, and Inkscape version, I think it's all that is needed. Reproduced on Linux Mint 18.2.
Title: Re: Bezier Curve Tool Ellipse mode causes crash
Post by: tubahorse on September 13, 2017, 07:01:49 AM
I've made the report. Now all we do is wait, I guess.
Title: Re: Bezier Curve Tool Ellipse mode causes crash
Post by: tubahorse on September 13, 2017, 10:30:40 AM
It seems the fix has been committed and will be out with inkscape 0.92.3! Thank you both so much for helping me figure this out.

https://bugs.launchpad.net/inkscape/+bug/1716926
Title: Re: Bezier Curve Tool Ellipse mode causes crash
Post by: Moini on September 13, 2017, 03:25:05 PM
Congrats to your successful bug report! :-)
Title: Re: Bezier Curve Tool Ellipse mode causes crash
Post by: brynn on September 13, 2017, 08:47:30 PM
Good news!

Good job!
Title: Re: Bezier Curve Tool Ellipse mode causes crash
Post by: brynn on May 22, 2018, 08:32:51 PM
The messages posted at the end of this topic were split into a new topic:  https://forum.inkscapecommunity.com/index.php?topic=1153.0