GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Tue Sep 02, 2014 4:47 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: GTK+/GDK Event Queue Full? Crash?
PostPosted: Mon Jan 21, 2013 8:21 pm 
Offline

Joined: Wed Jan 16, 2013 11:50 pm
Posts: 4
GTK+/GDK Event Queue Full? Crash?

I have an application written in C and based on GTK+-2.0 / Cairo.

It works fine under normal use circumstances, except it crashes with
a Segfault if the mouse key is clicked very rapidly as a result of an
attempt to rapidly manipulate the screen.

Rapid clicking of the mouse key multiple (many) will also cause a
Segfault!

Could the event queue fill up and crash?

Could there be a delay latency issue in my event handler?

Is the on_expose_event handler triggered with a new event
while it is busy processing the previous event?

Thanks for any help you may have
Thomas Dineen


Top
 Profile  
 
 Post subject: Re: GTK+/GDK Event Queue Full? Crash?
PostPosted: Wed Jan 23, 2013 9:30 am 
Offline
Never Seen the Sunlight

Joined: Mon Apr 28, 2008 5:52 am
Posts: 745
Location: UK
Hi,

The event queue should not become full. If it does then you have run out of real and virtual memory! This I think is very unlikely.

The most likely situation is that you have a coding error some where, such as using the API in an incorrect way. With out further information no one can help.

_________________
E.


Top
 Profile  
 
 Post subject: Re: GTK+/GDK Event Queue Full? Crash?
PostPosted: Wed Jan 23, 2013 10:40 pm 
Offline
Never Seen the Sunlight

Joined: Thu Mar 24, 2011 2:10 pm
Posts: 328
Location: Sydney, Australia
I agree with Errol, unless of course you've been bored enough to be clicking away for near an hour or if your drawing is really processing intensive (though it'd have to be a bit of both and I also doubt that is the case).
What event masks are you using for mouse interaction?
Have you checked every numeric operation that no divide by zero errors can occur? (though that would be SIGFPE rather than a segmentation fault)
A segfault is usually easy enough to isolate where it occurs if you compile it with the debug symbols -g.
What is the exact error message you get?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group