Skip to content

Migrate from Tauri + React to gpui-kit - #30

Open
pavi2410 wants to merge 18 commits into
mainfrom
gpui-kit-migration
Open

pavi2410 wants to merge 18 commits into
mainfrom
gpui-kit-migration

Conversation

@pavi2410

@pavi2410 pavi2410 commented Nov 21, 2026 •

Copy link
Copy Markdown
Member

Summary

Replaces the Tauri webview shell and React/Vite frontend with a native GPUI app built on gpui-kit 0.10. No more bun/node toolchain. Also fixes USB mode, which never forwarded the Companion port.

App

  • Crate moved from src-tauri/ to the repo root (history preserved via renames)
  • src/ui.rs: gpui-kit UI with a Tag server-status pill, GroupBox + DescriptionList device card (serial, model, Android, SDK, Kodular Companion as versionName (versionCode)), and Link footer (Guide, Source Code, Logs). Re-reads the device snapshot every 500 ms and only re-renders on change; no USB on the UI thread
  • src/main.rs: axum server on its own tokio thread; closing the window quits the app
  • src/server.rs: port 8004 is bound up front; if another program holds it the app still opens and shows "Port 8004 is in use by another program". Server status comes from the server thread instead of a TCP probe (which reported "running" whenever anything answered on the port). Removed tauri/vite CORS origins
  • Removed the unused DeviceTransport (USB only) and serde (only used by the Tauri bridge)
  • Version bumped in Cargo.toml to 3.0.4 to match the previous tauri.conf.json

