PixelGuys / Cubyz

Voxel sandbox game with a large render distance, procedurally generated content and some cool graphical effects.
GNU General Public License v3.0
420 stars 49 forks source link

Game crashed while building blocks #329

Closed IntegratedQuantum closed 4 months ago

IntegratedQuantum commented 4 months ago
Segmentation fault at address 0x7fed1d7d5cc0
/home/mint/Cubyz/src/utils.zig:1173:4: 0x148213a in getValue (Cubyzig)
   return ptr.* >> bitOffset  &  bitMask;
   ^
/home/mint/Cubyz/src/utils.zig:1247:42: 0x149634c in getValue (Cubyzig)
   return self.palette[self.data.getValue(i)];
                                         ^
/home/mint/Cubyz/src/renderer/lighting.zig:76:28: 0x15fac73 in getValueHoldingTheLock (Cubyzig)
  return self.data.getValue(index);
                           ^
/home/mint/Cubyz/src/renderer/chunk_meshing.zig:263:53: 0x15f36ad in getValues (Cubyzig)
  return mesh.lightingData[1].getValueHoldingTheLock(x, y, z) ++ mesh.lightingData[0].getValueHoldingTheLock(x, y, z);
                                                    ^
/home/mint/Cubyz/src/renderer/chunk_meshing.zig:271:20: 0x15e29f6 in getLightAt (Cubyzig)
   return getValues(parent, wx, wy, wz);
                   ^
/home/mint/Cubyz/src/renderer/chunk_meshing.zig:300:40: 0x15c446f in getCornerLight (Cubyzig)
     const lightVal: [6]u8 = getLightAt(parent, startPos[0] +% dx, startPos[1] +% dy, startPos[2] +% dz);
                                       ^
/home/mint/Cubyz/src/renderer/chunk_meshing.zig:325:46: 0x159854e in getLight (Cubyzig)
      cornerVals[dx][dy][dz] = getCornerLight(parent, blockPos +% Vec3i{dx, dy, dz}, normal);
                                             ^
/home/mint/Cubyz/src/renderer/chunk_meshing.zig:240:25: 0x1566432 in finish (Cubyzig)
   face.light = getLight(parent, .{face.position.x, face.position.y, face.position.z}, face.blockAndQuad.quadIndex);
                        ^
/home/mint/Cubyz/src/renderer/chunk_meshing.zig:811:25: 0x1511a38 in finishData (Cubyzig)
  self.opaqueMesh.finish(self);
                        ^
/home/mint/Cubyz/src/renderer/chunk_meshing.zig:549:25: 0x15c4bae in run (Cubyzig)
    self.mesh.finishData();
                        ^
/home/mint/Cubyz/src/utils.zig:1071:20: 0x1451e3d in run (Cubyzig)
    task.vtable.run(task.self);
                   ^
/home/mint/Cubyz/compiler/zig/lib/std/Thread.zig:408:13: 0x13e9a7b in callFn__anon_37388 (Cubyzig)
            @call(.auto, f, args);
            ^
/home/mint/Cubyz/compiler/zig/lib/std/Thread.zig:674:30: 0x137e0d2 in entryFn (Cubyzig)
                return callFn(f, args_ptr.*);
                             ^
./nptl/pthread_create.c:442:8: 0x7fed4870aac2 in start_thread (pthread_create.c)
../sysdeps/unix/sysv/linux/x86_64/clone3.S:81:0: 0x7fed4879c84f in ??? (../sysdeps/unix/sysv/linux/x86_64/clone3.S)
???:?:?: 0x0 in ??? (???)
^C./debug_linux.sh: line 78: 11780 Aborted                 (core dumped) ./zig-out/bin/Cubyzig
du82 commented 4 months ago

the blocks seem to be much larger now

IntegratedQuantum commented 4 months ago

@du82 That is not related to this issue. If you have found a different bug, please make a new issue with more detailed info on what happened and how to reproduce it.