Sie sind vermutlich noch nicht im Forum angemeldet - Klicken Sie hier um sich kostenlos anzumelden Impressum 
Sie können sich hier anmelden
Dieses Thema hat 22 Antworten
und wurde 1.968 mal aufgerufen
 About the code, compilation and debugging
Seiten 1 | 2
jose1711 Offline



Beiträge: 41

09.02.2012 21:49
segmentation fault when placing 2nd letter on ubuntu 11.10 Zitat · Antworten

following discussion at topic.php?forum=237&id=1530 i would like to add backtrace from debug enabled build:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
 
Program received signal SIGSEGV, Segmentation fault.
0x08204589 in _$UMAIN$_Ll1032 ()
(gdb) bt
#0 0x08204589 in _$UMAIN$_Ll1032 ()
#1 0x082044d0 in _$UMAIN$_Ll1023 ()
#2 0x00000006 in ?? ()
#3 0xbfffea0c in ?? ()
#4 0x0811f3d2 in TCONTROL__MOUSEDOWN (BUTTON=MBLEFT, SHIFT=..., X=68, Y=22, this=<error reading variable>) at ./include/control.inc:4069
#5 0x0811b4b2 in TCONTROL__DOMOUSEDOWN (MESSAGE=..., BUTTON=MBLEFT, SHIFT=..., this=<error reading variable>) at ./include/control.inc:2074
#6 0x0811b8ff in TCONTROL__WMLBUTTONDOWN (MESSAGE=..., this=<error reading variable>) at ./include/control.inc:2212
#7 0x081f1156 in SYSTEM_TOBJECT_$__DISPATCH$formal ()
#8 0x0811b8a0 in TCONTROL__WMCONTEXTMENU (MESSAGE=..., this=<error reading variable>) at ./include/control.inc:2192
#9 0x081110be in TWINCONTROL__WNDPROC (MESSAGE=..., this=<error reading variable>) at ./include/wincontrol.inc:5276
#10 0x081a1271 in DELIVERMESSAGE (TARGET=0x8af0c44, AMESSAGE=void) at lclmessageglue.pas:113
#11 0x08175fe5 in DELIVERMESSAGE (TARGET=0x8af0c44, AMESSAGE=void) at ./gtk2/gtk2proc.inc:3555
#12 0x08180ccb in DELIVERMOUSEDOWNMESSAGE (WIDGET=0x880ab58, EVENT=0x8a7c698, AWINCONTROL=0x8af0c44) at ./gtk2/gtk2callback.inc:1831
#13 0x081806b8 in GTKMOUSEBTNPRESS (WIDGET=0x880ab58, EVENT=0x8a7c698, DATA=0x8af0c44) at ./gtk2/gtk2callback.inc:1547
#14 0x003dfc52 in ?? () from /usr/lib/i386-linux-gnu/libgtk-x11-2.0.so.0
#15 0x007cac3c in g_closure_invoke () from /usr/lib/i386-linux-gnu/libgobject-2.0.so.0
#16 0x007dd9f0 in ?? () from /usr/lib/i386-linux-gnu/libgobject-2.0.so.0
#17 0x007e6599 in g_signal_emit_valist () from /usr/lib/i386-linux-gnu/libgobject-2.0.so.0
#18 0x007e68f3 in g_signal_emit () from /usr/lib/i386-linux-gnu/libgobject-2.0.so.0
#19 0x00519553 in ?? () from /usr/lib/i386-linux-gnu/libgtk-x11-2.0.so.0
#20 0x003ddeae in gtk_propagate_event () from /usr/lib/i386-linux-gnu/libgtk-x11-2.0.so.0
#21 0x003de240 in gtk_main_do_event () from /usr/lib/i386-linux-gnu/libgtk-x11-2.0.so.0
#22 0x00767888 in ?? () from /usr/lib/i386-linux-gnu/libgdk-x11-2.0.so.0
#23 0x0085025f in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0
#24 0x00850990 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#25 0x00850c2a in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#26 0x080ddf97 in TGTK2WIDGETSET__APPWAITMESSAGE (this=<error reading variable>) at ./gtk2/gtk2widgetset.inc:2521
#27 0x08065dc1 in TAPPLICATION__IDLE (WAIT=true, this=<error reading variable>) at ./include/application.inc:418
#28 0x08067950 in TAPPLICATION__HANDLEMESSAGE (this=<error reading variable>) at ./include/application.inc:1282
#29 0x08067d4e in TAPPLICATION__RUNLOOP (this=<error reading variable>) at ./include/application.inc:1414
#30 0x0806cbc1 in TWIDGETSET__APPRUN (ALOOP=0x8067d10 <TAPPLICATION__RUNLOOP>, this=<error reading variable>) at ./include/interfacebase.inc:60
#31 0x08067d01 in TAPPLICATION__RUN (this=<error reading variable>) at ./include/application.inc:1402
#32 0x081ee439 in _$SCRABBLE3D$_Ll12 ()
Backtrace stopped: Not enough registers or memory available to unwind further
 



