Created
July 6, 2019 11:02
-
-
Save spytheman/4f7dca9b5afcf24cfb66652f61d53be4 to your computer and use it in GitHub Desktop.
V gg.draw_text_def crashes on Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1[13:58:06]delian@nemesis: ~/vbreakout $ gdb ./breakout | |
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1 | |
Copyright (C) 2016 Free Software Foundation, Inc. | |
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> | |
This is free software: you are free to change and redistribute it. | |
There is NO WARRANTY, to the extent permitted by law. Type "show copying" | |
and "show warranty" for details. | |
This GDB was configured as "x86_64-linux-gnu". | |
Type "show configuration" for configuration details. | |
For bug reporting instructions, please see: | |
<http://www.gnu.org/software/gdb/bugs/>. | |
Find the GDB manual and other documentation resources online at: | |
<http://www.gnu.org/software/gdb/documentation/>. | |
For help, type "help". | |
Type "apropos word" to search for commands related to "word"... | |
Reading symbols from ./breakout...done. | |
(gdb) r | |
Starting program: /home/delian/vbreakout/breakout | |
warning: the debug information found in "/lib64/ld-2.23.so" does not match "/lib64/ld-linux-x86-64.so.2" (CRC mismatch). | |
[Thread debugging using libthread_db enabled] | |
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". | |
create window wnd=0x65f1c0 ptr==0x7984b0 | |
#version 330 core | |
layout (location = 0) in vec4 vertex; // <vec2 pos, vec2 tex> | |
out vec2 TexCoords; | |
uniform mat4 projection; | |
void main() | |
{ | |
gl_Position = projection * vec4(vertex.xy, 0.0, 1.0); | |
TexCoords = vertex.zw; | |
} | |
shader path=simple.vert, | |
fpath="simple.frag" | |
glm ortho(0.000000, 800.000000, 600.000000, 0.000000) | |
0=0.002500 1=0.000000 2=0.000000 3=0.000000 4=0.000000 5=-0.003333 6=0.000000 7=0.000000 8=0.000000 9=0.000000 10=1.000000 11=0.000000 12=-1.000000 13=1.000000 14=0.000000 15=1.000000 setting o | |
new gg context VAO=1 | |
shader path=text.vert, | |
fpath="text.frag" | |
glm ortho(0.000000, 800.000000, 0.000000, 600.000000) | |
new gg text context VAO=2 | |
≈йцукенгшщзхъфывапролджэячсмитьбюЙЦУКЕНГШЩЗХЪФЫВАПРОЛДЖЭЯЧСМИТЬБЮ | |
TODO: init_bricks | |
gg create image "assets/paddle.png" | |
gg create image "assets/ball.png" | |
[New Thread 0x7ffff1bea700 (LWP 29320)] | |
[New Thread 0x7ffff13e9700 (LWP 29321)] | |
frame: 1 | fps: 0 | game.ball: 3 3 3 3 | game.paddle: 400 585 | |
Thread 1 "breakout" received signal SIGSEGV, Segmentation fault. | |
0x0000000000422d47 in ustring_substr (u=..., start=0, end=1) at /home/delian//.vlang//breakout.c:2471 | |
2471 start = ( *(int*) array__get( u .runes , start) ) ; | |
(gdb) bt | |
#0 0x0000000000422d47 in ustring_substr (u=..., start=0, end=1) at /home/delian//.vlang//breakout.c:2471 | |
#1 0x0000000000422e99 in ustring_at (u=..., idx=0) at /home/delian//.vlang//breakout.c:2524 | |
#2 0x0000000000428186 in gg__GG__draw_text (ctx=0xc6ab70, _x=50, _y=61, utext=..., cfg=...) at /home/delian//.vlang//breakout.c:5076 | |
#3 0x0000000000427f89 in gg__GG_draw_text (ctx=0xca56a0, _x=50, _y=50, text=..., cfg=...) at /home/delian//.vlang//breakout.c:5035 | |
#4 0x00000000004286b5 in gg__GG_draw_text_def (ctx=0xca56a0, x=50, y=50, text=...) at /home/delian//.vlang//breakout.c:5177 | |
#5 0x000000000042d2af in Game_draw_stats (g=0x7984b0) at /home/delian//.vlang//breakout.c:7866 | |
#6 0x000000000042d2f3 in Game_draw_scene (g=0x7984b0) at /home/delian//.vlang//breakout.c:7878 | |
#7 0x000000000042d6ff in main (argc=1, argv=0x7fffffffd848) at /home/delian//.vlang//breakout.c:7970 | |
(gdb) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment