libretro / Craft

A simple Minecraft clone written in C using modern OpenGL (shaders).
http://www.michaelfogleman.com/craft/
MIT License
43 stars 19 forks source link

Segfault when Start Core #7

Closed sergiobenrocha2 closed 7 years ago

sergiobenrocha2 commented 8 years ago

Linux 64 bits. Useless backtrace. RA crashes at first if you try Craft built with DEBUG=1

orbea commented 8 years ago

OS: Slackware64-current RetroArch-1.3.4-x86_64-2_SBo Craft-libretro-6bf4994_2016.05.16_master-x86_64-1_git

I am getting this too, with DEBUG=1 craft will segmentation fault.

context_reset.
Mesa: User error: GL_INVALID_OPERATION in glUniform1(uniform "MVPMatrix"@0 is matrix)
Mesa: 6 similar GL_INVALID_OPERATION errors
Mesa: User error: GL_INVALID_OPERATION in glUniform1("ortho"@3 is int, not float)
Segmentation fault

The backtrace seems to be missing a lot of info as well.

Thread 1 "retroarch" received signal SIGSEGV, Segmentation fault.
0x00007fffe9b12eea in gen_water_buffer (x=-0.00177969504, y=11, z=-0.0042935391, 
    n=320) at src/main.c:451
451 }
(gdb) bt full
#0  0x00007fffe9b12eea in gen_water_buffer (x=-0.00177969504, y=11, 
    z=-0.0042935391, n=320) at src/main.c:451
        data = {-320.00177, 11, -320.004303, 0, 1, 0, 0.937988281, 0.999511719, 
          0, 0.5, 319.99823, 11, 319.995697, 0, 1, 0, 0.999511719, 0.937988281, 
          0, 0.5, 319.99823, 11, -320.004303, 0, 1, 0, 0.999511719, 0.999511719, 
          0, 0.5, -320.00177, 11, -320.004303, 0, 1, 0, 0.937988281, 
          0.999511719, 0, 0.5, -320.00177, 11, 319.995697, 0, 1, 0, 0.937988281, 
          0.937988281, 0, 0.5, 319.99823, 11, 319.995697, 0, -320.00177, 11, 
          -320.004303, 0, -1, 0, 0.937988281, 0.937988281, 0, 0.5, 319.99823, 
          11, 319.995697, 0, -1, 0, 0.999511719, 0.999511719, 0, 0.5, 
          -320.00177, 11, 319.995697, 0, -1, 0, 0.937988281, 0.999511719, 0, 
          0.5, -320.00177, 11, -320.004303, 0, -1, 0, 0.937988281, 0.937988281, 
          0, 0.5, 319.99823, 11, -320.004303, 0, -1, 0, 0.999511719, 
          0.937988281, 0, 0.5, 319.99823, 11, 319.995697, 0}
        ao = {{0, 0, 0, 0}, {0, 0, 0, 0}, {0, 0, 0, 0}, {0, 0, 0, 0}, {0, 0, 0, 
            0}, {0, 0, 0, 0}}
        light = {{0.5, 0.5, 0.5, 0.5}, {0.5, 0.5, 0.5, 0.5}, {0.5, 0.5, 0.5, 
            0.5}, {0.5, 0.5, 0.5, 0.5}, {0.5, 0.5, 0.5, 0.5}, {0.5, 0.5, 0.5, 
            0.5}}
#1  0x3f7fe0003f7fe000 in ?? ()
No symbol table info available.
#2  0x3f00000000000000 in ?? ()
No symbol table info available.
#3  0xbae944a8bb8cb0d1 in ?? ()
No symbol table info available.
#4  0x00007fffe9f19110 in model () from /usr/lib64/libretro/craft_libretro.so
No symbol table info available.
#5  0x00007fffe9f1d620 in info () from /usr/lib64/libretro/craft_libretro.so
No symbol table info available.
#6  0x3497b7283f96b095 in ?? ()
No symbol table info available.
#7  0xba2ad442ba2af0bd in ?? ()
No symbol table info available.
#8  0x3fc8eb73a896b097 in ?? ()
No symbol table info available.
#9  0x3990d79b3990efc1 in ?? ()
No symbol table info available.
#10 0x39e35b4eba491c6c in ?? ()
No symbol table info available.
#11 0xbf7ffffbbf801554 in ?? ()
No symbol table info available.
#12 0xbfc8eb643b0917dd in ?? ()
No symbol table info available.
#13 0xbb95c803be826230 in ?? ()
No symbol table info available.
#14 0x00007fffe9f1d620 in info () from /usr/lib64/libretro/craft_libretro.so
No symbol table info available.
#15 0x0000000000000001 in ?? ()
No symbol table info available.
#16 0x0000000000000000 in ?? ()
No symbol table info available.

With DEBUG=0 craft will work, but is buggy (Character wont stop moving with a gamepad plugged in) and I will get a lot of unrelated Mesa: User Errors.

Edited to avoid confusion.

inactive123 commented 8 years ago

Yeah like I said, it's a RetroArch MESA error, not a core one. And it's also not related to the issue you are responding to BTW. Please don't confuse the original OP.

orbea commented 8 years ago

Sorry, that was not my intent. The segmentation fault is the same though?