segfaults with notifyDisplaySizeChanged

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

mobarre
Just popping in
Just popping in
Posts: 10
Joined: Sun Apr 24, 2016 16:51

Re: segfaults with notifyDisplaySizeChanged

Postby mobarre » Thu Apr 28, 2016 13:18

ok, managed to get Ogre and CEGUI working from source. I had to compile CEGUI with:
cmake .. -DCMAKE_BUILD_TYPE=Debug -DCEGUI_BUILD_PYTHON_MODULES=OFF -DCEGUI_BUILD_LUA_MODULE=OFF -DCEGUI_BUILD_LUA_GENERATOR=OFF

Since I have Boost 1.60 and python doesn't work, and lua which refuses to compile for reasons I don't really understand. I don't think it matters as I'm not using any of those yet.

I'm going to give a shot to my program and tell you how it went.

mobarre
Just popping in
Just popping in
Posts: 10
Joined: Sun Apr 24, 2016 16:51

Re: segfaults with notifyDisplaySizeChanged

Postby mobarre » Thu Apr 28, 2016 16:01

I'm going to start with "OH MY GOD".

Allow me to explain how this got resolved:
After putting together my new libs and doing stuff in codeblocks to get it all working, and cleaning up my system, etc, etc... I've been having a new issue... At least, a different symptom:

Code: Select all

SpaceFuckery: /home/mobarre/snarchi/cegui/cegui/include/CEGUI/Singleton.h:78: static T& CEGUI::Singleton<T>::getSingleton() [with T = CEGUI::System]: Assertion `ms_Singleton' failed.


After some googling around I found this post on the CEGUI forums: viewtopic.php?t=3391

I checked my code, and here's what I was doing:
I have in my Application class (it's like my base class) a method called createGUI() and another called createListeners(). What they do is pretty self explainatory. createGUI initialises CEGUI, and createListeners initialiases my different listeners including my WindowEventListener.

a go() method in the application class is in charge of executing said methods in a certain order... which was kinda wrong :) I now make sure to call createGUI() before createListeners().

Inside createListeners(), I manually call my windowResized method once, for reasons that I cannot seem to recall... Bottom line is, I can only do that once the GUI is properly setup, otherwise crashes occure and Kraken appears.

I cannot explain why the crash changed from a segfault to an assertion failed though... that one's a mystery. But the problem seems to be solved.

@yaronct: Did I get that right in your opinion ?

mobarre
Just popping in
Just popping in
Posts: 10
Joined: Sun Apr 24, 2016 16:51

Re: segfaults with notifyDisplaySizeChanged

Postby mobarre » Thu Apr 28, 2016 18:21

I've re-tested with stock ogre and cegui libs from archlinux and now works like a charm !

Thanks a lot for the help on this one.

Cheers !

YaronCT
CEGUI Team
Posts: 448
Joined: Fri Jun 19, 2015 12:18
Location: Kiryat-Bialik, Israel

Re: segfaults with notifyDisplaySizeChanged

Postby YaronCT » Thu Apr 28, 2016 20:28

@mobarre: sounds reasonable.. still a mystery y u encountered a problem and I didn't, but I'm too tired to investigate it..

good luck!


Return to “Help”

Who is online

Users browsing this forum: No registered users and 10 guests