application has been built with lazarus 0.9.31 and fpc 2.6.0. segfault is 100% reproducable.

Bussinchen Offline




Beiträge: 90

09.02.2012 21:59
#2 RE: segmentation fault when placing 2nd letter on ubuntu 11.10 Zitat · Antworten

Which version are you using when debugging Scrabble3D? Is it Patch 26 from 2011-12-22 ?


I OpenSource!
• Scrabble3D Download: Sourceforge.net | • Scrabble3D Help: Wiki | • Scrabble3D News: Twitter | • Scrabble3D Fanship: Facebook
• Scrabble3D in Italia: Sezione Scrabble3D sul Forum della Federazione Italiana Gioco Scrabble

jose1711 Offline



Beiträge: 41

09.02.2012 22:00
#3 RE: segmentation fault when placing 2nd letter on ubuntu 11.10 Zitat · Antworten

i checked out svn yesterday..

Bussinchen Offline




Beiträge: 90

09.02.2012 22:04
#4 RE: segmentation fault when placing 2nd letter on ubuntu 11.10 Zitat · Antworten

Ah, does that mean that you are working on the source code only, but not at all with the compiled Scrabble3D.exe?

Excuse me, I'm not a developer...
But I'm very interested anyway...


I OpenSource!
• Scrabble3D Download: Sourceforge.net | • Scrabble3D Help: Wiki | • Scrabble3D News: Twitter | • Scrabble3D Fanship: Facebook
• Scrabble3D in Italia: Sezione Scrabble3D sul Forum della Federazione Italiana Gioco Scrabble

jose1711 Offline



Beiträge: 41

09.02.2012 22:08
#5 RE: segmentation fault when placing 2nd letter on ubuntu 11.10 Zitat · Antworten

yes, i compiled the sources. this allowed me to get debug build which should help scotty with finding the culprit.

Scotty Offline

Administrator


Beiträge: 3.787

09.02.2012 22:13
#6 RE: segmentation fault when placing 2nd letter on ubuntu 11.10 Zitat · Antworten

This stuff does not help. Even if it wasn't low level I usually debug step by step. I recommend to start the program with debugger in background and find the routine which fails. I'm afraid it's not in my code.


Download: Sourceforge.net | Help:Scrabble3D Wiki | Discussion: Forum | News: Twitter | Fanship: Facebook

Bussinchen Offline




Beiträge: 90

09.02.2012 22:18
#7 RE: segmentation fault when placing 2nd letter on ubuntu 11.10 Zitat · Antworten

Could it be the fault of Ubuntu 11.10 Oneiric Ocelot instead? Or some interaction with the desktop environment used in Ubuntu 11.10 ? Maybe Unity?


I OpenSource!
• Scrabble3D Download: Sourceforge.net | • Scrabble3D Help: Wiki | • Scrabble3D News: Twitter | • Scrabble3D Fanship: Facebook
• Scrabble3D in Italia: Sezione Scrabble3D sul Forum della Federazione Italiana Gioco Scrabble

jose1711 Offline



Beiträge: 41

09.02.2012 23:01
#8 RE: segmentation fault when placing 2nd letter on ubuntu 11.10 Zitat · Antworten

i tried in openbox (lightweight wm) but it changed nothing. anyway i am now pretty convinced the problem lies with the distribution itself. btw this is what i am getting at console:

1
2
3
4
5
6
7
8
 

(Scrabble3D:18207): GLib-GObject-CRITICAL **: g_object_get: assertion `G_IS_OBJECT (object)' failed
 
(Scrabble3D:18207): Gtk-CRITICAL **: IA__gtk_widget_get_toplevel: assertion `GTK_IS_WIDGET (widget)' failed
 
