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 Oct 21, 2014 8:48 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: App crash but not under gdb
PostPosted: Sun Nov 04, 2012 6:08 pm 
Offline
Familiar Face

Joined: Sun Feb 12, 2012 2:23 pm
Posts: 7
Hello,
I wrote this simple frontend for mplayer under windows 7(64bit), but when I run the program it crash, strange if it's running under gdb works fine. Can anyone point me where is the problem I would be grateful.
GLib 2.28.8
ATK 1.32.0
Pango 1.29.4
gdk-pixbuf 2.24.0
GTK+ 2.24.10
zlib 1.2.5
cairo 1.10.2
libpng 1.4.3
Freetype 2.4.2
Fontconfig 2.8.0
expat 2.0.1
gettext-runtime 0.18.1.1

mpStart02.glade
http://pastebin.com/AWZwmxAX
mpStart02.c
http://pastebin.com/G8EQewDC


Top
 Profile  
 
 Post subject: Re: App crash but not under gdb
PostPosted: Sun Nov 11, 2012 3:38 am 
Offline
Never Seen the Sunlight

Joined: Thu Mar 24, 2011 2:10 pm
Posts: 328
Location: Sydney, Australia
A quick search around revealed the following http://stackoverflow.com/questions/7507336/crashes-normally-but-not-with-gdb which should give a guide to how to approach your problem as well as possible causes (uninitialised values, invalid pointers etc.).
Not having windows I can't reproduce your system. You didn't mention what happens when it crashes. Do you get any error message on the terminal window (when run from there)? Do you get any warnings when compiling?


Top
 Profile  
 
 Post subject: Re: App crash but not under gdb
PostPosted: Mon Nov 12, 2012 7:23 pm 
Offline
Familiar Face

Joined: Sun Feb 12, 2012 2:23 pm
Posts: 7
Thank you for the link I'll look into it.
About compiling:
gcc -g -Wall --> no warnings

gcc -g -Wall -Wextra
Code:
mpStart02.c: In function 'mplayer_watch':
mpStart02.c:147:30: warning: unused parameter 'status' [-Wunused-parameter]
mpStart02.c:147:47: warning: unused parameter '_appData' [-Wunused-parameter
mpStart02.c: In function 'on_play':
mpStart02.c:153:20: warning: unused parameter 'widget' [-Wunused-parameter]
mpStart02.c: In function 'on_stop':
mpStart02.c:172:20: warning: unused parameter 'widget' [-Wunused-parameter]
mpStart02.c: In function 'on_subs_set':
mpStart02.c:368:24: warning: unused parameter 'widget' [-Wunused-parameter]
mpStart02.c: In function 'on_video_set':
mpStart02.c:377:25: warning: unused parameter 'widget' [-Wunused-parameter]

When app crash there's no errors on terminal window
Image

The app crash when info about media file is loaded to one of the gtk_tree_views, but this is not a rule sometimes is working fine


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 4 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