AlfredoCubitos / qosmic

Automatically exported from code.google.com/p/qosmic
0 stars 1 forks source link

Qosmic-1.4.4 segfaults (unless prefixed by LC_ALL=C) #7

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Run 'qosmic' from the command line; it segfaults
2. Run 'LC_ALL=C qosmic'; it works as expected
3.

What is the expected output? What do you see instead?

Initially, I got this error:
error [140361029080912]: main() : could not load translations for fi_FI
error [140361029080912]: main() : file not found
/usr/share/translations/qosmic_fi_FI.qm
error: parsing a double or int attribute's value.
error parsing flame element
Muistialueen ylitys

('Muistialueen ylitys' = 'Out of memory')

I tried to prefix it with LC_ALL=C to get all error messages into english,
but to my surprise it worked then...

What version of the product are you using? On what operating system?

Qosmic-1.4.4, qt-4.5.1, flam3-2.7.18, libxml2-2.7.3, lua-5.1.4, jpeg-6b on
Gentoo Linux. System locale is fi_FI.UTF-8.

Please provide any additional information below.

I got the same error with qosmic-1.4.2, too.

Original issue reported on code.google.com by l33t...@gmail.com on 30 Apr 2009 at 4:17

GoogleCodeExporter commented 8 years ago
This looks like a problem with libflam3.  That's where the parsing errors are 
coming
from.  It's strange that it depends on your locale.  Does this happen with any 
flam3
file you try to load?

The flam3 devs would know better how to fix this.  I'll forward this to get 
their
opinion.

Original comment by bit...@gmail.com on 30 Apr 2009 at 1:36

GoogleCodeExporter commented 8 years ago
The parsing error you get here does not necessarily come from libxml2, but 
instead 
it's an error returned by a strtol or strtod call, which are supposed to be 
robust 
to different locales.  Part of the problem may come from the specific genome 
that 
Qosmic is trying to load, but I'm not sure without seeing the genome.  The fact 
that 
changing the locale fixes it is very annoying.

Qosmic should check to make sure that the number of flames read is > 0, no?  
That at 
least would prevent the segfault.

Erik

Original comment by e.reck...@gmail.com on 30 Apr 2009 at 2:31

GoogleCodeExporter commented 8 years ago
If you configure and compile flam3 with env LC_ALL=C, does qosmic work?

Original comment by e.reck...@gmail.com on 30 Apr 2009 at 2:43

GoogleCodeExporter commented 8 years ago
Sorry for the delay...

No, compiling flam3 with LC_ALL set to C does not help :(

Original comment by l33t...@gmail.com on 5 May 2009 at 6:09

GoogleCodeExporter commented 8 years ago
Can you send us the genome file in some way?

Original comment by e.reck...@gmail.com on 6 May 2009 at 4:55

GoogleCodeExporter commented 8 years ago

Original comment by bit...@gmail.com on 7 Jun 2009 at 6:55