neomacs
neomacs copied to clipboard
[Bug]: crash when run in virtualbox guest win11
Bug summary
在VirtualBox的一个Win11虚拟机上运行neomacs,双击闪一下就不见了。 看了一下Log,可能是3D加速支持相关的问题。
Steps to reproduce
No response
Expected behavior
No response
Neomacs --version output
Neomacs 0.0.20
Git commit: 47fa15cc69ae8f8da1ca3fac25e0beb700e8c118
Source date: 2026-10-24T15:13:18.000000000-04:00
Build: release for x86_64-pc-windows-msvc with rustc 1.96.1
Standalone Rust binary for Neomacs (no C dependency)
Platform
Windows
Install source
Prebuilt release asset (downloaded from Releases)
Extra context
neomacs.exe -Q
2026-10-31T08:07:45.009486Z INFO neomacs: neomacs 0.0.20 starting (pure Rust, backend=rust, pid=2252, mode=FinalRun, image=Some(Final))
2026-10-31T08:07:45.010235Z INFO neomacs: Startup frontend: Gui
2026-10-31T08:07:45.016230Z INFO neomacs: resolved GUI frame font scale observation=Windows source=PlatformLogical logical_dpi=96.0
2026-10-31T08:07:45.016837Z INFO neomacs: GUI event loop entering on OS main thread while evaluator prepares
2026-10-31T08:07:45.017058Z INFO neomacs_display_runtime::render_thread::bootstrap: Render thread starting
2026-10-31T08:07:45.017242Z INFO neomacs_display_runtime::render_thread::bootstrap: Render thread entering winit event loop
2026-10-31T08:07:45.018407Z INFO neovm_core::emacs_core::load: pdump: runtime image \\?\C:\Users\dark\AppData\Local\Programs\NEO Emacs\bin\neomacs.pdump not found, trying next candidate
2026-10-31T08:07:45.018674Z INFO neovm_core::emacs_core::load: pdump: runtime image \\?\C:\Users\dark\AppData\Local\Programs\NEO Emacs\bin\neomacs-2095B388C44EF67C34F0A61B395D18B6EC74478A00EA4E4899D53003945468BA.pdump not found, trying next candidate
2026-10-31T08:07:45.018903Z INFO neovm_core::emacs_core::load: pdump: runtime image \\?\C:\Users\dark\AppData\Local\Programs\NEO Emacs\libexec\neomacs\0.0.20\x86_64-pc-windows-msvc\neomacs-2095B388C44EF67C34F0A61B395D18B6EC74478A00EA4E4899D53003945468BA.pdump not found, trying next candidate
2026-10-31T08:07:45.071667Z INFO neomacs: Loading Neomacs GUI terminal layer: term/common-win
2026-10-31T08:07:45.072042Z INFO neovm_core::emacs_core::load: load \\?\C:\Users\dark\AppData\Local\Programs\NEO Emacs\share\neomacs\lisp\term\common-win.elc
2026-10-31T08:07:45.073828Z INFO neomacs: Loading Neomacs GUI terminal layer: term/neo-win
2026-10-31T08:07:45.074098Z INFO neovm_core::emacs_core::load: load \\?\C:\Users\dark\AppData\Local\Programs\NEO Emacs\share\neomacs\lisp\term\neo-win.elc
2026-10-31T08:07:45.212629Z INFO neomacs: GUI evaluator context initialized
2026-10-31T08:07:45.215001Z INFO neomacs_layout_engine::font::metrics: FontMetricsService: initializing cosmic-text FontSystem
2026-10-31T08:07:45.233651Z INFO neomacs_layout_engine::font::metrics: FontMetricsService: FontSystem ready
2026-10-31T08:07:45.237825Z INFO neomacs: Created frame FrameId(4294967296) (664x574) with *scratch*=BufferId(1)
2026-10-31T08:07:45.240040Z INFO neomacs_display_runtime::render_thread::lifecycle: Render thread resumed: primary_window_exists=false size=664x574 title="Neomacs"
2026-10-31T08:07:45.240349Z INFO neomacs_display_runtime::render_thread::lifecycle: Render thread creating primary window: emacs_pixels=664x574 title="Neomacs"
2026-10-31T08:07:45.262136Z INFO neovm::jit::knobs: NEOVM_JIT_BG resolves to sync in this process
2026-10-31T08:07:45.345247Z INFO neomacs_display_runtime::clipboard: Clipboard service using the arboard platform backend
2026-10-31T08:07:45.345610Z INFO neomacs_display_runtime::render_thread::lifecycle: Display scale factor: raw=1 effective=1
2026-10-31T08:07:45.345813Z INFO neomacs_display_runtime::render_thread::lifecycle: Render thread: window created (physical 664x574)
2026-10-31T08:07:45.348579Z INFO neomacs_display_runtime::render_thread::lifecycle: Monitor: Some("\\\\.\\DISPLAY1") pos=(0,0) size=1490x977 scale=1 mm=394x258
2026-10-31T08:07:45.348882Z INFO neomacs_display_runtime::render_thread::lifecycle: Render thread entered about_to_wait: primary_window_exists=false frame_windows=1
2026-10-31T08:07:45.349047Z INFO neomacs_layout_engine::font::metrics: FontMetricsService: initializing cosmic-text FontSystem
2026-10-31T08:07:45.376740Z INFO neomacs_layout_engine::font::metrics: FontMetricsService: FontSystem ready
2026-10-31T08:07:45.377005Z INFO neomacs_layout_engine::font::metrics: FontMetricsService: initializing cosmic-text FontSystem
2026-10-31T08:07:45.411266Z INFO neomacs_layout_engine::font::metrics: FontMetricsService: FontSystem ready
2026-10-31T08:07:45.411668Z INFO neomacs_layout_engine::font::metrics: FontMetricsService: initializing cosmic-text FontSystem
Mesa: SVGA3D; build: RELEASE;
Mesa: 24.0.2
2026-10-31T08:07:45.441203Z INFO neomacs_layout_engine::font::metrics: FontMetricsService: FontSystem ready
2026-10-31T08:07:45.502580Z INFO neomacs_display_runtime::render_thread::lifecycle: Event loop exiting, cleaning up GPU resources
2026-10-31T08:07:45.503011Z INFO neomacs_display_runtime::render_thread::lifecycle: GPU resources cleaned up
2026-10-31T08:07:45.504248Z ERROR neomacs_display_runtime::render_thread::bootstrap: Event loop error: StartupInterrupted("failed to create renderer device: Limit 'max_compute_workgroups_per_dimension' value 65535 is better than allowed 0")
2026-10-31T08:07:45.504431Z INFO neomacs_display_runtime::render_thread::bootstrap: Render thread exiting, sending WindowClose to Emacs
2026-10-31T08:07:45.504611Z ERROR neomacs: GUI event loop exited with error: native event loop closed during GUI preparation: failed to create renderer device: Limit 'max_compute_workgroups_per_dimension' value 65535 is better than allowed 0
neomacs: native event loop closed during GUI preparation: failed to create renderer device: Limit 'max_compute_workgroups_per_dimension' value 65535 is better than allowed 0
另外建议大佬在issue模板里分别提示一下windows下设置环境变量的方法(我按你论坛里说的bash的设置方式不好使),我是这样设的:
powershell:
$env:RUST_LOG="DEBUG"; $env:NEOMACS_LOG_FILE="neomacs_debug.log"; .\neomacs.exe -Q
cmd:
set RUST_LOG=DEBUG& set NEOMACS_LOG_FILE=neomacs_debug.log& neomacs.exe -Q
Fixed by https://github.com/eval-exec/neomacs/pull/651 , will release v0.0.21