Closed ghost closed 7 years ago
Pourrais-tu reproduire le bug, et lors du SEGV
taper bt
, regarder la pile d'appel et trouver le premier (en partant du haut) faisant partie de mes sources, faire f <n>
où n est le numéro de cette ligne, puis dump les variables locales avec info locals
s'il-te-plait ?
Thread 1 "diggler" received signal SIGSEGV, Segmentation fault.
0x00000000400a1e41 in ?? ()
(gdb) bt
#0 0x00000000400a1e41 in ?? ()
#1 0x00007ffff2228464 in ?? () from /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.375.26
#2 0x00007ffff222d728 in ?? () from /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.375.26
#3 0x00007ffff1e013a8 in ?? () from /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.375.26
#4 0x000055555565ac6b in Diggler::LocalPlayer::render (this=0x555555b61f30, transform=...) at /media/git_src/Clone/Jeux/Diggler/src/LocalPlayer.cpp:217
#5 0x0000555555651258 in Diggler::GameState::gameLoop (this=0x555555c203e0) at /media/git_src/Clone/Jeux/Diggler/src/GameState.cpp:625
#6 0x000055555564f966 in Diggler::GameState::run (this=0x555555c203e0) at /media/git_src/Clone/Jeux/Diggler/src/GameState.cpp:410
#7 0x0000555555655522 in Diggler::GameWindow::run (this=0x7fffffffde10) at /media/git_src/Clone/Jeux/Diggler/src/GameWindow.cpp:266
#8 0x000055555565bf5c in Diggler::main (argc=1, argv=0x7fffffffe288) at /media/git_src/Clone/Jeux/Diggler/src/main.cpp:142
#9 0x000055555565c39d in main (argc=1, argv=0x7fffffffe288) at /media/git_src/Clone/Jeux/Diggler/src/main.cpp:164
(gdb) f 4
#4 0x000055555565ac6b in Diggler::LocalPlayer::render (this=0x555555b61f30, transform=...) at /media/git_src/Clone/Jeux/Diggler/src/LocalPlayer.cpp:217
217 glDrawArrays(GL_LINES, 0, sizeof(pts)/sizeof(Coord));
(gdb) info locals
min = {{{x = -3, y = 1, z = -3}, {r = -3, g = 1, b = -3}, {s = -3, t = 1, p = -3}}}
max = {{{x = -1, y = 3, z = -1}, {r = -1, g = 3, b = -1}, {s = -1, t = 3, p = -1}}}
pts = {{x = -3, y = 1, z = -3, r = 0 '\000', g = 1 '\001', b = 0 '\000'}, {x = -1, y = 1, z = -3, r = 0 '\000', g = 1 '\001', b = 0 '\000'}, {x = -3, y = 1, z = -3, r = 0 '\000',
g = 1 '\001', b = 0 '\000'}, {x = -3, y = 3, z = -3, r = 0 '\000', g = 1 '\001', b = 0 '\000'}, {x = -3, y = 1, z = -3, r = 0 '\000', g = 1 '\001', b = 0 '\000'}, {x = -3, y = 1, z = -1,
r = 0 '\000', g = 1 '\001', b = 0 '\000'}, {x = -1, y = 1, z = -3, r = 0 '\000', g = 1 '\001', b = 0 '\000'}, {x = -1, y = 3, z = -3, r = 0 '\000', g = 1 '\001', b = 0 '\000'}, {x = -1,
y = 1, z = -3, r = 0 '\000', g = 1 '\001', b = 0 '\000'}, {x = -1, y = 1, z = -1, r = 0 '\000', g = 1 '\001', b = 0 '\000'}, {x = -3, y = 3, z = -3, r = 0 '\000', g = 1 '\001',
b = 0 '\000'}, {x = -1, y = 3, z = -3, r = 0 '\000', g = 1 '\001', b = 0 '\000'}, {x = -1, y = 3, z = -1, r = 0 '\000', g = 1 '\001', b = 0 '\000'}, {x = -3, y = 3, z = -1, r = 0 '\000',
g = 1 '\001', b = 0 '\000'}, {x = -1, y = 3, z = -1, r = 0 '\000', g = 1 '\001', b = 0 '\000'}, {x = -1, y = 1, z = -1, r = 0 '\000', g = 1 '\001', b = 0 '\000'}, {x = -1, y = 3, z = -1,
r = 0 '\000', g = 1 '\001', b = 0 '\000'}, {x = -1, y = 3, z = -3, r = 0 '\000', g = 1 '\001', b = 0 '\000'}, {x = -3, y = 3, z = -1, r = 0 '\000', g = 1 '\001', b = 0 '\000'}, {x = -3,
y = 1, z = -1, r = 0 '\000', g = 1 '\001', b = 0 '\000'}, {x = -3, y = 3, z = -1, r = 0 '\000', g = 1 '\001', b = 0 '\000'}, {x = -3, y = 3, z = -3, r = 0 '\000', g = 1 '\001',
b = 0 '\000'}, {x = -1, y = 1, z = -1, r = 0 '\000', g = 1 '\001', b = 0 '\000'}, {x = -3, y = 1, z = -1, r = 0 '\000', g = 1 '\001', b = 0 '\000'}}
P = @0x555555ca5bb0: {vsh = 0x555555cae670, fsh = 0x555555caef80, id = 36, linked = 1, mustDestroy = true, fshPath = "/media/git_src/Clone/Jeux/Diggler/Build/assets/3d.f.glsl",
vshPath = "/media/git_src/Clone/Jeux/Diggler/Build/assets/3d.v.glsl"}
(gdb)
J'ai testé avec les derniers commit et ça fonctionne. EDIT:je précise avec les commit de la semaine dernière, parceque là je vient de voir des commit mais ça compile plus, il manque gl/VBO.cpp mais tu n'a peut être pas encore fini de commit.
Mince alors, il manquait VBO.cpp... J'ai fix e3c76940a029aa504f408df4d66e5d9c11c96cba
Étrange, j'avais fais une compilation "à vide" il y a pas si longtemps et ça passait...
Avec ma nouvelle carte graphique nvidia gt710 (OpenGL 4.5, l'ancienne gérait le 3.3) et les derniers pilotes ça crash.