google-code-export / google-gadgets-for-linux

Automatically exported from code.google.com/p/google-gadgets-for-linux
0 stars 0 forks source link

Sidebar: Crash when dragging a gadget out of sidebar. #91

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Enable "always on top" option of sidebar.
2. drag a gadget out of sidebar.
3. try to drag the gadget around the screen and back to sidebar.

What is the expected output? What do you see instead?
crash backtrace:

19:22.695: ../../../ggadget/gtk/cairo_graphics.cc:58: Delete CairoGraphics:
0xa459d10
19:22.695: ../../ggadget/decorated_view_host.cc:153:
DecoratedView::UpdateViewSize()
19:22.695: ../../../ggadget/gtk/single_view_host.cc:256: New window size: 69 74
19:22.703: ../../../ggadget/gtk/single_view_host.cc:631: View window is
going to be shown.
19:22.730: ../../../hosts/simple/sidebar_gtk_host.cc:295: DragUndock, grab
pointor for 0x95f0780
19:22.786: ../../../ggadget/gtk/single_view_host.cc:620:
WindowStateHandler(0x81a8a10): 0x1, 0x0
19:23.212: ../../../ggadget/gtk/single_view_host.cc:603:
FocusOutHandler(0x81a88b0)
19:23.214: ../../../ggadget/gtk/single_view_host.cc:593:
FocusInHandler(0x81a8a10)
19:28.739: ../../../hosts/simple/sidebar_gtk_host.cc:1059: TRACE:
1.3166666666666667 after 12
19:29.047: ../../ggadget/memory_options.cc:31: option abandon changed to
JSON:"762"
19:31.047: ../../../hosts/simple/sidebar_gtk_host.cc:1164: DragUndock,
ungrab for 0x95f0780
19:31.054: ../../ggadget/decorated_view_host.cc:153:
DecoratedView::UpdateViewSize()
19:32.097: ../../../hosts/simple/sidebar_gtk_host.cc:1164: DragUndock,
ungrab for (nil)

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb6f74720 (LWP 30041)]
0xb77463ce in ggadget::Gadget::GetInstanceID (this=0x0) at
../../ggadget/gadget.cc:902
902   return impl_->instance_id_;
(gdb) bt
#0  0xb77463ce in ggadget::Gadget::GetInstanceID (this=0x0) at
../../ggadget/gadget.cc:902
#1  0x0805a145 in hosts::gtk::SidebarGtkHost::Impl::HandlePopoutDragEnd
(widget=0x82616b8, event=0x808b2e8, impl=0x86eddc8)
    at ../../../hosts/simple/sidebar_gtk_host.cc:1165
#2  0xb7ccb8d4 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#3  0x082616b8 in ?? ()
#4  0x0808b2e8 in ?? ()
#5  0x086eddc8 in ?? ()
#6  0xb7a1e680 in ?? () from /usr/lib/libgobject-2.0.so.0
#7  0xb7ccb870 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#8  0x085c81d8 in ?? ()
#9  0xbfae9268 in ?? ()
#10 0xb79ed759 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
Backtrace stopped: frame did not save the PC
(gdb) 

Original issue reported on code.google.com by james...@gmail.com on 22 May 2008 at 5:21

GoogleCodeExporter commented 9 years ago
I think it's better to use ASSERT to do necessary check in every signal 
handlers, to
let debug easier.

Original comment by james...@gmail.com on 22 May 2008 at 5:22

GoogleCodeExporter commented 9 years ago

Original comment by james...@gmail.com on 8 Jun 2008 at 5:27