[1.5-1.6] Crash on launch (CEGUI related) [I]

Reports that are not bugs or happen because of a misconfiguration.

Moderators: SMC Team, MVP

[1.5-1.6] Crash on launch (CEGUI related) [I]

Postby AdamW » 03 Oct 2008 01:02

In at least 1.5 and 1.6 (haven't tested earlier), our (Mandriva's) build of smc crashes immediately on startup, with a seemingly CEGUI-related error. There's a backtrace here:

https://qa.mandriva.com/show_bug.cgi?id=44445

do you have any idea what may cause this, and how to fix? Thanks.
AdamW
Furball brown
Furball brown
 
Posts: 4
Joined: 03 Oct 2008 00:29

Re: Crash on launch (CEGUI related?) in 1.5 and 1.6

Postby FluXy » 03 Oct 2008 20:00

The backtrace looks new to me.

Try it with a different CEGUI XML parser but TinyXML, Xerces or libxml should work.
Many earlier problems came from a problematic Image Codec or one which did not support png.

You can also ask nyhm or muammar as they also had some smiliar problems :)
If i didn't read your post but it was important you can send me a PM.
Any Donation will help this project!
User avatar
FluXy
Admin
Admin
 
Posts: 2857
Joined: 04 May 2004 19:44
Location: Germany

Re: Crash on launch (CEGUI related?) in 1.5 and 1.6

Postby AdamW » 03 Oct 2008 21:18

OK, thanks to your hint, I traced it a bit further. Turns out we should have been looking at strace, not gdb.

strace shows it looking desperately for the library CEGUIXercesParser-0.6.1.so , whereas what actually exists in our package is libCEGUIXercesParser.so.0.0.0 .

A quick dirty hack verifies this is the problem: linking /usr/lib/libCEGUIXercesParser.so.0.0.0 to /usr/lib/CEGUIXercesParser-0.6.1.so lets the startup process get rather further, whereupon it again fails, complaining of an obviously similar issue.

So, time for me to go poking at the CEGUI build, then. Thanks.
AdamW
Furball brown
Furball brown
 
Posts: 4
Joined: 03 Oct 2008 00:29

Re: Crash on launch (CEGUI related?) in 1.5 and 1.6

Postby AdamW » 03 Oct 2008 22:27

OK, I have this all worked out now. Bad change by our CEGUI maintainer, who imported one patch from Fedora but not the other patch without which it doesn't work. I will have this fixed in Mandriva 2009 /updates as soon as possible after release. No issue in upstream smc or CEGUI. Sorry.
AdamW
Furball brown
Furball brown
 
Posts: 4
Joined: 03 Oct 2008 00:29

Re: [1.5-1.6] Crash on launch (CEGUI related) [I]

Postby anubisg1 » 14 Dec 2008 20:02

hi, we have a similar issue here:

anubis@Hp-Linux:~> smc
terminate called after throwing an instance of 'CEGUI::GenericException'
Abortito

here the problem is different, is infact enought to install -devel package to fix it and we think that the problem is on linked libraries:

> Hi tony, sorry for the new mail,
> >
> > i red cegui change log, i think that :
> >
> > - moved *.so files to devel sub-package
> >
> > break smc, as told, is enought to install cegui-devel to have the game
> > works again

Make sure smc is looking for libCEGUIXercesParser.so.0, the versioned library
instead of libXXXX.so ... this is a typical "bug" for windows based programs,
they do a dlopen(params) call at runtime instead of dynamic linking. Can
normally be easily patched.
The fault is in SMC, all other cegui-based packags work with the actual
cegui-packes.

*.so are only needed for linking, it was a mistake of me to have them in the
cegui package (/usr/lib/* was the bad-boy..) and this was corrected in the
new release.

ANd IMHO it is a bad idea to make a Requires to cegui-devel. This will pull
in a lot of other devel-packages. But it is your package and your decision.

> > Andrea


can you help me to patch it...

thanks
anubisg1
Turtle Shell red
Turtle Shell red
 
Posts: 26
Joined: 29 Dec 2007 14:36

Re: [1.5-1.6] Crash on launch (CEGUI related) [I]

Postby FluXy » 15 Dec 2008 01:43

nyhm and muammar know more about the makefiles as i do.
They are often available in our IRC Channel :)
If i didn't read your post but it was important you can send me a PM.
Any Donation will help this project!
User avatar
FluXy
Admin
Admin
 
Posts: 2857
Joined: 04 May 2004 19:44
Location: Germany

Re: [1.5-1.6] Crash on launch (CEGUI related) [I]

Postby medigeek » 09 Apr 2009 13:02

Hey, sorry to awake an old post, but is there a way the programmers can make cegui get the proper library without looking for the link? :)
Or is there a way to go around this with a patch in the code, without linking the cegui?
As far as I have experienced, the linked files are in -dev files, but those shouldn't be required for a binary distribution (I might be wrong).

For example, these are used in Debian/Ubuntu that in the binary package of cegui library (and not in -dev or -devel):
Code: Select all
/usr/lib/libCEGUIBase.so.1
/usr/lib/libCEGUIDevILImageCodec.so.0
/usr/lib/libCEGUIFalagardWRBase.so.1
/usr/lib/libCEGUIFreeImageImageCodec.so.0
/usr/lib/libCEGUILuaScriptModule.so.1
/usr/lib/libCEGUIOpenGLRenderer.so.0
/usr/lib/libCEGUITGAImageCodec.so.0
/usr/lib/libCEGUITinyXMLParser.so.0
/usr/lib/libCEGUItoluapp.so.1
/usr/lib/libCEGUIXercesParser.so.0


the -dev package contains links such as:
Code: Select all
/usr/lib/libCEGUIDevILImageCodec.la
/usr/lib/libCEGUIDevILImageCodec.so
/usr/lib/libCEGUIFalagardWRBase.la
/usr/lib/libCEGUIFalagardWRBase.so
/usr/lib/libCEGUILuaScriptModule.la
/usr/lib/libCEGUILuaScriptModule.so
/usr/lib/libCEGUIOpenGLRenderer.la
/usr/lib/libCEGUIOpenGLRenderer.so
/usr/lib/libCEGUITGAImageCodec.la
/usr/lib/libCEGUITGAImageCodec.so
/usr/lib/libCEGUITinyXMLParser.la
/usr/lib/libCEGUITinyXMLParser.so
/usr/lib/libCEGUIXercesParser.la
/usr/lib/libCEGUIXercesParser.so



I don't know about other distributions, but I expect that they have a similar fix

$ smc
terminate called after throwing an instance of 'CEGUI::GenericException'
Aborted

By the way, this isn't just 1.5-1.6, but 1.7 and 1.8 as well:
$ smc -v
Secret Maryo Chronicles 1.8
medigeek
Turtle Shell green
Turtle Shell green
 
Posts: 32
Joined: 12 Nov 2008 00:53

Re: [1.5-1.6] Crash on launch (CEGUI related) [I]

Postby FluXy » 10 Apr 2009 12:25

I can't say much here :P

Try to ask nyhm or muammar in IRC.
If i didn't read your post but it was important you can send me a PM.
Any Donation will help this project!
User avatar
FluXy
Admin
Admin
 
Posts: 2857
Joined: 04 May 2004 19:44
Location: Germany

Re: [1.5-1.6] Crash on launch (CEGUI related) [I]

Postby umarzuki » 29 Nov 2009 11:33

I managed to get past this issue by installing libcegui-mk2-1 from squeeze on my debian lenny. Even the smc package is from squeeze.
umarzuki
Furball brown
Furball brown
 
Posts: 4
Joined: 28 Nov 2009 11:24


Return to Invalid

Who is online

Users browsing this forum: No registered users and 1 guest

cron