(Scrabble3D:18207): Gtk-CRITICAL **: IA__gtk_propagate_event: assertion `GTK_IS_WIDGET (widget)' failed
 
..(keeps repeating)
 



consider leaving a note (word of warning) for ubuntu users. jose

jose1711 Offline



Beiträge: 41

03.05.2012 08:51
#9 RE: segmentation fault when placing 2nd letter on ubuntu 11.10 Zitat · Antworten

i will try to test scrabble3d in ubuntu 12.04 to see if i still experience the issue

Bussinchen Offline




Beiträge: 90

03.05.2012 11:30
#10 RE: segmentation fault when placing 2nd letter on ubuntu 11.10 Zitat · Antworten

Hello jose1711!

When making tests with Patch 26 or with the latest test version v26g from 2012-05-01 in Ubuntu 12.04, could you please try also the 3D view, i.e. the 3D-cube, and check if the letters are shown as they are shown on the screenshots in my postings
[geschlossen] v26d vom 2012-04-06: Je nach Betriebssystem Fehler bei Anzeige der Buchstaben im Würfel
and
[geschlossen] v26d vom 2012-04-06: Je nach Betriebssystem Fehler bei Anzeige der Buchstaben im Würfel
(only the screenshots with the witch )

On [geschlossen] v26d vom 2012-04-06: Je nach Betriebssystem Fehler bei Anzeige der Buchstaben im Würfel you can see also a screenshot without the witch. That one has been realized in Windows7 and that view is correct.
The (beautiful!) witch-views have been taken in Linux Ubuntu 11.04 64bit with Gnome; those ones are wrong of course.

Scotty believes that the "witch stairs" are caused by my settings/configuration/updates of Ubuntu, maybe by my graphic card. But I don't think so, because with the same settings no "witch stairs" are shown in the older Scrabble3D Patch 25. Therefore I'm very interested in knowing if you see "witch stairs" in Ubuntu 12.04 when using Patch 26 and testversion v26g.

Are you using Ubuntu 12.04 32 or 64bit? Do you have Gnome or Unity as desktop environment?

In Ubuntu 11.04 32bit with Gnome, however, no letters are shown at all in the 3D cube.

Tonight I myself will make some more 3D tests with the newest test version v26g in Ubuntu as well.

Please tell us your results in this German thread:
[geschlossen] v26d vom 2012-04-06: Je nach Betriebssystem Fehler bei Anzeige der Buchstaben im Würfel
It doesn't matter if you will write in English there.

Thanks,
Yours sincerely bewitched Bussinchen


I OpenSource!
• Scrabble3D Download: Sourceforge.net | • Scrabble3D Help: Wiki | • Scrabble3D News: Twitter | • Scrabble3D Fanship: Facebook
• Scrabble3D in Italia: Sezione Scrabble3D sul Forum della Federazione Italiana Gioco Scrabble

jose1711 Offline



Beiträge: 41

03.05.2012 11:43
#11 RE: segmentation fault when placing 2nd letter on ubuntu 11.10 Zitat · Antworten

damn.. i did not realize that scrabble3d uses openGL and i only have a chance to test it in virtual machine. openGL support in virtualbox is poor so after starting scrabble3d i get nothing :-( currently i do not have a testing physical machine i would install ubuntu 12.04 on and i am kinda reluctant to update from already tuned 11.10.. jose

Scotty Offline

Administrator


Beiträge: 3.787

03.05.2012 12:56
#12 RE: segmentation fault when placing 2nd letter on ubuntu 11.10 Zitat · Antworten

OpenGL is not initiated until a game in 3D is started. And with Qt you don't have any opengl support. In my virtualbox a realy huge 3d cube runs "smoothly" with about 5fps. But I have a farily good graphic card.

About segfault: the latest test realease should run without errors.


Download: Sourceforge.net | Help:Scrabble3D Wiki | Discussion: Forum | News: Twitter | Fanship: Facebook

jose1711 Offline



Beiträge: 41

03.05.2012 13:15
#13 RE: segmentation fault when placing 2nd letter on ubuntu 11.10 Zitat · Antworten

ok, my bad. anyway, i downloaded ver. 3.1.0 (patch 26g, Test-Scrabble3D-i386.tar.gz) and have already been able to reproduce crash during initial letter placement. also, many times the buttons are just unresponsive. ubuntu 12.04 has been installed directly from cd (no patches downloaded). i will do some more tests.

Bussinchen Offline




Beiträge: 90

03.05.2012 15:13
#14 RE: segmentation fault when placing 2nd letter on ubuntu 11.10 Zitat · Antworten

I will test it too,

both in Ubuntu 11.04 64bit with Gnome in my VirtualBox guest under the host OS Win7
and in Ubuntu 11.04 32bit with Gnome as main OS on my Laptop

and I'll tell you my results as well!


I OpenSource!
• Scrabble3D Download: Sourceforge.net | • Scrabble3D Help: Wiki | • Scrabble3D News: Twitter | • Scrabble3D Fanship: Facebook
• Scrabble3D in Italia: Sezione Scrabble3D sul Forum della Federazione Italiana Gioco Scrabble

Scotty Offline

Administrator


Beiträge: 3.787

03.05.2012 18:06
#15 RE: segmentation fault when placing 2nd letter on ubuntu 11.10 Zitat · Antworten

Zitat von jose1711
ok, my bad. anyway, i downloaded ver. 3.1.0 (patch 26g, Test-Scrabble3D-i386.tar.gz) and have already been able to reproduce crash during initial letter placement. also, many times the buttons are just unresponsive.

I test Gnome3 with Mint in a VB. No errors. My base system is Arch Linux with KDE (and gtk2 libs). Please make sure to have all updates installed. Perhaps video acceleration is an issue too. Another idea is to run the win32 release with wine emulation within the vb.


Download: Sourceforge.net | Help:Scrabble3D Wiki | Discussion: Forum | News: Twitter | Fanship: Facebook

Seiten 1 | 2
 Sprung  
Xobor Forum Software von Xobor.de
Einfach ein Forum erstellen
Datenschutz