fxruby + threads + ctrl-c != stacktrace

M

martinus

Hi! I am writing an fxruby application, but unfortunately sometimes,
somewhere there has to be an infinite loop. (CPU 100%, taking more and
more memory). When I press Ctrl+C I expect to get a stack trace, but
this does not work with fxruby, I just get the position where the run
method of the FXApp instance is called. This makes it very difficult to
find the bug. Any ideas how I could get to a correct stacktrace?

martinus
 
B

Brian Schröder

Hi! I am writing an fxruby application, but unfortunately sometimes,
somewhere there has to be an infinite loop. (CPU 100%, taking more and
more memory). When I press Ctrl+C I expect to get a stack trace, but
this does not work with fxruby, I just get the position where the run
method of the FXApp instance is called. This makes it very difficult to
find the bug. Any ideas how I could get to a correct stacktrace?

martinus
You probably already now this and it is not exactly an answer to you question, but one thing that helps a lot when debugging threads is to put

Thread.abort_on_exception = true

at the beginning of your program.

regards,

Brian Schröder
 
M

martinus

Thread.abort_on_exception = true
I know this, and this should definitely be the default setting for any
application :)

martinus
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,167
Messages
2,570,911
Members
47,453
Latest member
MadelinePh

Latest Threads

Top