Serebriakov / pink-pony

Automatically exported from code.google.com/p/pink-pony
0 stars 0 forks source link

"Illegal instruction" error #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Pink Pony appeared to compile without any problems. But when I attempt to 
start the game with ./Pony, I get an "Illegal instruction" error.
----- 

What is the expected output? What do you see instead?
Expected to see gameplay. Instead, a blank window opens with the following 
error:
Loading file "levels/ring.png" - Done: 512x512 pixels.
Loading file "textures/sand.png" - Done: 1024x1024 pixels.
Loading file "textures/grass.png" - Done: 1024x1024 pixels.
Loading file "textures/noise.png" - Done: 512x512 pixels.
Illegal instruction
-----

What version of the product are you using? On what operating system?
Pink Pony 1.0 compiled on Ubuntu 9.04, Jaunty.
-----

Please provide any additional information below.

Original issue reported on code.google.com by alexande...@gmail.com on 10 Jul 2009 at 5:28

GoogleCodeExporter commented 9 years ago
What graphics card are you using?
Does it support OpenGL 2.0?

You can check with the following commands:
glxinfo | grep "OpenGL renderer string"
glxinfo | grep "OpenGL version string"

Original comment by gin...@gmail.com on 10 Jul 2009 at 5:51

GoogleCodeExporter commented 9 years ago
Hi, thanks for responding.
-----
glxinfo | grep "OpenGL renderer string":
OpenGL renderer string: GeForce 6200/PCI/SSE2
-----
glxinfo | grep "OpenGL version string":
OpenGL version string: 2.1.2 NVIDIA 180.44

Original comment by alexande...@gmail.com on 10 Jul 2009 at 6:05

GoogleCodeExporter commented 9 years ago
Hmm.. Could you paste the whole output of glxinfo?

Please try if the Intel-Version in the download section works for you. This is a
working version which has the more advanced features deactivated. It does not 
have
animations or particles, but I will reimplement those for older hardware in the 
next
version.

Original comment by gin...@gmail.com on 10 Jul 2009 at 6:22

GoogleCodeExporter commented 9 years ago
I tried the Intel build, but got a similar error ending with "Illegal 
instruction" 
again. 

The glxinfo is quite large so I will attempt to attach it as a text file rather 
than 
pasting. Please let me know if it does not work and I will post the full output 
here. 
Thanks.

Original comment by alexande...@gmail.com on 10 Jul 2009 at 7:43

Attachments:

GoogleCodeExporter commented 9 years ago
As far as I can see, there should not be any problems with your GPU.

I did some googling and found the following thread:
http://www.nvnews.net/vbulletin/archive/index.php/t-104914.html

The source of the problem in the thread is that the nVidia driver uses SSE/SSE2
instructions but the CPU doesn't support them. (See also:
http://www.nvnews.net/vbulletin/showthread.php?t=119674 )

What CPU do you have?
Is sse and sse2 listed in the flags list, when you call 'cat /proc/cpuinfo' ?

Can you run other OpenGL programs like 'glxgears' ?

Original comment by gin...@gmail.com on 10 Jul 2009 at 8:06

GoogleCodeExporter commented 9 years ago
I use Intel Celeron, 2.40GHz CPU. Granted, it's not great, but SSE and SSE2 
both 
appear in the 'flags' list. Glxgears also runs fine. 

If there's any other information I can post that might help, let me know.

Original comment by alexande...@gmail.com on 10 Jul 2009 at 8:35

GoogleCodeExporter commented 9 years ago
Argh! Now I get it! Okay, my bad.

Open the SConstuct file in the source directory and remove the '-msse3' option 
in the
5th line.
The game should work for you, now.

I will remove this in the next version.

Original comment by gin...@gmail.com on 10 Jul 2009 at 8:54

GoogleCodeExporter commented 9 years ago
I forgot to mention that you have to recompile the game after changing 
SConstruct..

Original comment by gin...@gmail.com on 10 Jul 2009 at 9:03

GoogleCodeExporter commented 9 years ago
Wonderful, that worked perfectly! There's a little girl who is very excited to 
see 
this working. Thanks for everything.

Original comment by alexande...@gmail.com on 10 Jul 2009 at 9:33

GoogleCodeExporter commented 9 years ago
Great!

Thank you for telling me about this problem. :)

Original comment by gin...@gmail.com on 10 Jul 2009 at 9:45