noreply at rubyforge.org
2007-Apr-29 00:15 UTC
[Wxruby-development] [ wxruby-Bugs-10438 ] ClientDC segfault on exit
Bugs item #10438, was opened at 2007-04-29 00:15 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=10438&group_id=35 Category: Incorrect behavior Group: None Status: Open Resolution: None Priority: 3 Submitted By: Alex Fenton (brokentoy) Assigned to: Alex Fenton (brokentoy) Summary: ClientDC segfault on exit Initial Comment: If a ClientDC has been created I get a segfault on exit on OS X. Think ClientDC should be managed using a block in the same way as PaintDC. Backtrace is: Program received signal EXC_BAD_ACCESS, Could not access memory. 0x98bc1cbc in CGGStateRelease () (gdb) whe #0 0x98bc1cbc in CGGStateRelease () #1 0x98bc5f78 in CGContextRestoreGState () #2 0x036d8a74 in wxMacCoreGraphicsContext::SetNativeContext(CGContext*) () #3 0x036d7e70 in wxMacCoreGraphicsContext::~wxMacCoreGraphicsContext() () #4 0x034cea44 in wxDC::~wxDC() () #5 0x034cdc6c in wxWindowDC::~wxWindowDC() () #6 0x034ce24c in wxClientDC::~wxClientDC() () #7 0x030c63ec in SwigDirector_wxClientDC::~SwigDirector_wxClientDC() () #8 0x0001f018 in rb_gc_call_finalizer_at_exit () at gc.c:1928 #9 0x000048f8 in ruby_finalize_1 () at eval.c:1548 #10 0x00004a50 in ruby_cleanup (ex=0) at eval.c:1582 #11 0x00004c10 in ruby_stop (ex=-235798546) at eval.c:1619 #12 0x00004c9c in ruby_run () at eval.c:1640 #13 0x000026c0 in main (argc=3, argv=0xbffff95c, envp=0x2) at main.c:48 #14 0x00002178 in _start (argc=3, argv=0xbffff95c, envp=0xbffff96c) at /SourceCache/Csu/Csu-47/crt.c:267 #15 0x8fe1a31c in __dyld__dyld_start () ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=10438&group_id=35
Possibly Parallel Threads
- [984] branches/wxruby2/wxwidgets_282/lib/wx/classes/clientdc.rb: Prevent dangerous direct instantiation of ClientDC
- [ wxruby-Bugs-10662 ] ClientDC paint not being shown on OS X with 2.8
- [994] branches/wxruby2/wxwidgets_282/samples/bigdemo/ShapedWindow.rbw: Draw bitmap via paint method rather than directly with a ClientDC
- [999] branches/wxruby2/wxwidgets_282/samples/caret/caret.rb: Use paint() instead of ClientDC.new() in caret sample
- [990] branches/wxruby2/wxwidgets_282/samples/bigdemo/wxCursor.rbw: Use paint block instead of ClientDC; load icon file safely