[wxruby-development] [ wxruby-Bugs-27245 ] Crash occurring with GC and simple TaskBarIcon

noreply at rubyforge.org
Tue, 06 Oct 2009 09:07:09 -0000

Bugs item #27245, was opened at 2009-10-06 11:07
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=218&aid=27245&group_id=35

Category: Incorrect behavior
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Muriel Salvan (muriel)
Assigned to: Nobody (None)
Summary: Crash occurring with GC and simple TaskBarIcon

Initial Comment:
Greetings

SegFaults occur randomly when using a popup menu from a TaskBarIcon.

Problem does not occur when disabling Ruby''s GarbageCollector.

Problem occurs very frequently when using gc_stress in the
application''s initialization.

Problem occurs even on samples/bigdemo.

Here is the test procedure:
1- Add a call to gc_stress in the on_init method.
2- Invoke repeatedly a menu item from the TaskBarIcon menu (for example
"Change the TB icon" from bigdemo.rb) several times (normally the
crash occurs before 10 times).

I have attached a simple example creating a basic Frame with a TaskBarIcon, and
the problem occurs as described above.

Please tell me if I can help to solve this issue, as it makes any real
application using a tray icon unusable (disabling GC is not option to me).

Best regards,

Muriel

----------------------------------------------------------------------

You can respond by visiting: