Minor bug: Seamly fails when closing last open pattern

When I have an open pattern, & close it using the Window menu, the whole program quits with an error: ExceptionBadId: Can't find object, id = 58 the id# varies, apparently based on how many objects are in the open file, but not equal to the number of items. It doesn’t seem to interfere with anything important, but it is a little annoying when I just wanted to switch to working on a different pattern without leaving the current pattern open! It happens both in the older,

shorty@Shelob:/media/shorty/Janus/Seamly2D$ seamly2d
Checked locale: "en_US"
DEBUG:Log file /home/shorty/.config/Seamly2DTeam/seamly2d-pid9292.log was locked.
DEBUG:Clearing old logs
DEBUG:Version: "0.6.0.1"
DEBUG:Build revision: unknown
DEBUG:"Based on Qt 5.9.5 (GCC 5.4.0 20160609, 64 bit)"
DEBUG:Built on Jan 13 2018 at 13:09:51
DEBUG:Command-line arguments: ("seamly2d")

& the appimage, (full debug list from load to fail.)

shorty@Shelob:/media/shorty/Janus/Seamly2D$ ./Seamly2D.AppImage
Checked locale: "en_US"
DEBUG:Log file /home/shorty/.config/Seamly2DTeam/seamly2d-pid9186.log was locked.
DEBUG:Clearing old logs
DEBUG:Version: "0.6.0.1"
DEBUG:Build revision: Git:c403baf205f0
DEBUG:"Based on Qt 5.13.2 (GCC 7.5.0, 64 bit)"
DEBUG:Built on Jul 30 2020 at 19:27:10
DEBUG:Command-line arguments: ("./Seamly2D.AppImage")
DEBUG:Process ID: 9186
DEBUG:Checked locale: "en_US"
DEBUG:Initialization property browser.
DEBUG:Initialization groups dock.
DEBUG:Can't get tag Groups.
DEBUG:Updating recent file actions.
DEBUG:Reading settings.
DEBUG:Set current name to ""
DEBUG:Loading new file /home/shorty/seamly2d/patterns/PLEATED CIRCLE.val.
DEBUG:Loking file
DEBUG:Pattern file /home/shorty/seamly2d/patterns/PLEATED CIRCLE.val was locked.
DEBUG:Validation xml file /home/shorty/seamly2d/patterns/PLEATED CIRCLE.val.
DEBUG:Schema loaded.
DEBUG:Full parsing file
DEBUG:Parsing pattern.
DEBUG:Full parse.
DEBUG:Clearing container data for full parse.
DEBUG:Tag version.
DEBUG:Tag unit.
DEBUG:Tag description.
DEBUG:Tag notes.
DEBUG:Tag measurements.
DEBUG:Tag increments.
DEBUG:Tag draw.
DEBUG:Tag calculation.
DEBUG:Tag point.
DEBUG:Tag arc.
DEBUG:Tag point.
DEBUG:Tag point.
DEBUG:Tag point.
DEBUG:Tag point.
DEBUG:Tag point.
DEBUG:Tag point.
DEBUG:Tag point.
DEBUG:Tag point.
DEBUG:Tag point.
DEBUG:Tag point.
DEBUG:Tag point.
DEBUG:Tag point.
DEBUG:Tag point.
DEBUG:Tag point.
DEBUG:Tag point.
DEBUG:Tag line.
DEBUG:Tag point.
DEBUG:Tag point.
DEBUG:Tag point.
DEBUG:Tag point.
DEBUG:Tag point.
DEBUG:Tag point.
DEBUG:Tag point.
DEBUG:Tag point.
DEBUG:Tag line.
DEBUG:Tag line.
DEBUG:Tag point.
DEBUG:Tag line.
DEBUG:Tag modeling.
DEBUG:Tag point.
DEBUG:Tag arc.
DEBUG:Tag point.
DEBUG:Tag point.
DEBUG:Tag point.
DEBUG:Tag path.
DEBUG:Tag point.
DEBUG:Tag point.
DEBUG:Tag path.
DEBUG:Tag point.
DEBUG:Tag point.
DEBUG:Tag path.
DEBUG:Tag point.
DEBUG:Tag point.
DEBUG:Tag path.
DEBUG:Tag point.
DEBUG:Tag point.
DEBUG:Tag point.
DEBUG:Tag point.
DEBUG:Tag path.
DEBUG:Tag point.
DEBUG:Tag point.
DEBUG:Tag point.
DEBUG:Tag point.
DEBUG:Tag path.
DEBUG:Tag point.
DEBUG:Tag point.
DEBUG:Tag point.
DEBUG:Tag point.
DEBUG:Tag path.
DEBUG:Tag point.
DEBUG:Tag point.
DEBUG:Tag point.
DEBUG:Tag point.
DEBUG:Tag path.
DEBUG:Tag details.
DEBUG:Setting size to 26.4567 0
DEBUG:Actual size set to 26.4567
DEBUG:Setting size to 26.4567 0
DEBUG:Actual size set to 26.4567
DEBUG:Tag groups.
DEBUG:Arrow tool.
DEBUG:Canceling tool.
DEBUG:Dialog closed.
DEBUG:Enabled arrow tool.
DEBUG:Set current name to "/home/shorty/seamly2d/patterns/PLEATED CIRCLE.val"
DEBUG:Updating recent file list.
DEBUG:Updating recent file actions.
DEBUG:Updating restore file list.
DEBUG:File loaded.
DEBUG:Arrow tool.
DEBUG:Canceling tool.
DEBUG:Dialog closed.
DEBUG:Enabled arrow tool.
DEBUG:Show details scene
DEBUG:Show draw scene
DEBUG:Arrow tool.
DEBUG:Canceling tool.
DEBUG:Dialog closed.
DEBUG:Enabled arrow tool.
DEBUG:Arrow tool.
DEBUG:Canceling tool.
DEBUG:Dialog closed.
DEBUG:Enabled arrow tool.
DEBUG:Show details scene
DEBUG:Show draw scene
DEBUG:Arrow tool.
DEBUG:Canceling tool.
DEBUG:Dialog closed.
DEBUG:Enabled arrow tool.
DEBUG:Show draw scene
DEBUG:Arrow tool.
DEBUG:Canceling tool.
DEBUG:Dialog closed.
DEBUG:Enabled arrow tool.
DEBUG:Show draw scene
DEBUG:Arrow tool.
DEBUG:Canceling tool.
DEBUG:Dialog closed.
DEBUG:Enabled arrow tool.
DEBUG:File /home/shorty/seamly2d/patterns/PLEATED CIRCLE.val closed correct.
DEBUG:Reseting main window.
DEBUG:Unlocked pattern file.
DEBUG:Show draw scene
DEBUG:Arrow tool.
DEBUG:Canceling tool.
DEBUG:Dialog closed.
DEBUG:Enabled arrow tool.
DEBUG:Returned to Draw mode.
DEBUG:Clearing container data.
DEBUG:Clearing pattern.
DEBUG:Set current name to ""
DEBUG:Canceling tool.
DEBUG:Dialog closed.
CRITICAL:Error bad id. Program will be terminated.

ExceptionBadId: Can't find object, id = 58


DEBUG:Application closing.
shorty@Shelob:/media/shorty/Janus/Seamly2D$ 

This example is using the pleated circle which Grace posted recently: How to create Pleat markings - #5 by Grace, because it’s a small pattern, but it happened with all the others I tried as well.

1 Like

Known issue… I have already pushed a fix in the new notch options. As soon as those commits are merged the pattern close issue will be fixed.

Also as an aside note: I plan on making changes /additions to the menus, and you can look to find the “close pattern” moved to the proper menu “File->Close” were it belongs. A Window->Close menu item is only used to close a window when an application opens more than one (document) window in the same instance of the app. That is, it’s to close a window, not a file. In the case of Seamly2D you are closing a pattern file.

3 Likes

Awesome!!:heavy_heart_exclamation:

1 Like

This issue seems to have been fixed in the 20200907 Weekly Release. Thanks! @Douglas & the rest of the dev team!

2 Likes