Skip to content

Crash on proprietary NVidia drivers #73

@omgbebebe

Description

@omgbebebe

When I try to run a dmenu with a pressing V key the Matrix has crashed. This looks like a bug or weird openGL implemetation in NVidia drivers like https://stackoverflow.com/questions/11130668/glblitframebuffer-causing-access-violation.

OS: Ubuntu 24.04 LTS x86_64
Kernel: 6.8.0-31-generic
CPU: AMD Ryzen 9 7950X (32) @ 5.881GHz
GPU: NVIDIA GeForce RTX 4090
NVIDIA-SMI 535.171.04             Driver Version: 535.171.04   CUDA Version: 12.2
Thread 1 "matrix" received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()
(gdb) bt
#0  0x0000000000000000 in ?? ()
#1  0x00005555556aee97 in Renderer::drawAppDirect (this=0x555556121580, app=0x555560152390, bootable=0x0) at src/renderer.cpp:364
#2  0x00005555556b0b99 in Renderer::renderApps (this=0x555556121580) at src/renderer.cpp:537
#3  0x00005555556b25e3 in Renderer::render (this=0x555556121580, perspective=CAMERA, fromLight=std::optional [no contained value])
    at src/renderer.cpp:637
#4  0x000055555573e48a in Engine::loop (this=0x555555a15320) at src/engine.cpp:140
#5  0x00005555555b6fce in main (argc=1, argv=0x7fffffffe1e8, envp=0x7fffffffe1f8) at src/main.cpp:58
(gdb) f 1
#1  0x00005555556aee97 in Renderer::drawAppDirect (this=0x555556121580, app=0x555560152390, bootable=0x0) at src/renderer.cpp:364
364	      glBlitNamedFramebuffer(frameBuffers[index], 0,
(gdb) l
359	    if (!bootable) {
360	//      glBindFramebuffer(GL_DRAW_FRAMEBUFFER, 0);
361	//      glBindFramebuffer(GL_READ_FRAMEBUFFER, frameBuffers[index]);
362	
363	//      glBlitFramebuffer(
364	      glBlitNamedFramebuffer(frameBuffers[index], 0,
365	                             // src x1, src y1 (flip)
366	                             0, appHeight,
367	                             // end x2, end y2 (flip)
368	                             appWidth, 0,
(gdb) p index
$1 = 0
(gdb) p appHeight
$2 = 12
(gdb) p appWidth
$3 = 3840
(gdb) p frameBuffers
$4 = std::unordered_map with 1 element = {[0] = 3}
(gdb) p *app
$5 = {display = 0x555557196c80, screen = 0, appWindow = 10485764, attrs = {x = 0, y = 0, width = 3840, height = 12, border_width = 0,
    depth = 24, visual = 0x555557190950, root = 525, c_class = 1, bit_gravity = 0, win_gravity = 1, backing_store = 0,
    backing_planes = 4294967295, backing_pixel = 0, save_under = 0, colormap = 32, map_installed = 1, map_state = 2, all_event_masks = 98305,
    your_event_mask = 0, do_not_propagate_mask = 0, override_redirect = 1, screen = 0x5555563a2510}, fbConfigs = 0x7fffdc000f00,
  fbConfigCount = 6, textureUnit = 34015, textureId = 18, focused = std::atomic<bool> = { false }, x = 0, y = 2148, appIndex = 0,
  width = 3840, height = 12}
(gdb)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions