GramEditor/gram
39
993
Fork
You've already forked gram
87

cant launch - crash in webgpu_renderer.rs #181

Closed
opened 2026年03月29日 20:33:40 +02:00 by two · 7 comments
2026年03月29日T18:30:40+00:00 INFO  [gram] ========== starting gram version 1.2.0, sha 2c0838b ==========
MESA-INTEL: warning: Haswell Vulkan support is incomplete
MESA-INTEL: warning: Haswell Vulkan support is incomplete
2026年03月29日T18:30:41+00:00 INFO  [gpui::platform::wgpu::wgpu_context] Selected GPU adapter: "Mesa Intel(R) HD Graphics 4600 (HSW GT2)" (Gl)
2026年03月29日T18:30:41+00:00 INFO  [crashes] spawning crash handler process
2026年03月29日T18:30:41+00:00 INFO  [gpui::platform::linux::platform] activate is not implemented on Linux, ignoring the call
2026年03月29日T18:30:41+00:00 INFO  [crashes] connected to crash handler process after 100ms
2026年03月29日T18:30:41+00:00 INFO  [crashes] crash handler registered
2026年03月29日T18:30:41+00:00 ERROR [crashes] thread 'main' panicked at crates/gpui/src/platform/wgpu/wgpu_renderer.rs:169:44:
index out of bounds: the len is 0 but the index is 0...
2026年03月29日T18:30:41+00:00 ERROR [crashes] triggering a crash to generate a minidump...
<pre>2026年03月29日T18:30:40+00:00 <font color="#26A269"><b>INFO </b></font> [<b>gram</b>] ========== starting gram version 1.2.0, sha 2c0838b ========== MESA-INTEL: warning: Haswell Vulkan support is incomplete MESA-INTEL: warning: Haswell Vulkan support is incomplete 2026年03月29日T18:30:41+00:00 <font color="#26A269"><b>INFO </b></font> [<b>gpui::platform::wgpu::wgpu_context</b>] Selected GPU adapter: &quot;Mesa Intel(R) HD Graphics 4600 (HSW GT2)&quot; (Gl) 2026年03月29日T18:30:41+00:00 <font color="#26A269"><b>INFO </b></font> [<b>crashes</b>] spawning crash handler process 2026年03月29日T18:30:41+00:00 <font color="#26A269"><b>INFO </b></font> [<b>gpui::platform::linux::platform</b>] activate is not implemented on Linux, ignoring the call 2026年03月29日T18:30:41+00:00 <font color="#26A269"><b>INFO </b></font> [<b>crashes</b>] connected to crash handler process after 100ms 2026年03月29日T18:30:41+00:00 <font color="#26A269"><b>INFO </b></font> [<b>crashes</b>] crash handler registered 2026年03月29日T18:30:41+00:00 <font color="#C01C28"><b>ERROR</b></font> [<b>crashes</b>] thread &apos;main&apos; panicked at crates/gpui/src/platform/wgpu/wgpu_renderer.rs:169:44: index out of bounds: the len is 0 but the index is 0... 2026年03月29日T18:30:41+00:00 <font color="#C01C28"><b>ERROR</b></font> [<b>crashes</b>] triggering a crash to generate a minidump... </pre>
Author
Copy link

