Skip to content

Crash on some font sizes #949

@Yaraslaut

Description

@Yaraslaut

Contour Terminal version

0.3.9-master-16675416

Installer source

Github: source code cloned

Operating System

0.3.9-master-16675416

Architecture

x86-64

Other Software

No response

Steps to reproduce

In my case set font to size 9

crash_on_font_9.mp4

Expected Behavior

No response

Actual Behavior

crash on startup

Additional notes

can be related #739

trace via lldb

* thread #1, name = 'contour', stop reason = signal SIGABRT
  * frame #0: 0x00007ffff638864c libc.so.6`___lldb_unnamed_symbol3503 + 268
    frame #1: 0x00007ffff6338958 libc.so.6`raise + 24
    frame #2: 0x00007ffff632253d libc.so.6`abort + 215
    frame #3: 0x00007ffff66c1112 libstdc++.so.6`std::__glibcxx_assert_fail(file=<unavailable>, line=<unavailable>, function=<unavailable>, condition=<unavailable>) at debug.cc:60:10
    frame #4: 0x000000000065030c contour`terminal::rasterizer::CursorRenderer::createTileData(this=<unavailable>, cursorShape=<unavailable>, columnWidth=<unavailable>, tileLocation=<unavailable>) at CursorRenderer.cpp:0:50
    frame #5: 0x000000000064fbf1 contour`terminal::rasterizer::CursorRenderer::initializeDirectMapping(this=0x0000000000f6a248) at CursorRenderer.cpp:91:53
    frame #6: 0x000000000064fb2a contour`terminal::rasterizer::CursorRenderer::setTextureAtlas(this=<unavailable>, atlas=<unavailable>) at CursorRenderer.cpp:68:5
    frame #7: 0x0000000000632d88 contour`terminal::rasterizer::Renderer::configureTextureAtlas(this=0x0000000000f69df0) at Renderer.cpp:214:26
    frame #8: 0x000000000063290c contour`terminal::rasterizer::Renderer::setRenderTarget(this=0x0000000000f69df0, renderTarget=0x0000000000d606c0) at Renderer.cpp:183:5
    frame #9: 0x00000000006127ce contour`contour::display::TerminalWidget::setSession(this=0x0000000000baaab0, newSession=<unavailable>) at TerminalWidget.cpp:304:16
    frame #10: 0x000000000056685c contour`contour::TerminalSession::attachDisplay(this=0x0000000000ca2de0, newDisplay=0x0000000000baaab0) at TerminalSession.cpp:174:16

function that cause crash

TextureAtlas::TileCreateData tileData = createTileData(shape, width, tileLocation);

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcrash(-like)Bug that results in severe state corruption, lock-ups with recovery, or outright terminationfontsfont rasterization and text shaping API and platform implementations

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions