bugGChemPaint - Bugs: bug #19840, Gchempaint crashes when selecting...

 
 

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

bug #19840: Gchempaint crashes when selecting a group of elements

Submitted by:  Julian Sikorski <belegdol>
Submitted on:  Wed 09 May 2007 05:58:37 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Jean Bréfort <jean_brefort>
Open/Closed: Closed

Mon 28 May 2007 04:19:15 PM UTC, comment #2:

closed after 0.8.0 release

Jean Bréfort <jean_brefort>
Project AdministratorIn charge of this item.
Thu 10 May 2007 08:23:10 AM UTC, comment #1:

This was a bug from the earliest days of GChamPaint. I don't know how it went unnoticed, and unfixed.

Jean Bréfort <jean_brefort>
Project AdministratorIn charge of this item.
Wed 09 May 2007 05:58:37 PM UTC, original submission:

Let's shake the program and let the bugs fall out into damnation ;) I think I've got a reproducible case. It's a bit tricky, but seems to crash every time:
1. Pick a-D-glucopyranose and b-D-fructofuranose from the templates
2. Place one below another
3. Delete anomeric OH groups and create a glycosidic bond to form sucrose
4. Select the whole molecule by dragging the arrow tool around it
Program crashes for me at this point. Here is the backtrace:

(gdb) run
Starting program: /usr/bin/gchempaint
[Thread debugging using libthread_db enabled]
[New Thread 46912512071520 (LWP 7452)]
[New Thread 1084238144 (LWP 7455)]
[New Thread 1094728000 (LWP 7456)]
[New Thread 1105217856 (LWP 7457)]
[Thread 1084238144 (LWP 7455) exited]
[Thread 1105217856 (LWP 7457) exited]
[Thread 1094728000 (LWP 7456) exited]
[New Thread 1094728000 (LWP 7458)]
[Thread 1094728000 (LWP 7458) exited]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 46912512071520 (LWP 7452)]
0x00002aaaaad070f8 in gcu::Object::GetGroup (this=0xef0010) at object.cc:97
97 while (object->m_Parent->GetType () != DocumentType)
(gdb) bt full
#0 0x00002aaaaad070f8 in gcu::Object::GetGroup (this=0xef0010) at object.cc:97
object = (class gcu::Object *) 0x3900000001
#1 0x000000000047ebb4 in gcpWidgetData::IsSelected (this=0xd81f50,
obj=0xef0010) at widgetdata.cc:150
pGroup = <value optimized out>
#2 0x00002aaab917f5d0 in gcpSelectionTool::OnRelease (this=0x998d00)
at selectiontool.cc:219
x0 = 87.969583333333333
y0 = 55.748750000000001
x1 = 93.969583333333333
y1 = 61.748750000000001
#3 0x0000000000476fa3 in gcpTool::OnRelease (this=0xef0010,
x=61.748750000000001, y=93.969583333333333, state=15663120) at tool.cc:85
No locals.
#4 0x000000000047b04c in gcpView::OnEvent (this=0x764710, item=0xd56610,
event=0xf8a670, widget=<value optimized out>) at view.cc:310
result = <value optimized out>
App = <value optimized out>
pTheme = (gcpTheme *) 0x6fd3c0
pActiveTool = (class gcpTool *) 0x998d00
x = -22
y = -66
Obj = (class gcu::Object *) 0xd1b770
---Type <return> to continue, or q <return> to quit---
#5 0x000000000047b1f9 in on_event (item=0xd56610, event=0xf8a670,
widget=0xd1b760) at view.cc:152
No locals.
#6 0x0000003d0a623ad3 in gnome_canvas_marshal_BOOLEAN__BOXED ()
from /usr/lib64/libgnomecanvas-2.so.0
No symbol table info available.
#7 0x000000399f00af19 in g_closure_invoke () from /lib64/libgobject-2.0.so.0
No symbol table info available.
#8 0x000000399f01a788 in g_signal_chain_from_overridden ()
from /lib64/libgobject-2.0.so.0
No symbol table info available.
#9 0x000000399f01b99d in g_signal_emit_valist ()
from /lib64/libgobject-2.0.so.0
No symbol table info available.
#10 0x000000399f01bda3 in g_signal_emit () from /lib64/libgobject-2.0.so.0
No symbol table info available.
#11 0x0000003d0a61ee0e in gnome_canvas_window_to_world ()
from /usr/lib64/libgnomecanvas-2.so.0
No symbol table info available.
#12 0x0000003d0a620775 in gnome_canvas_set_scroll_region ()
from /usr/lib64/libgnomecanvas-2.so.0
No symbol table info available.
#13 0x0000003d099325ad in gtk_marshal_BOOLEAN__VOID ()
---Type <return> to continue, or q <return> to quit---
from /usr/lib64/libgtk-x11-2.0.so.0
No symbol table info available.
#14 0x000000399f00af19 in g_closure_invoke () from /lib64/libgobject-2.0.so.0
No symbol table info available.
#15 0x000000399f01ad98 in g_signal_chain_from_overridden ()
from /lib64/libgobject-2.0.so.0
No symbol table info available.
#16 0x000000399f01b99d in g_signal_emit_valist ()
from /lib64/libgobject-2.0.so.0
No symbol table info available.
#17 0x000000399f01bda3 in g_signal_emit () from /lib64/libgobject-2.0.so.0
No symbol table info available.
#18 0x0000003d09a3056e in gtk_widget_get_default_style ()
from /usr/lib64/libgtk-x11-2.0.so.0
No symbol table info available.
#19 0x0000003d0992bbbd in gtk_propagate_event ()
from /usr/lib64/libgtk-x11-2.0.so.0
No symbol table info available.
#20 0x0000003d0992cbd1 in gtk_main_do_event ()
from /usr/lib64/libgtk-x11-2.0.so.0
No symbol table info available.
#21 0x0000003d094467ec in gdk_add_client_message_filter ()
from /usr/lib64/libgdk-x11-2.0.so.0
---Type <return> to continue, or q <return> to quit---
No symbol table info available.
#22 0x000000399ec2cf64 in g_main_context_dispatch ()
from /lib64/libglib-2.0.so.0
No symbol table info available.
#23 0x000000399ec2fd9d in g_main_context_check () from /lib64/libglib-2.0.so.0
No symbol table info available.
#24 0x000000399ec300aa in g_main_loop_run () from /lib64/libglib-2.0.so.0
No symbol table info available.
#25 0x0000003d0992cf63 in gtk_main () from /usr/lib64/libgtk-x11-2.0.so.0
No symbol table info available.
#26 0x0000000000426cce in main (argc=0, argv=0x7fffb4fcf5d0) at main.cc:109
context = <value optimized out>
error = (GError *) 0x0
App = (class gcpStandaloneApp *) 0x733a00
uri = (GnomeVFSURI *) 0x9b3550
auri = (GnomeVFSURI *) 0x0
path = <value optimized out>
dir = 0x9b3020 ""
mime_type = <value optimized out>
(gdb)

If the optimisations are disturbing you, I can compile the source directly and see if it helps. Keep in mind that due to crappiness of internet connection I'm stuck behind (dorms resnet, restrictive proxy) I can't access cvs unless you could provide me with a snapshot.

Julian Sikorski <belegdol>

 

Attached Files
file #12739:  sucrose.gchempaint added by belegdol (4KiB - application/x-gchempaint - That's how it is supposed to look. Does not cause crash, surprisingly.)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jean_brefort (Updated the item)
  • -unavailable- added by belegdol (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 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 28 May 2007 04:19:15 PM UTCjean_brefortOpen/ClosedOpen=>Closed
    Thu 10 May 2007 08:23:10 AM UTCjean_brefortStatusConfirmed=>Fixed
    Wed 09 May 2007 06:06:42 PM UTCjean_brefortStatusNone=>Confirmed
      Assigned toNone=>jean_brefort
    Wed 09 May 2007 05:58:37 PM UTCbelegdolAttached File-=>Added sucrose.gchempaint, #12739

    Back to the top


    Powered by Savane 3.1-cleanup1