bugGnome Chemistry Utils - Bugs: bug #31812, undo/redo with cycle tool crashing...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #31812: undo/redo with cycle tool crashing gchempaint

Submitted by:  argon <argon>
Submitted on:  Mon 06 Dec 2010 09:04:29 PM UTC  
 
Category: NoneSeverity: 5 - Blocker
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Jean Bréfort <jean_brefort>
Open/Closed: Closed

Tue 07 Dec 2010 07:39:01 AM UTC, comment #2:

Patch commited to both branches. Hopfully fixed. Feel free to reopen if not.

Jean Bréfort <jean_brefort>
Project AdministratorIn charge of this item.
Tue 07 Dec 2010 07:11:13 AM UTC, comment #1:

Oops, good catch. This is a major bug. This occurs because menu actions are available while you ae dragging the mouse. I need to fix that in both branches. Pasting something is quite fun too.

Jean Bréfort <jean_brefort>
Project AdministratorIn charge of this item.
Mon 06 Dec 2010 09:04:29 PM UTC, original submission:

How to reproduce:
1. Select six membered cycle, draw a few at the screen.
2. Start adding as fast as you can with mandatory Z clicking (it causes cycles combined by Zr atoms).
3. Be even more crazy and start clicking CTRL+Z with simultaneously adding more cycles.
4. Look at gdb! And OMG! It says gchempaint just crashed!
My drawing area in crash moment: http://m.admin.org.pl/crashed.png

The most interesting line is 638 cycletool.cc: No such file or directory.

##### BACKTRACE 1 #####

Program received signal SIGSEGV, Segmentation fault.
gcpCycleTool::CheckIfAllowed (this=0x8270650) at cycletool.cc:638
638 cycletool.cc: No such file or directory.
in cycletool.cc
(gdb) backtrace
#0 gcpCycleTool::CheckIfAllowed (this=0x8270650) at cycletool.cc:638
#1 0xb5516ce8 in gcpCycleTool::OnDrag (this=0x8270650) at cycletool.cc:470
#2 0xb7fbcbef in gcp::Tool::OnDrag (this=0x8270650, x=328, y=115, state=276) at tool.cc:80
#3 0xb7fbf9b3 in gcp::View::OnDrag (this=0x851ff28, client=0x0, x=328, y=115, state=276) at view.cc:1017
#4 0xb7742817 in gccv::CanvasPrivate::OnMotion (canvas=0x851ffc0, event=0x85a5160) at canvas.cc:134
#5 0xb7ad0134 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#6 0x0851ffc0 in ?? ()
#7 0x085a5160 in ?? ()
#8 0x084d8b28 in ?? ()
#9 0x4eb3b9b9 in g_closure_ref () from /usr/lib/libgobject-2.0.so.0
#10 0x0851ffc0 in ?? ()
#11 0x20000002 in ?? ()
#12 0xb7731ff4 in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#13 0xbfffe928 in ?? ()
#14 0x4eb6fff4 in ?? () from /usr/lib/libgobject-2.0.so.0
#15 0x08522ba0 in ?? ()
#16 0xbfffea20 in ?? ()
#17 0x00000000 in ?? ()

###### BACKTRACE 2 ######

Program received signal SIGSEGV, Segmentation fault.
gcpCycleTool::CheckIfAllowed (this=0x8270650) at cycletool.cc:638
638 cycletool.cc: No such file or directory.
in cycletool.cc
(gdb) backtrace
#0 gcpCycleTool::CheckIfAllowed (this=0x8270650) at cycletool.cc:638
#1 0xb5516ce8 in gcpCycleTool::OnDrag (this=0x8270650) at cycletool.cc:470
#2 0xb7fbcbef in gcp::Tool::OnDrag (this=0x8270650, x=347, y=230, state=276) at tool.cc:80
#3 0xb7fbf9b3 in gcp::View::OnDrag (this=0x85226d0, client=0x0, x=347, y=230, state=276) at view.cc:1017
#4 0xb7742817 in gccv::CanvasPrivate::OnMotion (canvas=0x851ff98, event=0x85a5070) at canvas.cc:134
#5 0xb7ad0134 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#6 0x0851ff98 in ?? ()
#7 0x085a5070 in ?? ()
#8 0x084df328 in ?? ()
#9 0x4eb3b9b9 in g_closure_ref () from /usr/lib/libgobject-2.0.so.0
#10 0x0851ff98 in ?? ()
#11 0x20000002 in ?? ()
#12 0xb7731ff4 in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#13 0xbfffe928 in ?? ()
#14 0x4eb6fff4 in ?? () from /usr/lib/libgobject-2.0.so.0
#15 0x08522bf8 in ?? ()
#16 0xbfffea20 in ?? ()
#17 0x00000000 in ?? ()

argon <argon>
Project Member

 

Attached Files
file #22142:  31812.patch added by jean_brefort (2KiB - text/x-patch - Should fix this issue and a few others. Please test.)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by argon (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 03 Jan 2011 07:45:12 AM UTCjean_brefortOpen/ClosedOpen=>Closed
    Tue 07 Dec 2010 07:39:01 AM UTCjean_brefortStatusConfirmed=>Fixed
    Tue 07 Dec 2010 07:22:56 AM UTCjean_brefortAttached File-=>Added 31812.patch, #22142
    Tue 07 Dec 2010 07:11:13 AM UTCjean_brefortSeverity3 - Normal=>5 - Blocker
      StatusNone=>Confirmed
      Assigned toNone=>jean_brefort

    Back to the top


    Powered by Savane 3.1-cleanup1