(its #149)

(its #149)
Author
Copy link

wait, its a different error

wait, its a different error
Owner
Copy link

Hi!

I have basically the same GPU in a laptop here and it crashes in the same way for me too. I think Zed has gotten this to work. I suspect that the problem is that we create the WGPU context before we have a display handle, and in the most recent WGPU version they made it possible to pass a display into the context creation. Need to restructure the code a bit to get that to work.

Hi! I have basically the same GPU in a laptop here and it crashes in the same way for me too. I _think_ Zed has gotten this to work. I suspect that the problem is that we create the WGPU context before we have a display handle, and in the most recent WGPU version they made it possible to pass a display into the context creation. Need to restructure the code a bit to get that to work.

Hello,

I am encountering the same error when the Vulkan GPU drivers are missing. ( Fixed by installing vulkan drivers )

2026年04月29日T01:23:08+02:00 INFO [gram] ========== starting gram version 1.2.1, sha 0b406ac ==========
2026年04月29日T01:23:08+02:00 INFO [gpui::platform::linux::x11::client] x11: compositor present: true, gtk_frame_extents_supported: true
xkbcommon: ERROR: /usr/share/X11/locale/en_US.UTF-8/Compose:1661:1: unrecognized keysym "dead_hamza" on left-hand side
xkbcommon: ERROR: /usr/share/X11/locale/en_US.UTF-8/Compose:1662:1: unrecognized keysym "dead_hamza" on left-hand side
xkbcommon: ERROR: /usr/share/X11/locale/en_US.UTF-8/Compose:1663:1: unrecognized keysym "dead_hamza" on left-hand side
xkbcommon: ERROR: /usr/share/X11/locale/en_US.UTF-8/Compose:1664:1: unrecognized keysym "dead_hamza" on left-hand side
xkbcommon: ERROR: /usr/share/X11/locale/en_US.UTF-8/Compose:1665:1: unrecognized keysym "dead_hamza" on left-hand side
2026年04月29日T01:23:08+02:00 ERROR [wgpu_hal::vulkan::instance] enumerate_adapters: Initialization of an object has failed
2026年04月29日T01:23:08+02:00 INFO [gpui::platform::wgpu::wgpu_context] Selected GPU adapter: "AMD Radeon RX 9070 XT (radeonsi, gfx1201, LLVM 21.1.7, DRM 3.61, 6.12.84_1)" (Gl)
2026年04月29日T01:23:08+02:00 INFO [gpui::platform::linux::x11::client] Using scale factor from Xft.dpi: 1
2026年04月29日T01:23:08+02:00 INFO [crashes] spawning crash handler process
2026年04月29日T01:23:08+02:00 INFO [extension_host] Rebuild the index!
2026年04月29日T01:23:09+02:00 INFO [gpui::platform::linux::platform] activate is not implemented on Linux, ignoring the call
2026年04月29日T01:23:09+02:00 INFO [gpui::platform::linux::x11::window] Using Visual { id: 137, colormap: 0, depth: 32 }
2026年04月29日T01:23:09+02:00 INFO [gpui::platform::linux::x11::window] Creating colormap 58720258
2026年04月29日T01:23:09+02:00 INFO [crashes] connected to crash handler process after 100ms
2026年04月29日T01:23:09+02:00 INFO [crashes] crash handler registered
2026年04月29日T01:23:09+02:00 ERROR [crashes] thread 'main' panicked at crates/gpui/src/platform/wgpu/wgpu_renderer.rs:169:44:
index out of bounds: the len is 0 but the index is 0...
2026年04月29日T01:23:09+02:00 ERROR [crashes] triggering a crash to generate a minidump... 
Hello, I am encountering the same error when the Vulkan GPU drivers are missing. ( Fixed by installing vulkan drivers ) ``` 2026年04月29日T01:23:08+02:00 INFO [gram] ========== starting gram version 1.2.1, sha 0b406ac ========== 2026年04月29日T01:23:08+02:00 INFO [gpui::platform::linux::x11::client] x11: compositor present: true, gtk_frame_extents_supported: true xkbcommon: ERROR: /usr/share/X11/locale/en_US.UTF-8/Compose:1661:1: unrecognized keysym "dead_hamza" on left-hand side xkbcommon: ERROR: /usr/share/X11/locale/en_US.UTF-8/Compose:1662:1: unrecognized keysym "dead_hamza" on left-hand side xkbcommon: ERROR: /usr/share/X11/locale/en_US.UTF-8/Compose:1663:1: unrecognized keysym "dead_hamza" on left-hand side xkbcommon: ERROR: /usr/share/X11/locale/en_US.UTF-8/Compose:1664:1: unrecognized keysym "dead_hamza" on left-hand side xkbcommon: ERROR: /usr/share/X11/locale/en_US.UTF-8/Compose:1665:1: unrecognized keysym "dead_hamza" on left-hand side 2026年04月29日T01:23:08+02:00 ERROR [wgpu_hal::vulkan::instance] enumerate_adapters: Initialization of an object has failed 2026年04月29日T01:23:08+02:00 INFO [gpui::platform::wgpu::wgpu_context] Selected GPU adapter: "AMD Radeon RX 9070 XT (radeonsi, gfx1201, LLVM 21.1.7, DRM 3.61, 6.12.84_1)" (Gl) 2026年04月29日T01:23:08+02:00 INFO [gpui::platform::linux::x11::client] Using scale factor from Xft.dpi: 1 2026年04月29日T01:23:08+02:00 INFO [crashes] spawning crash handler process 2026年04月29日T01:23:08+02:00 INFO [extension_host] Rebuild the index! 2026年04月29日T01:23:09+02:00 INFO [gpui::platform::linux::platform] activate is not implemented on Linux, ignoring the call 2026年04月29日T01:23:09+02:00 INFO [gpui::platform::linux::x11::window] Using Visual { id: 137, colormap: 0, depth: 32 } 2026年04月29日T01:23:09+02:00 INFO [gpui::platform::linux::x11::window] Creating colormap 58720258 2026年04月29日T01:23:09+02:00 INFO [crashes] connected to crash handler process after 100ms 2026年04月29日T01:23:09+02:00 INFO [crashes] crash handler registered 2026年04月29日T01:23:09+02:00 ERROR [crashes] thread 'main' panicked at crates/gpui/src/platform/wgpu/wgpu_renderer.rs:169:44: index out of bounds: the len is 0 but the index is 0... 2026年04月29日T01:23:09+02:00 ERROR [crashes] triggering a crash to generate a minidump... ```

Same issue, different hardware:

2026年05月01日T01:06:39-04:00 INFO [gram] ========== starting gram version 1.2.1, sha 0b406ac ==========
2026年05月01日T01:06:39-04:00 INFO [gpui::platform::wgpu::wgpu_context] Selected GPU adapter: "AMD Radeon Graphics (radeonsi, gfx1152, LLVM 19.1.7, DRM 3.64, 6.19.14-300.fc44.x86_64)" (Gl)
2026年05月01日T01:06:39-04:00 INFO [crashes] spawning crash handler process
2026年05月01日T01:06:39-04:00 INFO [extension_host] extensions updated. loading 2, reloading 0, unloading 0
2026年05月01日T01:06:39-04:00 INFO [gpui::platform::linux::platform] activate is not implemented on Linux, ignoring the call
2026年05月01日T01:06:39-04:00 INFO [theme::registry] Loading user theme from "/home/eaon/.local/share/gram/extensions/installed/lusch-theme/themes/lusch.json"
2026年05月01日T01:06:39-04:00 INFO [crashes] connected to crash handler process after 100ms
2026年05月01日T01:06:39-04:00 INFO [crashes] crash handler registered
2026年05月01日T01:06:39-04:00 ERROR [crashes] thread 'main' panicked at crates/gpui/src/platform/wgpu/wgpu_renderer.rs:169:44:
index out of bounds: the len is 0 but the index is 0...
2026年05月01日T01:06:39-04:00 ERROR [crashes] triggering a crash to generate a minidump...

I'm on Fedora 44. Weird: mesa-vulkan-drivers-freeworld from rpmfusion was installed, installed mesa-vulkan-drivers and it worked once, now the same crash is back for both driver packages.

Same issue, different hardware: ``` 2026年05月01日T01:06:39-04:00 INFO [gram] ========== starting gram version 1.2.1, sha 0b406ac ========== 2026年05月01日T01:06:39-04:00 INFO [gpui::platform::wgpu::wgpu_context] Selected GPU adapter: "AMD Radeon Graphics (radeonsi, gfx1152, LLVM 19.1.7, DRM 3.64, 6.19.14-300.fc44.x86_64)" (Gl) 2026年05月01日T01:06:39-04:00 INFO [crashes] spawning crash handler process 2026年05月01日T01:06:39-04:00 INFO [extension_host] extensions updated. loading 2, reloading 0, unloading 0 2026年05月01日T01:06:39-04:00 INFO [gpui::platform::linux::platform] activate is not implemented on Linux, ignoring the call 2026年05月01日T01:06:39-04:00 INFO [theme::registry] Loading user theme from "/home/eaon/.local/share/gram/extensions/installed/lusch-theme/themes/lusch.json" 2026年05月01日T01:06:39-04:00 INFO [crashes] connected to crash handler process after 100ms 2026年05月01日T01:06:39-04:00 INFO [crashes] crash handler registered 2026年05月01日T01:06:39-04:00 ERROR [crashes] thread 'main' panicked at crates/gpui/src/platform/wgpu/wgpu_renderer.rs:169:44: index out of bounds: the len is 0 but the index is 0... 2026年05月01日T01:06:39-04:00 ERROR [crashes] triggering a crash to generate a minidump... ``` I'm on Fedora 44. Weird: `mesa-vulkan-drivers-freeworld` from rpmfusion was installed, installed `mesa-vulkan-drivers` and it worked _once_, now the same crash is back for both driver packages.
Owner
Copy link

Hello,

I've decided to go through and close issues that I don't intend to fix. If it's a feature request for something that I haven't planned to do, then I would encourage you as the reader to fix it yourself! It's open source, I'm guessing most people who are using a code editor are coders, and it's good for you to learn new things. I've come to realize that I can't fix WGPU issues on a particular piece of hardware for example. Whoever has that problem will have to solve it so they can verify that the fix actually works.

If it's a packaging thing, like providing packages for a particular OS, Linux distro or architecture, then all I can say is that I have tried and there just isn't enough time in my life to support everything people want. What I have done is hook up this repo to a Github mirror with actions enabled: https://github.com/GramEditor/gram. My suggestion to anyone who needs or wants a particular build is to make a PR that adds build support that way.

Hello, I've decided to go through and close issues that I don't intend to fix. If it's a feature request for something that I haven't planned to do, then I would encourage you as the reader to fix it yourself! It's open source, I'm guessing most people who are using a code editor are coders, and it's good for you to learn new things. I've come to realize that I can't fix WGPU issues on a particular piece of hardware for example. Whoever has that problem will have to solve it so they can verify that the fix actually works. If it's a packaging thing, like providing packages for a particular OS, Linux distro or architecture, then all I can say is that I have tried and there just isn't enough time in my life to support everything people want. What I _have_ done is hook up this repo to a Github mirror with actions enabled: https://github.com/GramEditor/gram. My suggestion to anyone who needs or wants a particular build is to make a PR that adds build support that way.

I'm having this issue too (on 2.0.0) </3 same exact log as OP and my hardware doesn't support vulkan very well so this happens even with drivers installed

never had this issue with zed

I'm having this issue too (on 2.0.0) </3 same exact log as OP and my hardware doesn't support vulkan very well so this happens even with drivers installed never had this issue with zed
Sign in to join this conversation.
No Branch/Tag specified
main
test/wgpu-on-mac
test-ci/failing-test-mac
test/failing-test-mac
test/build-on-22-04
test/wgpu-present-mode-mailbox
v2.1
test/altgr-fix-again
test/2.0.0-rc1
test/linux-build
test/objc2
v1.2.1
3.0.1
3.0.0
2.2.0
2.1.2
2.1.1
2.1.0
2.0.0
1.2.1
1.2.0
1.1.0
1.0.0
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
5 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
GramEditor/gram#181
Reference in a new issue
GramEditor/gram
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?