USB device owner + Companion port forward

  • src/device.rs: one thread owns the USB connection and keeps it open across polls, publishes a DeviceInfo snapshot, and runs commands. /ucheck and the UI read the snapshot and never open USB, so they can't contend for the interface
  • /replstart now forwards host tcp:8001 → device tcp:8001 (previously missing, so Creator couldn't reach the Companion over USB), then launches the Companion. adb_client relays a direct-USB forward only while the handle lives, which is why the owner keeps it open
  • Companion launch stays on the MAIN intent: Kodular Companion's Screen1 only declares MAIN, and Android 13+ rejects VIEW even for explicit intents (tried and reverted). am output containing Error is now reported as a failure instead of being ignored

Device polling performance

Measured on a Vivo V2025 (Android 13), median of 20 runs:

Before After
Device info (4× getprop + dumpsys) 419 ms (5 shell calls) 255 ms (1 fused call)
Steady-state poll 395 ms (reconnect + full info) ~150 ms (open connection; serial + Companion only)

Model / Android / SDK are fetched once per connection since they can't change while connected. On-device benchmark: cargo test --release bench_device_info -- --ignored --nocapture

Single instance

  • src/instance.rs: an exclusive OS file lock (independent of port 8004) picks the primary instance. A second launch asks the primary to raise its window over an ephemeral loopback socket, then exits

Logging

  • src/logging.rs: tracing throughout, with daily-rotated files (7 kept) plus stderr
    • macOS ~/Library/Logs/Kodular Starter/, Windows %LOCALAPPDATA%\Kodular Starter\logs\, Linux ~/.local/state/kodular-starter/logs/
  • Default level info (adb_client quietened), override with RUST_LOG; HTTP requests traced at DEBUG (RUST_LOG=info,tower_http=debug)
  • Logs startup (version, OS, arch), server start/stop, port conflicts, device connect/disconnect, Companion install/update/removal, Companion launches and port forwards, single-instance handoff, and panics (release builds abort on panic)
  • File output is plain text (no ANSI escapes, including span fields)

CI and packaging

  • New ci.yml on PRs and pushes to main: cargo fmt --check, cargo clippy --all-targets -- -D warnings, cargo test. Device-dependent tests are #[ignore]d so cargo test never touches a plugged-in phone
  • publish.yml: per-target cargo-packager builds (dmg / deb + AppImage / nsis) uploaded as artifacts, then a single job creates the draft release
  • macOS icon.icns redrawn on Apple's icon grid (rounded square with margin and shadow) instead of a full-bleed circle

Dependency upgrades

  • adb_client 3.2.1 → 4.0.0 (also brings direct-USB port forwarding)
  • tower-http 0.6.9 → 0.7.1

Testing

All on macOS (Apple Silicon) with a Vivo V2025 (Android 13) over USB.

  • Window renders; /ping and /ucheck respond; device card shows serial/model/Android/SDK and Companion 2026.05 (446)
  • /replstart: launches the Companion and opens 127.0.0.1:8001; GET localhost:8001/ returns 200 from the phone's Companion; forward persists across polls
  • Unplug / re-plug while running: disconnect detected on the next poll (no hang), forward torn down, phone re-detected ~3 s after re-plug, /replstart restores the forward
  • starter.kodular.io test page requests (/ping/, /utest/ with its Origin) return OK + CORS header
  • CORS: Origin: https://creator.kodular.io gets access-control-allow-origin back
  • Single instance: second launch exits and focuses the first; relaunch after quit works; with port 8004 held by another process the window shows the conflict
  • Logging: log file in the platform dir; startup, server start, device and Companion events, and second-launch handoff logged; RUST_LOG=tower_http=debug logs requests; no ANSI escapes in the file
  • cargo fmt --check, cargo clippy --all-targets -- -D warnings, cargo test clean locally
  • cargo build --release --target aarch64-apple-darwin + cargo packager → .app / Kodular Starter_3.0.4_aarch64.dmg with the new icon
  • Full Kodular Creator session over USB (verified the forward and launch directly instead)
  • Linux and Windows: ci.yml exercises the Linux build deps; publish.yml packaging (deb/AppImage, nsis) not run yet

🤖 Generated with Claude Code

pavi2410 and others added 18 commits November 21, 2026 19:24
Replace the Tauri webview shell and React/Vite frontend with a native
GPUI app built on gpui-kit 0.10. The crate moves from src-tauri/ to the
repo root.

- New gpui-kit UI (src/ui.rs) that polls server and USB device status
  every 3s off the UI thread
- axum server runs on its own tokio thread; a failed port bind no
  longer aborts the app
- Drop tauri/vite CORS origins
- CI packages with cargo-packager and publishes one draft release

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
No code changes needed. Verified USB device detection (/ucheck) and
CORS headers with a connected phone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An exclusive OS file lock (independent of port 8004) decides the primary
instance. A later launch asks the primary to raise its window over an
ephemeral loopback socket, then exits.

Port 8004 is now bound up front: if another program holds it, the app
still runs and shows "Port 8004 is in use by another program". Server
status comes from the server thread instead of a TCP probe, which
reported "running" whenever anything answered on the port.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The icns was the circular logo filling the whole canvas, so it looked
small and out of place in the Dock. Redraw it on Apple's icon grid: a
white rounded square (824px body, 100px margin, soft shadow) with the
purple k.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- tracing everywhere instead of println/eprintln; daily-rotated log files
  (7 kept) in the platform log dir, plus stderr
- Default level info with adb_client quietened; override with RUST_LOG
- Log startup info, server start/stop, device connect/disconnect,
  companion launches, single-instance handoff, and panics (release
  builds abort on panic)
- HTTP requests traced at DEBUG via tower-http TraceLayer
- "Logs" footer link opens the log folder

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fmt layers cache formatted span fields keyed by the field formatter type.
With stderr and file both on DefaultFields, the file reused stderr's
colored fields (e.g. tower_http request{method=...}). Give the file layer
its own formatter type so it formats plain fields.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Read versionName via dumpsys for io.makeroid.companion; show it in a
Companion row (or "Not installed") and include it in the device
connected log line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Only USB devices are supported, so the TCP variant was never built.
Serialize derives were for the Tauri IPC bridge, which is gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fuse the four getprop calls and the companion dumpsys into one shell
command. Each shell round trip costs ~70 ms over USB.

Measured on a Vivo V2025 (Android 13), median of 20 runs:
  separate (5 shell calls): 419 ms
  fused    (1 shell call):  255 ms  (-39%)

Adds parse tests and an ignored on-device benchmark
(cargo test --release bench_device_info -- --ignored --nocapture).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
/ucheck, start_companion and its test all looked up the USB device and
then its serial; share one helper and make get_device_serial private.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Model, Android and SDK versions can't change while a phone stays
connected. Fetch them on connect (or when the serial changes); later
polls run one shell call for the serial and companion version. Also log
companion installs/updates/removals.

Measured on a Vivo V2025 (Android 13), median of 20:
  shell only:      254 ms -> 150 ms
  full poll (incl. USB detect + auth): 395 ms -> 291 ms (-26%)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Runs on pushes to main and on pull requests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Matches the intent used by App Inventor's aiStarter for REPL launch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tested on Android 13 (Vivo V2025): Kodular Companion's Screen1 only has a
MAIN intent filter, and Android 13+ enforces intent-filter matching for
explicit intents, so VIEW fails with "Activity class ... does not
exist". MAIN launches it fine.

This reverts commit c66dc90.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A single device thread keeps the USB connection open, publishes a
DeviceInfo snapshot (tokio watch), and runs commands. /ucheck and the UI
read the snapshot and never open USB themselves, so callers no longer
contend for the interface.

Keeping the handle open is what makes /replstart's forward work:
adb_client relays a direct-USB forward only while the device handle
lives. /replstart now forwards host tcp:8001 -> device tcp:8001 so
Creator can reach the Companion over USB, then launches it (MAIN intent;
am output containing "Error" is now reported as a failure).

Verified on a Vivo V2025 (Android 13): /replstart opens 127.0.0.1:8001
and GET localhost:8001/ returns 200 from the phone's Companion; the
forward persists across polls. Steady-state poll ~150 ms (no reconnect).

Device-dependent tests are now #[ignore]d so `cargo test` never touches
a plugged-in phone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Unknown78

Unknown78 commented Dec 1, 2026 •

Copy link
Copy Markdown

@pavi2410

The GPU only supports D3D11 Feature Level up to 10_1 and OpenGL up to 3.1

I couldn't run it anymore on my system, GPUI has serious compatibility issues on older hardwares.
With Tauri, it uses WebView with its ANGLE that has Driver Bug Workarounds to address it.

Please at least consider to let end-user on legacy machine to configure before runtime to useother GPU libraries.

For example, eframe ( egui with egui_glow renderer) that supports down to OpenGL 2.0
Or perhaps Sciter,

Build Steps

GitHub Codespace

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source "$HOME/.cargo/env"

rustup target add x86_64-pc-windows-msvc

cargo install cargo-xwin
cargo xwin build --target x86_64-pc-windows-msvc

Download the starter.exe and starter.pdb

Run from Windows Terminal

set "RUST_LOG=trace"
set "RUST_BACKTRACE=full"
"starter.exe" > "starter.exe.log" 2>&1

Logs

`starter.exe.log` (click to expand/shrink)
�[2m2026-12-01T07:58:39.160086Z�[0m �[32m INFO�[0m �[2mstarter::logging�[0m�[2m:�[0m Kodular Starter starting �[3mversion�[0m�[2m=�[0m"3.0.4" �[3mos�[0m�[2m=�[0m"windows" �[3march�[0m�[2m=�[0m"x86_64" �[3mlog_dir�[0m�[2m=�[0mC:\Users\X\AppData\Local\Kodular Starter\logs
�[2m2026-12-01T07:58:39.171861Z�[0m �[32m INFO�[0m �[2mstarter::server�[0m�[2m:�[0m local server listening on port 8004
�[2m2026-12-01T07:58:39.174896Z�[0m �[32m INFO�[0m �[2mgpui_windows::direct_write�[0m�[2m:�[0m Use Segoe UI as UI font.
�[2m2026-12-01T07:58:39.245224Z�[0m �[34mDEBUG�[0m �[2madb_client::message_devices::usb::utils�[0m�[2m:�[0m Autodetect device 04e8:6860 - SAMSUNG SAMSUNG_Android
�[2m2026-12-01T07:58:39.303215Z�[0m �[34mDEBUG�[0m �[2mstarter::adb_commands�[0m�[2m:�[0m no USB device: USB Error: Operation not supported or unimplemented on this platform
�[2m2026-12-01T07:58:39.559544Z�[0m �[32m INFO�[0m �[2mgpui_windows::directx_devices�[0m�[2m:�[0m Using GPU: Intel(R) HD Graphics 3000
�[2m2026-12-01T07:58:39.572895Z�[0m �[31mERROR�[0m �[2m�[0m�[2m:�[0m Required feature StructuredBuffer is not supported by GPU/driver
�[2m2026-12-01T07:58:39.575546Z�[0m �[32m INFO�[0m �[2mgpui_windows::directx_devices�[0m�[2m:�[0m Using GPU: Microsoft Basic Render Driver
�[2m2026-12-01T07:58:39.581565Z�[0m �[32m INFO�[0m �[2mgpui_windows::directx_devices�[0m�[2m:�[0m Created device with Direct3D 11.1 feature level.
�[2m2026-12-01T07:58:41.885766Z�[0m �[31mERROR�[0m �[2mstarter::logging�[0m�[2m:�[0m panic: panicked at src/main.rs:78:10:
failed to open window: Creating DirectX renderer

Caused by:
    0: Creating DirectX render pipelines
    1: The system cannot find the path specified. (os error 3)

Stack backtrace:
   0: std::backtrace_rs::backtrace::win64::trace
             at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/std\src\..\..\backtrace\src\backtrace\win64.rs:85
   1: std::backtrace_rs::backtrace::trace_unsynchronized
             at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/std\src\..\..\backtrace\src\backtrace\mod.rs:66
   2: std::backtrace::Backtrace::create
             at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/std\src\backtrace.rs:331
   3: std::backtrace::Backtrace::capture
             at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/std\src\backtrace.rs:296
   4: anyhow::error::impl$1::from<core::io::error::Error>
             at /home/codespace/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.104/src/backtrace.rs:10
   5: core::result::impl$28::from_residual<windows::Win32::Graphics::Direct3D::ID3DBlob,core::io::error::Error,anyhow::Error>
             at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/core\src\result.rs:2190
   6: gpui_windows::directx_renderer::shader_resources::build_shader_blob
             at /home/codespace/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gpui-pre-windows-0.3.12/src/directx_renderer.rs:1819
   7: gpui_windows::directx_renderer::shader_resources::RawShaderBytes::new
             at /home/codespace/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gpui-pre-windows-0.3.12/src/directx_renderer.rs:1742
   8: gpui_windows::directx_renderer::PipelineState<gpui::scene::Shadow>::new<gpui::scene::Shadow>
             at /home/codespace/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gpui-pre-windows-0.3.12/src/directx_renderer.rs:1108
   9: gpui_windows::directx_renderer::DirectXRenderPipelines::new
             at /home/codespace/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gpui-pre-windows-0.3.12/src/directx_renderer.rs:944
  10: gpui_windows::directx_renderer::DirectXRenderer::new
             at /home/codespace/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gpui-pre-windows-0.3.12/src/directx_renderer.rs:171
  11: gpui_windows::window::WindowsWindowState::new
             at /home/codespace/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gpui-pre-windows-0.3.12/src/window.rs:146
  12: gpui_windows::window::WindowsWindowInner::new
             at /home/codespace/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gpui-pre-windows-0.3.12/src/window.rs:273
  13: gpui_windows::window::window_procedure
             at /home/codespace/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gpui-pre-windows-0.3.12/src/window.rs:1454
  14: CallWindowProcW
  15: GetFocus
  16: User32InitializeImmEntryTable
  17: KiUserCallbackDispatcher
  18: NtUserCreateWindowEx
  19: CreateWindowExW
  20: CreateWindowExW
  21: CreateWindowExW
  22: windows::Win32::UI::WindowsAndMessaging::CreateWindowExW<windows_strings::pcwstr::PCWSTR,ref$<windows_strings::hstring::HSTRING> >
             at /home/codespace/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/windows-0.62.2/src/Windows/Win32/UI/WindowsAndMessaging/mod.rs:436
  23: gpui_windows::window::WindowsWindow::new
             at /home/codespace/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gpui-pre-windows-0.3.12/src/window.rs:552
  24: gpui_windows::platform::impl$6::open_window
             at /home/codespace/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gpui-pre-windows-0.3.12/src/platform.rs:750
  25: gpui::window::Window::new
             at /home/codespace/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gpui-pre-0.3.12/src/window.rs:1677
  26: gpui::app::impl$14::open_window::closure$0<gpui_base::root::Root,gpui_kit::open_window::closure_env$0<starter::ui::StarterView,starter::main::closure$1::closure_env$1> >
             at /home/codespace/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gpui-pre-0.3.12/src/app.rs:1613
  27: gpui::app::App::update
             at /home/codespace/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gpui-pre-0.3.12/src/app.rs:1427
  28: gpui::app::App::open_window<gpui_base::root::Root,gpui_kit::open_window::closure_env$0<starter::ui::StarterView,starter::main::closure$1::closure_env$1> >
             at /home/codespace/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gpui-pre-0.3.12/src/app.rs:1610
  29: gpui_kit::open_window<starter::ui::StarterView,starter::main::closure$1::closure_env$1>
             at /home/codespace/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gpui-kit-0.10.0/src/lib.rs:187
  30: starter::main::closure$1
             at /workspaces/Starter/src/main.rs:66
  31: gpui::app::impl$7::run::closure$0<starter::main::closure_env$1>
             at /home/codespace/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gpui-pre-0.3.12/src/app.rs:324
  32: core::ops::function::FnOnce::call_once<gpui::app::impl$7::run::closure_env$0<starter::main::closure_env$1>,tuple$<> >
             at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/core\src\ops\function.rs:250
  33: alloc::boxed::impl$31::call_once<tuple$<>,dyn$<core::ops::function::FnOnce<tuple$<>,assoc$<Output,tuple$<> > > >,alloc::alloc::Global>
             at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/alloc\src\boxed.rs:2395
  34: gpui_windows::platform::impl$6::run
             at /home/codespace/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gpui-pre-windows-0.3.12/src/platform.rs:579
  35: gpui::app::Application::run<starter::main::closure_env$1>
             at /home/codespace/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gpui-pre-0.3.12/src/app.rs:318
  36: starter::main
             at /workspaces/Starter/src/main.rs:54
  37: core::ops::function::FnOnce::call_once<void (*)(),tuple$<> >
             at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/core\src\ops\function.rs:250
  38: std::sys::backtrace::__rust_begin_short_backtrace<void (*)(),tuple$<> >
             at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/std\src\sys\backtrace.rs:166
  39: std::rt::lang_start::closure$0<tuple$<> >
             at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/std\src\rt.rs:206
  40: std::rt::lang_start_internal::closure$0
             at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/std\src\rt.rs:175
  41: std::panicking::catch_unwind::do_call
             at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/std\src\panicking.rs:573
  42: std::panicking::catch_unwind
             at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/std\src\panicking.rs:541
  43: std::panic::catch_unwind
             at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/std\src\panic.rs:359
  44: std::rt::lang_start_internal
             at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/std\src\rt.rs:171
  45: std::rt::lang_start<tuple$<> >
             at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/std\src\rt.rs:205
  46: main
  47: invoke_main
             at D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:78
  48: __scrt_common_main_seh
             at D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288
  49: BaseThreadInitThunk
  50: RtlUserThreadStart

thread 'main' (1676) panicked at src/main.rs:78:10:
failed to open window: Creating DirectX renderer

Caused by:
    0: Creating DirectX render pipelines
    1: The system cannot find the path specified. (os error 3)

Stack backtrace:
   0: std::backtrace_rs::backtrace::win64::trace
             at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/std\src\..\..\backtrace\src\backtrace\win64.rs:85
   1: std::backtrace_rs::backtrace::trace_unsynchronized
             at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/std\src\..\..\backtrace\src\backtrace\mod.rs:66
   2: std::backtrace::Backtrace::create
             at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/std\src\backtrace.rs:331
   3: std::backtrace::Backtrace::capture
             at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/std\src\backtrace.rs:296
   4: anyhow::error::impl$1::from<core::io::error::Error>
             at /home/codespace/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.104/src/backtrace.rs:10
   5: core::result::impl$28::from_residual<windows::Win32::Graphics::Direct3D::ID3DBlob,core::io::error::Error,anyhow::Error>
             at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/core\src\result.rs:2190
   6: gpui_windows::directx_renderer::shader_resources::build_shader_blob
             at /home/codespace/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gpui-pre-windows-0.3.12/src/directx_renderer.rs:1819
   7: gpui_windows::directx_renderer::shader_resources::RawShaderBytes::new
             at /home/codespace/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gpui-pre-windows-0.3.12/src/directx_renderer.rs:1742
   8: gpui_windows::directx_renderer::PipelineState<gpui::scene::Shadow>::new<gpui::scene::Shadow>
             at /home/codespace/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gpui-pre-windows-0.3.12/src/directx_renderer.rs:1108
   9: gpui_windows::directx_renderer::DirectXRenderPipelines::new
             at /home/codespace/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gpui-pre-windows-0.3.12/src/directx_renderer.rs:944
  10: gpui_windows::directx_renderer::DirectXRenderer::new
             at /home/codespace/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gpui-pre-windows-0.3.12/src/directx_renderer.rs:171
  11: gpui_windows::window::WindowsWindowState::new
             at /home/codespace/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gpui-pre-windows-0.3.12/src/window.rs:146
  12: gpui_windows::window::WindowsWindowInner::new
             at /home/codespace/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gpui-pre-windows-0.3.12/src/window.rs:273
  13: gpui_windows::window::window_procedure
             at /home/codespace/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gpui-pre-windows-0.3.12/src/window.rs:1454
  14: CallWindowProcW
  15: GetFocus
  16: User32InitializeImmEntryTable
  17: KiUserCallbackDispatcher
  18: NtUserCreateWindowEx
  19: CreateWindowExW
  20: CreateWindowExW
  21: CreateWindowExW
  22: windows::Win32::UI::WindowsAndMessaging::CreateWindowExW<windows_strings::pcwstr::PCWSTR,ref$<windows_strings::hstring::HSTRING> >
             at /home/codespace/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/windows-0.62.2/src/Windows/Win32/UI/WindowsAndMessaging/mod.rs:436
  23: gpui_windows::window::WindowsWindow::new
             at /home/codespace/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gpui-pre-windows-0.3.12/src/window.rs:552
  24: gpui_windows::platform::impl$6::open_window
             at /home/codespace/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gpui-pre-windows-0.3.12/src/platform.rs:750
  25: gpui::window::Window::new
             at /home/codespace/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gpui-pre-0.3.12/src/window.rs:1677
  26: gpui::app::impl$14::open_window::closure$0<gpui_base::root::Root,gpui_kit::open_window::closure_env$0<starter::ui::StarterView,starter::main::closure$1::closure_env$1> >
             at /home/codespace/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gpui-pre-0.3.12/src/app.rs:1613
  27: gpui::app::App::update
             at /home/codespace/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gpui-pre-0.3.12/src/app.rs:1427
  28: gpui::app::App::open_window<gpui_base::root::Root,gpui_kit::open_window::closure_env$0<starter::ui::StarterView,starter::main::closure$1::closure_env$1> >
             at /home/codespace/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gpui-pre-0.3.12/src/app.rs:1610
  29: gpui_kit::open_window<starter::ui::StarterView,starter::main::closure$1::closure_env$1>
             at /home/codespace/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gpui-kit-0.10.0/src/lib.rs:187
  30: starter::main::closure$1
             at /workspaces/Starter/src/main.rs:66
  31: gpui::app::impl$7::run::closure$0<starter::main::closure_env$1>
             at /home/codespace/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gpui-pre-0.3.12/src/app.rs:324
  32: core::ops::function::FnOnce::call_once<gpui::app::impl$7::run::closure_env$0<starter::main::closure_env$1>,tuple$<> >
             at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/core\src\ops\function.rs:250
  33: alloc::boxed::impl$31::call_once<tuple$<>,dyn$<core::ops::function::FnOnce<tuple$<>,assoc$<Output,tuple$<> > > >,alloc::alloc::Global>
             at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/alloc\src\boxed.rs:2395
  34: gpui_windows::platform::impl$6::run
             at /home/codespace/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gpui-pre-windows-0.3.12/src/platform.rs:579
  35: gpui::app::Application::run<starter::main::closure_env$1>
             at /home/codespace/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gpui-pre-0.3.12/src/app.rs:318
  36: starter::main
             at /workspaces/Starter/src/main.rs:54
  37: core::ops::function::FnOnce::call_once<void (*)(),tuple$<> >
             at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/core\src\ops\function.rs:250
  38: std::sys::backtrace::__rust_begin_short_backtrace<void (*)(),tuple$<> >
             at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/std\src\sys\backtrace.rs:166
  39: std::rt::lang_start::closure$0<tuple$<> >
             at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/std\src\rt.rs:206
  40: std::rt::lang_start_internal::closure$0
             at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/std\src\rt.rs:175
  41: std::panicking::catch_unwind::do_call
             at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/std\src\panicking.rs:573
  42: std::panicking::catch_unwind
             at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/std\src\panicking.rs:541
  43: std::panic::catch_unwind
             at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/std\src\panic.rs:359
  44: std::rt::lang_start_internal
             at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/std\src\rt.rs:171
  45: std::rt::lang_start<tuple$<> >
             at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/std\src\rt.rs:205
  46: main
  47: invoke_main
             at D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:78
  48: __scrt_common_main_seh
             at D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288
  49: BaseThreadInitThunk
  50: RtlUserThreadStart
stack backtrace:
   0:     0x7ff74abf9489 - std::backtrace_rs::backtrace::win64::trace
                               at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/std\src\..\..\backtrace\src\backtrace\win64.rs:85
   1:     0x7ff74abf9489 - std::backtrace_rs::backtrace::trace_unsynchronized
                               at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/std\src\..\..\backtrace\src\backtrace\mod.rs:66
   2:     0x7ff74abf9489 - std::sys::backtrace::_print_fmt
                               at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/std\src\sys\backtrace.rs:74
   3:     0x7ff74abf9489 - std::sys::backtrace::impl$0::print::impl$0::fmt
                               at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/std\src\sys\backtrace.rs:44
   4:     0x7ff74ac0815e - core::fmt::write
                               at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/core\src\fmt\mod.rs:0
   5:     0x7ff74abfe414 - core::io::write::default_write_fmt
                               at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/core\src\io\write.rs:402
   6:     0x7ff74abfe414 - core::io::write::Write::write_fmt<std::sys::stdio::windows::Stderr>
                               at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/core\src\io\write.rs:335
   7:     0x7ff74abdc955 - std::sys::backtrace::BacktraceLock::print
                               at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/std\src\sys\backtrace.rs:47
   8:     0x7ff74abdc955 - std::panicking::default_hook::closure$0
                               at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/std\src\panicking.rs:289
   9:     0x7ff74abef760 - std::panicking::default_hook
                               at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/std\src\panicking.rs:316
  10:     0x7ff74982fba3 - alloc::boxed::impl$33::call<tuple$<ref$<std::panic::PanicHookInfo> >,dyn$<core::ops::function::Fn<tuple$<ref$<std::panic::PanicHookInfo> >,assoc$<Output,tuple$<> > >,core::marker::Send,core::marker::Sync>,alloc::alloc::Global>
                               at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/alloc\src\boxed.rs:2409
  11:     0x7ff7498476ae - starter::logging::init::closure$3
                               at /workspaces/Starter/src/logging.rs:69
  12:     0x7ff74abefb94 - std::panicking::panic_with_hook
                               at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/std\src\panicking.rs:819
  13:     0x7ff74abdca2e - std::panicking::panic_handler::closure$0
                               at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/std\src\panicking.rs:685
  14:     0x7ff74abda13f - std::sys::backtrace::__rust_end_short_backtrace<std::panicking::panic_handler::closure_env$0,never$>
                               at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/std\src\sys\backtrace.rs:182
  15:     0x7ff74abdd38e - std::panicking::panic_handler
                               at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/std\src\panicking.rs:676
  16:     0x7ff74c3a376d - core::panicking::panic_fmt
                               at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/core\src\panicking.rs:80
  17:     0x7ff74c3a3467 - core::result::unwrap_failed
                               at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/core\src\result.rs:1870
  18:     0x7ff749833581 - enum2$<core::result::Result<tuple$<gpui::window::AnyWindowHandle,gpui::app::entity_map::Entity<starter::ui::StarterView> >,anyhow::Error> >::expect<tuple$<gpui::window::AnyWindowHandle,gpui::app::entity_map::Entity<starter::ui::StarterView> >,anyhow::Error
                               at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/core\src\result.rs:1184
  19:     0x7ff74983ba11 - starter::main::closure$1
                               at /workspaces/Starter/src/main.rs:78
  20:     0x7ff7498735e2 - gpui::app::impl$7::run::closure$0<starter::main::closure_env$1>
                               at /home/codespace/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gpui-pre-0.3.12/src/app.rs:324
  21:     0x7ff74985bdde - core::ops::function::FnOnce::call_once<gpui::app::impl$7::run::closure_env$0<starter::main::closure_env$1>,tuple$<> >
                               at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/core\src\ops\function.rs:250
  22:     0x7ff74a5025c0 - alloc::boxed::impl$31::call_once<tuple$<>,dyn$<core::ops::function::FnOnce<tuple$<>,assoc$<Output,tuple$<> > > >,alloc::alloc::Global>
                               at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/alloc\src\boxed.rs:2395
  23:     0x7ff74b62da86 - gpui_windows::platform::impl$6::run
                               at /home/codespace/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gpui-pre-windows-0.3.12/src/platform.rs:579
  24:     0x7ff749872dcd - gpui::app::Application::run<starter::main::closure_env$1>
                               at /home/codespace/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gpui-pre-0.3.12/src/app.rs:318
  25:     0x7ff74983f268 - starter::main
                               at /workspaces/Starter/src/main.rs:54
  26:     0x7ff74985f5ab - core::ops::function::FnOnce::call_once<void (*)(),tuple$<> >
                               at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/core\src\ops\function.rs:250
  27:     0x7ff74988c82e - std::sys::backtrace::__rust_begin_short_backtrace<void (*)(),tuple$<> >
                               at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/std\src\sys\backtrace.rs:166
  28:     0x7ff7498a06b1 - std::rt::lang_start::closure$0<tuple$<> >
                               at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/std\src\rt.rs:206
  29:     0x7ff74abee6d7 - std::rt::lang_start_internal::closure$0
                               at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/std\src\rt.rs:175
  30:     0x7ff74abee6d7 - std::panicking::catch_unwind::do_call
                               at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/std\src\panicking.rs:573
  31:     0x7ff74abee6d7 - std::panicking::catch_unwind
                               at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/std\src\panicking.rs:541
  32:     0x7ff74abee6d7 - std::panic::catch_unwind
                               at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/std\src\panic.rs:359
  33:     0x7ff74abee6d7 - std::rt::lang_start_internal
                               at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/std\src\rt.rs:171
  34:     0x7ff7498a063a - std::rt::lang_start<tuple$<> >
                               at /rustc/20ddd01716a87c0fcf06ae4752d85a4abc15bcdf/library/std\src\rt.rs:205
  35:     0x7ff74983f479 - main
  36:     0x7ff74c3a15e0 - invoke_main
                               at D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:78
  37:     0x7ff74c3a15e0 - __scrt_common_main_seh
                               at D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288
  38:     0x7ff92394dda7 - BaseThreadInitThunk
  39:     0x7ff923f7ee4c - RtlUserThreadStart

P.S. I'm also the main complainer behind the lack of GPUI support on older hardwares.
zed-industries/zed#34374
zed-industries/zed#29201
zed-industries/zed@1749945

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

2 participants