Sekilsgs2 / opentyrian

Automatically exported from code.google.com/p/opentyrian
GNU General Public License v2.0
0 stars 0 forks source link

crash at the end of a level #21

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. load attached save files
2. press F2+F6+F7 to win the level
3. After an intro to nect level there is a segfault

What is the expected output? What do you see instead?
Go to nect level

What version of the product are you using? On what operating system?
Using opentyrian enhenced version, revision 705

Please provide any additional information below.
Using gdb I get :

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1217055024 (LWP 8907)]
JE_loadCubes () at src/tyrian2.cpp:7608
7608                                                    do
(gdb) bt
#0  JE_loadCubes () at src/tyrian2.cpp:7608
#1  0x080826bf in JE_itemScreen () at src/tyrian2.cpp:5986
#2  0x08088d33 in JE_loadMap () at src/tyrian2.cpp:3404
#3  0x0808a08f in JE_main () at src/tyrian2.cpp:1066
#4  0x080733c2 in main (argc=1, argv=0xbfb049c4) at src/opentyr.cpp:384
(gdb) 

Original issue reported on code.google.com by padels...@gmail.com on 3 Feb 2008 at 9:08

Attachments:

GoogleCodeExporter commented 9 years ago
forgot to add : 
OS is linux (mandriva 2008)

Original comment by padels...@gmail.com on 3 Feb 2008 at 9:10

GoogleCodeExporter commented 9 years ago
That's a problem which I discovered a few days ago and happens while loading 
the data
cube text. That code is pending a re-write, so this should hopefully be fixed 
when
that happens. Thanks.

Original comment by yuriks...@gmail.com on 4 Feb 2008 at 4:24

GoogleCodeExporter commented 9 years ago

Original comment by yuriks...@gmail.com on 4 Feb 2008 at 4:49

GoogleCodeExporter commented 9 years ago
I rewrote the datacube code in revision 711, so this should be fixed now.

Original comment by yuriks...@gmail.com on 16 Feb 2008 at 6:13

GoogleCodeExporter commented 9 years ago
Hi,

Thanks. but rev 711 doesn't compile no more here :

g++ -o obj/error.o -MMD -c --std=c++98 -pedantic -Wall -Wno-unused 
-I/home/delsart/SOFTWARE/opentyrian-read-only/src/ -DPASCAL_TYPES -g -O2
-fomit-frame-pointer -DNDEBUG -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT
src/error.cpp
src/error.cpp: In function ‘void open_datafile(std::ifstream&, std::string, 
bool)’:
src/error.cpp:198: erreur: no matching function for call to
‘std::basic_ifstream<char, std::char_traits<char> >::open(const char*, int)’
/usr/lib/gcc/i586-mandriva-linux-gnu/4.2.2/../../../../include/c++/4.2.2/fstream
:517:
note: candidats sont: void std::basic_ifstream<_CharT, _Traits>::open(const 
char*,
std::_Ios_Openmode) [with _CharT = char, _Traits = std::char_traits<char>] 
<near match>
make: *** [obj/error.o] Erreur 1

Original comment by padels...@gmail.com on 16 Feb 2008 at 6:51