Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault when using Terminus (TTF) and window is too wide and borderpx is 0 #18

Open
gustafla opened this issue Oct 16, 2019 · 0 comments

Comments

@gustafla
Copy link

Hi and thanks for developing wterm.
On my 1440p display wterm crashes in sway if the window is too wide. Half of screen doesn't work but one third is fine. Also setting borderpx non-zero works.

(gdb) run
Starting program: /home/gustafla/.local/bin/wterm
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
# find_driver: Trying DRM driver `intel'
# find_driver: Trying DRM driver `nouveau'
# find_driver: Trying DRM driver `dumb'
# wld_font_open_pattern: Loading font file: /usr/share/fonts/TTF/TerminusTTF.ttf
# wld_font_open_pattern: Loading font file: /usr/share/fonts/TTF/TerminusTTF-Italic.ttf
# wld_font_open_pattern: Loading font file: /usr/share/fonts/TTF/TerminusTTF-Bold Italic.ttf
# wld_font_open_pattern: Loading font file: /usr/share/fonts/TTF/TerminusTTF-Bold.ttf
[Detaching after fork from child process 14141]

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7db0af3 in ?? () from /usr/lib/libpixman-1.so.0
(gdb) backtrace
#0  0x00007ffff7db0af3 in ?? () from /usr/lib/libpixman-1.so.0
#1  0x00007ffff7e2594e in pixman_fill () from /usr/lib/libpixman-1.so.0
#2  0x00007ffff7e27226 in pixman_image_fill_boxes () from /usr/lib/libpixman-1.so.0
#3  0x0000555555573add in renderer_fill_rectangle (base=0x5555555a8020, color=2852126720, x=0, y=1428, width=1284, height=12) at pixman.c:270
#4  0x000055555556c99e in wld_fill_rectangle (renderer=0x5555555a8020, color=2852126720, x=0, y=1428, width=1284, height=12) at renderer.c:109
#5  0x0000555555567902 in wltermclear (col1=0, row1=119, col2=213, row2=119) at src/wterm.c:2781
#6  0x0000555555569795 in drawregion (x1=0, y1=0, x2=213, y2=120) at src/wterm.c:3363
#7  0x000055555556963c in draw () at src/wterm.c:3338
#8  0x000055555556b58f in run () at src/wterm.c:3929
#9  0x000055555556ba48 in main (argc=0, argv=0x7fffffffe820) at src/wterm.c:3999
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant