Pandora Pandora Panic


I have troubles running Pandora Panic.

There's no error during the compilation, the PP! window show up but lasts only 2 seconds with black screen and then exit.
Code blocks says : Process terminated with status -1 (0 minutes, 2 seconds)


When compiling+running it in debug mode, the output console says

Code:
Penjin says: No commande line args provided.
Screen info
800*430 32Bpp
Penjin found 1 joysticks !
*joystick details*
And then :
Code:
Penjin says : No errors detected.
Segmentation fault
*the window exit*

edit : ubuntu 10.04 64bit by the way...
 
Reyhn said:
I have troubles running Pandora Panic.

There's no error during the compilation, the PP! window show up but lasts only 2 seconds with black screen and then exit.
Code blocks says : Process terminated with status -1 (0 minutes, 2 seconds)


When compiling+running it in debug mode, the output console says

Code:
Penjin says: No commande line args provided.
 Screen info
 800*430 32Bpp
 Penjin found 1 joysticks !
 *joystick details*
And then :
Code:
Penjin says : No errors detected.
 Segmentation fault
 *the window exit*

edit : ubuntu 10.04 64bit by the way...

run it through gdb and get a backtrace
 
Last edited by a moderator:
Ok, never used this but i tried :

Code:
(gdb) bt
#0  0x00007ffff626aa75 in raise () from /lib/libc.so.6
#1  0x00007ffff626e5c0 in abort () from /lib/libc.so.6
#2  0x00007ffff6b208e5 in __gnu_cxx::__verbose_terminate_handler() ()
   from /usr/lib/libstdc++.so.6
#3  0x00007ffff6b1ed16 in ?? () from /usr/lib/libstdc++.so.6
#4  0x00007ffff6b1ed43 in std::terminate() () from /usr/lib/libstdc++.so.6
#5  0x00007ffff6b1ee3e in __cxa_throw () from /usr/lib/libstdc++.so.6
#6  0x00007ffff6aba667 in std::__throw_out_of_range(char const*) ()
   from /usr/lib/libstdc++.so.6
#7  0x0000000000407401 in std::vector<std::pair<SDL_Surface*, bool>, std::allocator<std::pair<SDL_Surface*, bool> > >::_M_range_check (this=0x8a3310, 
    __n=4294967295) at /usr/include/c++/4.4/bits/stl_vector.h:634
#8  0x0000000000406ed7 in std::vector<std::pair<SDL_Surface*, bool>, std::allocator<std::pair<SDL_Surface*, bool> > >::at (this=0x8a3310, __n=4294967295)
    at /usr/include/c++/4.4/bits/stl_vector.h:652
#9  0x00000000004067e2 in Image::disableTransparentColour (this=0x8a3308, 
    i=@0x7fffffffd24c) at ../PenjinBase/Image.h:44
#10 0x000000000040685d in Image::disableTransparentColour (this=0x8a3308)
    at ../PenjinBase/Image.h:47
#11 0x0000000000406878 in AnimatedSprite::disableTransparentColour (
    this=0x8a3308) at ../PenjinBase/AnimatedSprite.h:29
#12 0x0000000000406c4c in Achievement::setIcon (this=0x8a32f0, fileName=...)
    at ../PenjinBase/Achievement.h:72
---Type <return> to continue, or q <return> to quit---
#13 0x000000000041c99e in MyGame::init (this=0x86b770)
    at /home/antoine/DEV/Penjin/Pandora Panic/AchievementSetup.h:20
#14 0x0000000000532668 in Engine::penjinInit (this=0x86b770)
    at /home/antoine/DEV/Penjin/PenjinBase/Engine.cpp:201
#15 0x00000000005061d3 in main (argc=1, argv=0x7fffffffe268)
    at /home/antoine/DEV/Penjin/Pandora Panic/_main.cpp:12

And by running it in gdb
Code:
[Thread debugging using libthread_db enabled]
Penjin says: No command line args provided.
[New Thread 0x7fffed538710 (LWP 8321)]
[Thread 0x7fffed538710 (LWP 8321) exited]
[New Thread 0x7fffed538710 (LWP 8323)]
terminate called after throwing an instance of 'std::out_of_range'
  what():  vector::_M_range_check

Program received signal SIGABRT, Aborted.
0x00007ffff626aa75 in raise () from /lib/libc.so.6

This is similar to what i got when i run it directly from the terminal :

terminate called after throwing an instance of 'std::eek:ut_of_range'
what(): vector::_M_range_check
Abandon
 
I suspect your missing a file like your running the binary in the wrong location

In image.h basically this code is blowing up cause images probably doesnt have any items. So i is basically -1 and that is bad for a vector.
Code:
           void disableTransparentColour(CRuint i)
            {
                SDL_SetColorKey(images.at(i).first, 0, images.at(i).first->format->colorkey);
                colourKey.alpha = 0;
            }
            void disableTransparentColour(){disableTransparentColour(images.size()-1);}

You may get farther if you do:
Code:
void disableTransparentColour(){if(images.size()>0) disableTransparentColour(images.size()-1);}

But that isnt a real good final solution, if a file is in fact not been loaded penjin should handle it better.
 
yes I should handle it better.
But actually doing a fresh checkout here... it looks like there has been a regression somewhere... I'm also having problems here.
if you comment out line 133 - menu.setTextBgColour(RED) in StateTitle.cpp you can get a bit further. I think the problems are stemming from here.
 
I have no problems on my end.
I am using the latest everything (PP and Penjin), but I have not done a fresh checkout (though I have looked through the files and did not find any uncommitted stuff on my end).

I am using Windows 7 x86, you seem to use a Linux based system, so something might be wrong regarding Win/Lin differences and #ifdefs

foxblock out
 
Back
Top