{"action":"created","issue":{"url":"https://api.github.com/repos/raysan5/raylib/issues/357","repository_url":"https://api.github.com/repos/raysan5/raylib","labels_url":"https://api.github.com/repos/raysan5/raylib/issues/357/labels{/name}","comments_url":"https://api.github.com/repos/raysan5/raylib/issues/357/comments","events_url":"https://api.github.com/repos/raysan5/raylib/issues/357/events","html_url":"https://github.com/raysan5/raylib/issues/357","id":260139865,"number":357,"title":"Segfault when drawing textures and shapes together","user":{"login":"dallbee","id":444994,"avatar_url":"https://avatars0.githubusercontent.com/u/444994?v=4","gravatar_id":"","url":"https://api.github.com/users/dallbee","html_url":"https://github.com/dallbee","followers_url":"https://api.github.com/users/dallbee/followers","following_url":"https://api.github.com/users/dallbee/following{/other_user}","gists_url":"https://api.github.com/users/dallbee/gists{/gist_id}","starred_url":"https://api.github.com/users/dallbee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dallbee/subscriptions","organizations_url":"https://api.github.com/users/dallbee/orgs","repos_url":"https://api.github.com/users/dallbee/repos","events_url":"https://api.github.com/users/dallbee/events{/privacy}","received_events_url":"https://api.github.com/users/dallbee/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-09-25T02:39:18Z","updated_at":"2017-09-25T22:45:56Z","closed_at":"2017-09-25T14:23:02Z","author_association":"NONE","body":"I'm experiencing an interesting segmentation fault. I think it might be related to the max quads setting that I saw discussed in another issue thread, but that might be a red herring.\r\n\r\nThe segfault occurs when drawing a large number of a Texture and a Shape at the same time. I've included sample code and a valgrind dump to help reproduce the error.\r\n\r\nEnvironment information\r\n```\r\nCompiler: gcc 7.2.0\r\nOpenGL version string: 4.5.0 NVIDIA 384.69\r\nPlatform: x86_64 Linux\r\nCPU Model: Intel(R) Core(TM) i5-4670K CPU @ 3.40GHz\r\nLinux version: 4.12.13-1-ARCH\r\nRaylib: 1.7.0\r\n```\r\n\r\nFirst, allow me to say that the variable LIMIT below controls whether or not a segfault occurs. The following table tells you the output experienced with different values of LIMIT:\r\n\r\n| LIMIT        | Outcome | Error |\r\n| ------------- |-------------|--------|\r\n| 0 - 129      | Works | |\r\n| 130 - 134  | Works | munmap_chunk(): invalid pointer: 0x000055c45c0be370.      |\r\n| 135 - 136  | Works | free(): invalid pointer: 0x000055efea4ba880 |\r\n| 137 - 138  | Crashes | corrupted size vs. prev_size: 0x000055752099ede0, or sometimes memory corruption: 0x0000558a3028c140 |\r\n| 139+ | Crashes | 25633 segmentation fault |\r\n\r\nCode Sample\r\n```c\r\n\r\n#include <raylib.h>\r\n\r\n\r\nint main() {\r\n    InitWindow(1024, 720, \"Test\");\r\n\r\n    Texture2D tile = LoadTexture(\"image.png\");\r\n\r\n    while (!WindowShouldClose()) {\r\n        BeginDrawing();\r\n        ClearBackground(RAYWHITE);\r\n\r\n        int LIMIT = 200;\r\n        for (int i = 0; i < LIMIT; i++) {\r\n            DrawTexture(tile, i*1, 0, WHITE);\r\n            DrawRectangle(i*1, 50, 5.0, 5.0, BLUE);\r\n        }\r\n\r\n        EndDrawing();\r\n    }\r\n\r\n    CloseWindow();\r\n    return 0;\r\n}\r\n```\r\n\r\nRun with `valgrind ./client --leak-check=full -vvv`\r\n\r\n```\r\ndylan:arch [develop ±] ✘  valgrind ./client --leak-check=full -vvv\r\n==24503== Memcheck, a memory error detector\r\n==24503== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.\r\n==24503== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info\r\n==24503== Command: ./client --leak-check=full -vvv\r\n==24503== \r\nINFO: Initializing raylib (v1.7.0)\r\nINFO: Display device initialized successfully\r\nINFO: Display size: 1600 x 900\r\nINFO: Render size: 1024 x 720\r\nINFO: Screen size: 1024 x 720\r\nINFO: Viewport offsets: 0, 0\r\nINFO: GLAD: OpenGL extensions loaded successfully\r\nINFO: OpenGL 3.3 Core profile supported\r\nINFO: GPU: Vendor:   NVIDIA Corporation\r\nINFO: GPU: Renderer: GeForce GTX 760/PCIe/SSE2\r\nINFO: GPU: Version:  3.3.0 NVIDIA 384.69\r\nINFO: GPU: GLSL:     3.30 NVIDIA via Cg compiler\r\nINFO: Number of supported extensions: 330\r\nINFO: [EXTENSION] DXT compressed textures supported\r\nINFO: [EXTENSION] ETC2/EAC compressed textures supported\r\nINFO: [EXTENSION] Anisotropic textures filtering supported (max: 16X)\r\nINFO: [EXTENSION] Clamp mirror wrap texture mode supported\r\nINFO: [TEX ID 1] Texture created successfully (1x1)\r\nINFO: [TEX ID 1] Base white texture loaded successfully\r\nINFO: [VSHDR ID 1] Vertex shader compiled successfully\r\nINFO: [FSHDR ID 2] Fragment shader compiled successfully\r\nINFO: [SHDR ID 3] Shader program loaded successfully\r\nINFO: [SHDR ID 3] Default shader loaded successfully\r\nINFO: [CPU] Default buffers initialized successfully (lines, triangles, quads)\r\nINFO: [VAO ID 1] Default buffers VAO initialized successfully (lines)\r\nINFO: [VAO ID 2] Default buffers VAO initialized successfully (triangles)\r\nINFO: [VAO ID 3] Default buffers VAO initialized successfully (quads)\r\nINFO: OpenGL default states initialized successfully\r\nINFO: [TEX ID 2] Texture created successfully (128x128)\r\nINFO: [TEX ID 2] Default font loaded successfully\r\nINFO: [../../data/grass.png] Image loaded successfully (148x164)\r\nINFO: [TEX ID 3] Texture created successfully (148x164)\r\n==24503== Invalid write of size 4\r\n==24503==    at 0x52255EC: rlEnableTexture (in /usr/lib/libraylib.so)\r\n==24503==    by 0x524203F: DrawTexturePro (in /usr/lib/libraylib.so)\r\n==24503==    by 0x52422AB: DrawTextureEx (in /usr/lib/libraylib.so)\r\n==24503==    by 0x5242311: DrawTexture (in /usr/lib/libraylib.so)\r\n==24503==    by 0x108FE0: main (in /home/dylan/Projects/Bytestream/build/meson-out/client)\r\n==24503==  Address 0xb3d8918 is 8 bytes after a block of size 36,864 alloc'd\r\n==24503==    at 0x4C2CE5F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)\r\n==24503==    by 0x5226F2A: rlglInit (in /usr/lib/libraylib.so)\r\n==24503==    by 0x5217D68: InitWindow (in /usr/lib/libraylib.so)\r\n==24503==    by 0x108E89: main (in /home/dylan/Projects/Bytestream/build/meson-out/client)\r\n==24503== \r\n==24503== Invalid write of size 4\r\n==24503==    at 0x52255EF: rlEnableTexture (in /usr/lib/libraylib.so)\r\n==24503==    by 0x524203F: DrawTexturePro (in /usr/lib/libraylib.so)\r\n==24503==    by 0x52422AB: DrawTextureEx (in /usr/lib/libraylib.so)\r\n==24503==    by 0x5242311: DrawTexture (in /usr/lib/libraylib.so)\r\n==24503==    by 0x108FE0: main (in /home/dylan/Projects/Bytestream/build/meson-out/client)\r\n==24503==  Address 0xb3d8910 is 0 bytes after a block of size 36,864 alloc'd\r\n==24503==    at 0x4C2CE5F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)\r\n==24503==    by 0x5226F2A: rlglInit (in /usr/lib/libraylib.so)\r\n==24503==    by 0x5217D68: InitWindow (in /usr/lib/libraylib.so)\r\n==24503==    by 0x108E89: main (in /home/dylan/Projects/Bytestream/build/meson-out/client)\r\n==24503== \r\n==24503== Invalid read of size 4\r\n==24503==    at 0x5224FDE: rlVertex3f (in /usr/lib/libraylib.so)\r\n==24503==    by 0x52250D5: rlEnd (in /usr/lib/libraylib.so)\r\n==24503==    by 0x52421F8: DrawTexturePro (in /usr/lib/libraylib.so)\r\n==24503==    by 0x52422AB: DrawTextureEx (in /usr/lib/libraylib.so)\r\n==24503==    by 0x5242311: DrawTexture (in /usr/lib/libraylib.so)\r\n==24503==    by 0x108FE0: main (in /home/dylan/Projects/Bytestream/build/meson-out/client)\r\n==24503==  Address 0xb3d8910 is 0 bytes after a block of size 36,864 alloc'd\r\n==24503==    at 0x4C2CE5F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)\r\n==24503==    by 0x5226F2A: rlglInit (in /usr/lib/libraylib.so)\r\n==24503==    by 0x5217D68: InitWindow (in /usr/lib/libraylib.so)\r\n==24503==    by 0x108E89: main (in /home/dylan/Projects/Bytestream/build/meson-out/client)\r\n==24503== \r\n==24503== Invalid read of size 4\r\n==24503==    at 0x52255C2: rlEnableTexture (in /usr/lib/libraylib.so)\r\n==24503==    by 0x522C6CD: DrawRectangleV (in /usr/lib/libraylib.so)\r\n==24503==    by 0x522C8D4: DrawRectangle (in /usr/lib/libraylib.so)\r\n==24503==    by 0x109003: main (in /home/dylan/Projects/Bytestream/build/meson-out/client)\r\n==24503==  Address 0xb3d8918 is 8 bytes after a block of size 36,864 alloc'd\r\n==24503==    at 0x4C2CE5F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)\r\n==24503==    by 0x5226F2A: rlglInit (in /usr/lib/libraylib.so)\r\n==24503==    by 0x5217D68: InitWindow (in /usr/lib/libraylib.so)\r\n==24503==    by 0x108E89: main (in /home/dylan/Projects/Bytestream/build/meson-out/client)\r\n==24503== \r\n==24503== Invalid read of size 4\r\n==24503==    at 0x52255C7: rlEnableTexture (in /usr/lib/libraylib.so)\r\n==24503==    by 0x522C6CD: DrawRectangleV (in /usr/lib/libraylib.so)\r\n==24503==    by 0x522C8D4: DrawRectangle (in /usr/lib/libraylib.so)\r\n==24503==    by 0x109003: main (in /home/dylan/Projects/Bytestream/build/meson-out/client)\r\n==24503==  Address 0xb3d8910 is 0 bytes after a block of size 36,864 alloc'd\r\n==24503==    at 0x4C2CE5F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)\r\n==24503==    by 0x5226F2A: rlglInit (in /usr/lib/libraylib.so)\r\n==24503==    by 0x5217D68: InitWindow (in /usr/lib/libraylib.so)\r\n==24503==    by 0x108E89: main (in /home/dylan/Projects/Bytestream/build/meson-out/client)\r\n==24503== \r\n==24503== Invalid write of size 4\r\n==24503==    at 0x52255EC: rlEnableTexture (in /usr/lib/libraylib.so)\r\n==24503==    by 0x522C6CD: DrawRectangleV (in /usr/lib/libraylib.so)\r\n==24503==    by 0x522C8D4: DrawRectangle (in /usr/lib/libraylib.so)\r\n==24503==    by 0x109003: main (in /home/dylan/Projects/Bytestream/build/meson-out/client)\r\n==24503==  Address 0xb3d89a8 is 88 bytes inside a block of size 65,536 free'd\r\n==24503==    at 0x4C2E14B: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)\r\n==24503==    by 0x520F2CA: LoadDefaultFont (in /usr/lib/libraylib.so)\r\n==24503==    by 0x5217DDB: InitWindow (in /usr/lib/libraylib.so)\r\n==24503==    by 0x108E89: main (in /home/dylan/Projects/Bytestream/build/meson-out/client)\r\n==24503==  Block was alloc'd at\r\n==24503==    at 0x4C2CE5F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)\r\n==24503==    by 0x520F216: LoadDefaultFont (in /usr/lib/libraylib.so)\r\n==24503==    by 0x5217DDB: InitWindow (in /usr/lib/libraylib.so)\r\n==24503==    by 0x108E89: main (in /home/dylan/Projects/Bytestream/build/meson-out/client)\r\n==24503== \r\n==24503== Invalid write of size 4\r\n==24503==    at 0x52255EF: rlEnableTexture (in /usr/lib/libraylib.so)\r\n==24503==    by 0x522C6CD: DrawRectangleV (in /usr/lib/libraylib.so)\r\n==24503==    by 0x522C8D4: DrawRectangle (in /usr/lib/libraylib.so)\r\n==24503==    by 0x109003: main (in /home/dylan/Projects/Bytestream/build/meson-out/client)\r\n==24503==  Address 0xb3d89a0 is 80 bytes inside a block of size 65,536 free'd\r\n==24503==    at 0x4C2E14B: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)\r\n==24503==    by 0x520F2CA: LoadDefaultFont (in /usr/lib/libraylib.so)\r\n==24503==    by 0x5217DDB: InitWindow (in /usr/lib/libraylib.so)\r\n==24503==    by 0x108E89: main (in /home/dylan/Projects/Bytestream/build/meson-out/client)\r\n==24503==  Block was alloc'd at\r\n==24503==    at 0x4C2CE5F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)\r\n==24503==    by 0x520F216: LoadDefaultFont (in /usr/lib/libraylib.so)\r\n==24503==    by 0x5217DDB: InitWindow (in /usr/lib/libraylib.so)\r\n==24503==    by 0x108E89: main (in /home/dylan/Projects/Bytestream/build/meson-out/client)\r\n==24503== \r\n==24503== Invalid read of size 4\r\n==24503==    at 0x5224FDE: rlVertex3f (in /usr/lib/libraylib.so)\r\n==24503==    by 0x5225375: rlVertex2f (in /usr/lib/libraylib.so)\r\n==24503==    by 0x522C71D: DrawRectangleV (in /usr/lib/libraylib.so)\r\n==24503==    by 0x522C8D4: DrawRectangle (in /usr/lib/libraylib.so)\r\n==24503==    by 0x109003: main (in /home/dylan/Projects/Bytestream/build/meson-out/client)\r\n==24503==  Address 0xb3d89a0 is 80 bytes inside a block of size 65,536 free'd\r\n==24503==    at 0x4C2E14B: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)\r\n==24503==    by 0x520F2CA: LoadDefaultFont (in /usr/lib/libraylib.so)\r\n==24503==    by 0x5217DDB: InitWindow (in /usr/lib/libraylib.so)\r\n==24503==    by 0x108E89: main (in /home/dylan/Projects/Bytestream/build/meson-out/client)\r\n==24503==  Block was alloc'd at\r\n==24503==    at 0x4C2CE5F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)\r\n==24503==    by 0x520F216: LoadDefaultFont (in /usr/lib/libraylib.so)\r\n==24503==    by 0x5217DDB: InitWindow (in /usr/lib/libraylib.so)\r\n==24503==    by 0x108E89: main (in /home/dylan/Projects/Bytestream/build/meson-out/client)\r\n==24503== \r\n==24503== Invalid read of size 4\r\n==24503==    at 0x5224FDE: rlVertex3f (in /usr/lib/libraylib.so)\r\n==24503==    by 0x5225375: rlVertex2f (in /usr/lib/libraylib.so)\r\n==24503==    by 0x522C74D: DrawRectangleV (in /usr/lib/libraylib.so)\r\n==24503==    by 0x522C8D4: DrawRectangle (in /usr/lib/libraylib.so)\r\n==24503==    by 0x109003: main (in /home/dylan/Projects/Bytestream/build/meson-out/client)\r\n==24503==  Address 0xb3d89a0 is 80 bytes inside a block of size 65,536 free'd\r\n==24503==    at 0x4C2E14B: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)\r\n==24503==    by 0x520F2CA: LoadDefaultFont (in /usr/lib/libraylib.so)\r\n==24503==    by 0x5217DDB: InitWindow (in /usr/lib/libraylib.so)\r\n==24503==    by 0x108E89: main (in /home/dylan/Projects/Bytestream/build/meson-out/client)\r\n==24503==  Block was alloc'd at\r\n==24503==    at 0x4C2CE5F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)\r\n==24503==    by 0x520F216: LoadDefaultFont (in /usr/lib/libraylib.so)\r\n==24503==    by 0x5217DDB: InitWindow (in /usr/lib/libraylib.so)\r\n==24503==    by 0x108E89: main (in /home/dylan/Projects/Bytestream/build/meson-out/client)\r\n==24503== \r\n==24503== Invalid read of size 4\r\n==24503==    at 0x5224FDE: rlVertex3f (in /usr/lib/libraylib.so)\r\n==24503==    by 0x5225375: rlVertex2f (in /usr/lib/libraylib.so)\r\n==24503==    by 0x522C77B: DrawRectangleV (in /usr/lib/libraylib.so)\r\n==24503==    by 0x522C8D4: DrawRectangle (in /usr/lib/libraylib.so)\r\n==24503==    by 0x109003: main (in /home/dylan/Projects/Bytestream/build/meson-out/client)\r\n==24503==  Address 0xb3d89a0 is 80 bytes inside a block of size 65,536 free'd\r\n==24503==    at 0x4C2E14B: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)\r\n==24503==    by 0x520F2CA: LoadDefaultFont (in /usr/lib/libraylib.so)\r\n==24503==    by 0x5217DDB: InitWindow (in /usr/lib/libraylib.so)\r\n==24503==    by 0x108E89: main (in /home/dylan/Projects/Bytestream/build/meson-out/client)\r\n==24503==  Block was alloc'd at\r\n==24503==    at 0x4C2CE5F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)\r\n==24503==    by 0x520F216: LoadDefaultFont (in /usr/lib/libraylib.so)\r\n==24503==    by 0x5217DDB: InitWindow (in /usr/lib/libraylib.so)\r\n==24503==    by 0x108E89: main (in /home/dylan/Projects/Bytestream/build/meson-out/client)\r\n==24503== \r\n==24503== Invalid read of size 4\r\n==24503==    at 0x5224FDE: rlVertex3f (in /usr/lib/libraylib.so)\r\n==24503==    by 0x5225375: rlVertex2f (in /usr/lib/libraylib.so)\r\n==24503==    by 0x522C79C: DrawRectangleV (in /usr/lib/libraylib.so)\r\n==24503==    by 0x522C8D4: DrawRectangle (in /usr/lib/libraylib.so)\r\n==24503==    by 0x109003: main (in /home/dylan/Projects/Bytestream/build/meson-out/client)\r\n==24503==  Address 0xb3d89a0 is 80 bytes inside a block of size 65,536 free'd\r\n==24503==    at 0x4C2E14B: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)\r\n==24503==    by 0x520F2CA: LoadDefaultFont (in /usr/lib/libraylib.so)\r\n==24503==    by 0x5217DDB: InitWindow (in /usr/lib/libraylib.so)\r\n==24503==    by 0x108E89: main (in /home/dylan/Projects/Bytestream/build/meson-out/client)\r\n==24503==  Block was alloc'd at\r\n==24503==    at 0x4C2CE5F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)\r\n==24503==    by 0x520F216: LoadDefaultFont (in /usr/lib/libraylib.so)\r\n==24503==    by 0x5217DDB: InitWindow (in /usr/lib/libraylib.so)\r\n==24503==    by 0x108E89: main (in /home/dylan/Projects/Bytestream/build/meson-out/client)\r\n==24503== \r\n==24503== Invalid read of size 4\r\n==24503==    at 0x52255C2: rlEnableTexture (in /usr/lib/libraylib.so)\r\n==24503==    by 0x524203F: DrawTexturePro (in /usr/lib/libraylib.so)\r\n==24503==    by 0x52422AB: DrawTextureEx (in /usr/lib/libraylib.so)\r\n==24503==    by 0x5242311: DrawTexture (in /usr/lib/libraylib.so)\r\n==24503==    by 0x108FE0: main (in /home/dylan/Projects/Bytestream/build/meson-out/client)\r\n==24503==  Address 0xb3d89a8 is 88 bytes inside a block of size 65,536 free'd\r\n==24503==    at 0x4C2E14B: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)\r\n==24503==    by 0x520F2CA: LoadDefaultFont (in /usr/lib/libraylib.so)\r\n==24503==    by 0x5217DDB: InitWindow (in /usr/lib/libraylib.so)\r\n==24503==    by 0x108E89: main (in /home/dylan/Projects/Bytestream/build/meson-out/client)\r\n==24503==  Block was alloc'd at\r\n==24503==    at 0x4C2CE5F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)\r\n==24503==    by 0x520F216: LoadDefaultFont (in /usr/lib/libraylib.so)\r\n==24503==    by 0x5217DDB: InitWindow (in /usr/lib/libraylib.so)\r\n==24503==    by 0x108E89: main (in /home/dylan/Projects/Bytestream/build/meson-out/client)\r\n==24503== \r\n==24503== Invalid read of size 4\r\n==24503==    at 0x52255C7: rlEnableTexture (in /usr/lib/libraylib.so)\r\n==24503==    by 0x524203F: DrawTexturePro (in /usr/lib/libraylib.so)\r\n==24503==    by 0x52422AB: DrawTextureEx (in /usr/lib/libraylib.so)\r\n==24503==    by 0x5242311: DrawTexture (in /usr/lib/libraylib.so)\r\n==24503==    by 0x108FE0: main (in /home/dylan/Projects/Bytestream/build/meson-out/client)\r\n==24503==  Address 0xb3d89a0 is 80 bytes inside a block of size 65,536 free'd\r\n==24503==    at 0x4C2E14B: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)\r\n==24503==    by 0x520F2CA: LoadDefaultFont (in /usr/lib/libraylib.so)\r\n==24503==    by 0x5217DDB: InitWindow (in /usr/lib/libraylib.so)\r\n==24503==    by 0x108E89: main (in /home/dylan/Projects/Bytestream/build/meson-out/client)\r\n==24503==  Block was alloc'd at\r\n==24503==    at 0x4C2CE5F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)\r\n==24503==    by 0x520F216: LoadDefaultFont (in /usr/lib/libraylib.so)\r\n==24503==    by 0x5217DDB: InitWindow (in /usr/lib/libraylib.so)\r\n==24503==    by 0x108E89: main (in /home/dylan/Projects/Bytestream/build/meson-out/client)\r\n==24503== \r\n\r\nvalgrind: m_mallocfree.c:307 (get_bszB_as_is): Assertion 'bszB_lo == bszB_hi' failed.\r\nvalgrind: Heap block lo/hi size mismatch: lo = 4, hi = 17179869184.\r\nThis is probably caused by your program erroneously writing past the\r\nend of a heap block and corrupting heap metadata.  If you fix any\r\ninvalid writes reported by Memcheck, this assertion failure will\r\nprobably go away.  Please try that before reporting this as a bug.\r\n\r\n\r\nhost stacktrace:\r\n==24503==    at 0x5804500B: ??? (in /usr/lib/valgrind/memcheck-amd64-linux)\r\n==24503==    by 0x58045124: ??? (in /usr/lib/valgrind/memcheck-amd64-linux)\r\n==24503==    by 0x580452BC: ??? (in /usr/lib/valgrind/memcheck-amd64-linux)\r\n==24503==    by 0x580545AC: ??? (in /usr/lib/valgrind/memcheck-amd64-linux)\r\n==24503==    by 0x5800BEED: ??? (in /usr/lib/valgrind/memcheck-amd64-linux)\r\n==24503==    by 0x5800C0E7: ??? (in /usr/lib/valgrind/memcheck-amd64-linux)\r\n==24503==    by 0x580A1F0D: ??? (in /usr/lib/valgrind/memcheck-amd64-linux)\r\n==24503==    by 0x580B1878: ??? (in /usr/lib/valgrind/memcheck-amd64-linux)\r\n\r\nsched status:\r\n  running_tid=1\r\n\r\nThread 1: status = VgTs_Runnable (lwpid 24503)\r\n==24503==    at 0x4C2CE5F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)\r\n==24503==    by 0x88AABA8: ??? (in /usr/lib/libGLX_nvidia.so.384.69)\r\n==24503==    by 0x9E80B9E: ??? (in /usr/lib/libnvidia-glcore.so.384.69)\r\n==24503==    by 0x9E11936: ??? (in /usr/lib/libnvidia-glcore.so.384.69)\r\n==24503==    by 0x9E13750: ??? (in /usr/lib/libnvidia-glcore.so.384.69)\r\n==24503==    by 0x9E194D6: ??? (in /usr/lib/libnvidia-glcore.so.384.69)\r\n==24503==    by 0x9A40987: ??? (in /usr/lib/libnvidia-glcore.so.384.69)\r\n==24503==    by 0x9A43095: ??? (in /usr/lib/libnvidia-glcore.so.384.69)\r\n==24503==    by 0x5221762: ??? (in /usr/lib/libraylib.so)\r\n==24503==    by 0x5229542: rlglDraw (in /usr/lib/libraylib.so)\r\n==24503==    by 0x521640E: EndDrawing (in /usr/lib/libraylib.so)\r\n==24503==    by 0x109010: main (in /home/dylan/Projects/Bytestream/build/meson-out/client)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/raysan5/raylib/issues/comments/332035411","html_url":"https://github.com/raysan5/raylib/issues/357#issuecomment-332035411","issue_url":"https://api.github.com/repos/raysan5/raylib/issues/357","id":332035411,"user":{"login":"raysan5","id":5766837,"avatar_url":"https://avatars0.githubusercontent.com/u/5766837?v=4","gravatar_id":"","url":"https://api.github.com/users/raysan5","html_url":"https://github.com/raysan5","followers_url":"https://api.github.com/users/raysan5/followers","following_url":"https://api.github.com/users/raysan5/following{/other_user}","gists_url":"https://api.github.com/users/raysan5/gists{/gist_id}","starred_url":"https://api.github.com/users/raysan5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raysan5/subscriptions","organizations_url":"https://api.github.com/users/raysan5/orgs","repos_url":"https://api.github.com/users/raysan5/repos","events_url":"https://api.github.com/users/raysan5/events{/privacy}","received_events_url":"https://api.github.com/users/raysan5/received_events","type":"User","site_admin":false},"created_at":"2017-09-25T22:45:56Z","updated_at":"2017-09-25T22:45:56Z","author_association":"OWNER","body":"You're welcome! Glad to read that it's fine now, I really care for memory leaks! :)"}}
{"actor":{"display_login":"raysan5"}}