Segmentation fault with samples

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

danner1
Just popping in
Just popping in
Posts: 3
Joined: Fri Jan 26, 2007 15:37

Segmentation fault with samples

Postby danner1 » Fri Jan 26, 2007 19:57

Hi,

I've got Mandriva Linux 2007, on an AMD64, gcc 4.1.1

I downloaded version 0.5.0, ./configured as

./configure --with-expat-libdir=/usr/lib64 --prefix=/usr --libdir=/lib64

(--with-expat: before it, ./configure didn't complain, but make gave an error)
(--prefix and --libdir to accomodate on Mandriva)

make && make install work ok, but once I go to /whatever/CEGUI-0.5.0/Samples/bin and run any of the demos, I get:

Code: Select all

-- CEGUI Sample Application Framework --
Please select a renderer:
1. OpenGL GUI Renderer.
Picked the only renderer. Starting...
Segmentation fault


Now follows CEGUI.log output for FirstWindow

26/01/2007 20:48:42 (InfL1) +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
26/01/2007 20:48:42 (InfL1) + Crazy Eddie's GUI System - Event log +
26/01/2007 20:48:42 (InfL1) + (http://www.cegui.org.uk/) +
26/01/2007 20:48:42 (InfL1) +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

26/01/2007 20:48:42 (InfL1) CEGUI::Logger singleton created.
26/01/2007 20:48:42 (InfL1) ---- Begining CEGUI System initialisation ----
26/01/2007 20:48:42 (InfL1) CEGUI::ImagesetManager singleton created
26/01/2007 20:48:42 (InfL1) CEGUI::FontManager singleton created.
26/01/2007 20:48:42 (InfL1) CEGUI::WindowFactoryManager singleton created
26/01/2007 20:48:42 (InfL1) CEGUI::WindowManager singleton created
26/01/2007 20:48:42 (InfL1) CEGUI::SchemeManager singleton created.
26/01/2007 20:48:42 (InfL1) CEGUI::MouseCursor singleton created.
26/01/2007 20:48:42 (InfL1) CEGUI::GlobalEventSet singleton created.
26/01/2007 20:48:42 (InfL1) CEGUI::WidgetLookManager singleton created.
26/01/2007 20:48:42 (InfL1) CEGUI::WindowRendererManager singleton created
26/01/2007 20:48:42 (InfL1) WindowFactory for 'DefaultWindow' windows added.
26/01/2007 20:48:42 (InfL1) WindowFactory for 'DragContainer' windows added.
26/01/2007 20:48:42 (InfL1) WindowFactory for 'ScrolledContainer' windows added.
26/01/2007 20:48:42 (InfL1) WindowFactory for 'ClippedContainer' windows added.
26/01/2007 20:48:42 (InfL1) WindowFactory for 'CEGUI/Checkbox' windows added.
26/01/2007 20:48:42 (InfL1) WindowFactory for 'CEGUI/PushButton' windows added.
26/01/2007 20:48:42 (InfL1) WindowFactory for 'CEGUI/RadioButton' windows added.
26/01/2007 20:48:42 (InfL1) WindowFactory for 'CEGUI/Combobox' windows added.
26/01/2007 20:48:42 (InfL1) WindowFactory for 'CEGUI/ComboDropList' windows added.
26/01/2007 20:48:42 (InfL1) WindowFactory for 'CEGUI/Editbox' windows added.
26/01/2007 20:48:42 (InfL1) WindowFactory for 'CEGUI/FrameWindow' windows added.
26/01/2007 20:48:42 (InfL1) WindowFactory for 'CEGUI/ItemEntry' windows added.
26/01/2007 20:48:42 (InfL1) WindowFactory for 'CEGUI/Listbox' windows added.
26/01/2007 20:48:42 (InfL1) WindowFactory for 'CEGUI/ListHeader' windows added.
26/01/2007 20:48:42 (InfL1) WindowFactory for 'CEGUI/ListHeaderSegment' windows added.
26/01/2007 20:48:42 (InfL1) WindowFactory for 'CEGUI/Menubar' windows added.
26/01/2007 20:48:42 (InfL1) WindowFactory for 'CEGUI/PopupMenu' windows added.
26/01/2007 20:48:42 (InfL1) WindowFactory for 'CEGUI/MenuItem' windows added.
26/01/2007 20:48:42 (InfL1) WindowFactory for 'CEGUI/MultiColumnList' windows added.
26/01/2007 20:48:42 (InfL1) WindowFactory for 'CEGUI/MultiLineEditbox' windows added.
26/01/2007 20:48:42 (InfL1) WindowFactory for 'CEGUI/ProgressBar' windows added.
26/01/2007 20:48:42 (InfL1) WindowFactory for 'CEGUI/ScrollablePane' windows added.
26/01/2007 20:48:42 (InfL1) WindowFactory for 'CEGUI/Scrollbar' windows added.
26/01/2007 20:48:42 (InfL1) WindowFactory for 'CEGUI/Slider' windows added.
26/01/2007 20:48:42 (InfL1) WindowFactory for 'CEGUI/Spinner' windows added.
26/01/2007 20:48:42 (InfL1) WindowFactory for 'CEGUI/TabButton' windows added.
26/01/2007 20:48:42 (InfL1) WindowFactory for 'CEGUI/TabControl' windows added.
26/01/2007 20:48:42 (InfL1) WindowFactory for 'CEGUI/Thumb' windows added.
26/01/2007 20:48:42 (InfL1) WindowFactory for 'CEGUI/Titlebar' windows added.
26/01/2007 20:48:42 (InfL1) WindowFactory for 'CEGUI/Tooltip' windows added.
26/01/2007 20:48:42 (InfL1) WindowFactory for 'CEGUI/ItemListbox' windows added.
26/01/2007 20:48:42 (InfL1) Window type alias named 'DefaultGUISheet' added for window type 'DefaultWindow'.
26/01/2007 20:48:42 (InfL1) CEGUI::System singleton created.
26/01/2007 20:48:42 (InfL1) ---- CEGUI System initialisation completed ----
26/01/2007 20:48:42 (InfL1) ---- Version 0.5.0 ----
26/01/2007 20:48:42 (InfL1) ---- Renderer module is: CEGUI::OpenGLRenderer - Official OpenGL based renderer module for CEGUI ----
26/01/2007 20:48:42 (InfL1) ---- XML Parser module is: CEGUI::ExpatParser - Official expat based parser module for CEGUI ----
26/01/2007 20:48:42 (InfL1) ---- Scripting module is: None ----
26/01/2007 20:48:42 (InfL1) Attempting to create an Imageset from the information specified in file 'TaharezLook.imageset'.
26/01/2007 20:48:42 (InfL1) Started creation of Imageset from XML specification:
26/01/2007 20:48:42 (InfL1) ---- CEGUI Imageset name: TaharezLook
26/01/2007 20:48:42 (InfL1) ---- Source texture file: TaharezLook.tga in resource group: (Default)


Any suggestion?

Thanks in advance.-

danner1
Just popping in
Just popping in
Posts: 3
Joined: Fri Jan 26, 2007 15:37

Postby danner1 » Wed Jan 31, 2007 23:13

Hi,

I took FirstWindow and put some debug messages. This program crashes in line 68, FirstWindowSample::initialiseSample,

Code: Select all

Imageset* taharezImages = ImagesetManager::getSingleton().createImageset("TaharezLook.imageset");


I don't know which useful info can I put here...

Thankcs

Pompei2
Home away from home
Home away from home
Posts: 489
Joined: Tue May 23, 2006 16:31

Postby Pompei2 » Thu Feb 01, 2007 12:22

just a vague idea, but this maybe could be something with the dynamic library loading ?

danner1
Just popping in
Just popping in
Posts: 3
Joined: Fri Jan 26, 2007 15:37

Postby danner1 » Fri Feb 02, 2007 09:15

Thanks Pompei2, I debugged the program and I found that the problem was a call to DevIL. I reinstalled it properly and now this part works :)

Then, samples fail in a call to OpenGL (__glXPushArrayState). I've got an nVidia GeForce 6600 with its OpenGL drivers working (as glxinfo and games report) installed on /usr/lib64/nvidia/ , but the gdb error is:

Code: Select all

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 47085338159728 (LWP 18588)]
0x00002ad2e76afbd3 in __glXPushArrayState () from /usr/lib64/libGL.so.1
Current language:  auto; currently c


So maybe it means it's using Mesa drivers (but I'm not sure, don't know OpenGL driver choosing internals). I already made a search for libGL into forums but the results didn't help me.

Thanks.-


Return to “Help”

Who is online

Users browsing this forum: No registered users and 16 guests