OrcaSlicer icon indicating copy to clipboard operation
OrcaSlicer copied to clipboard

macOS: Home page does not render in main, regression in 77b4d0e6..dcf8629e (suspect #818)

Open KuzuriAo opened this issue 2 months ago • 11 comments

Summary

On macOS, the Home page does not render in current main. Depending on the build it is either blank white or blank gray, and the Login/Register UI never appears, so there is no way to sign in from a fresh profile.

This is reproducible with your own CI artifacts, with no local build involved.

Bisected

All of these are official Build all artifacts, Snapmaker_Orca_Mac_universal, installed clean:

Date Branch Commit Version flutter_web Result
Aug 28 feature_model_management_2_3_6 d6acc80 2.3.6 2.3.32 Home renders
Sep 2 main 77b4d0e6 2.3.6 2.3.27 Home renders
Sep 6 main dcf8629e 2.4.0 2.3.27 blank white
Sep 9 main ded5297b 2.4.0 2.3.36 blank gray

The Sep 2 and Sep 6 builds ship the same flutter_web (2.3.27) with opposite results, so this is not the web bundle. It is native.

Regression window is 77b4d0e6..dcf8629e, six commits:

dcf8629e6  Bugfix update macos version (#822)
83e28e190  Bump version to 2.4.0 (#821)
8aca1e04f  chore: sync flutter_web resources to 2.3.27+20260902203439 (#820)
548b20995  Upgrade OpenSSL to 3.5.7 LTS, paho-mqtt-c, paho-mqtt-cpp (#812)
0f15333f0  feat(http): cache negotiation (ETag/304) + Connection: close for local web server (#818)
2d1554e66  Feat snaplog (#814)

Prime suspect: #818

feat(http): cache negotiation (ETag/304) + Connection: close for local web server is the only commit in that window that touches how the Flutter page is served. A 304 returned when the webview holds no cached copy yields an empty body and a blank page, and the Connection: close change affects the same request path.

The other five are a version bump, a web resource sync, a dependency upgrade, a macOS version fix, and a logging feature. None touch page serving.

Two distinct failure modes

Sep 6 (dcf8629e) - web layer alive, page blank. The Dart app boots and runs: 195 [WCP] log lines, 26 Handling file request entries. It simply renders nothing.

Sep 9 (ded5297) - web layer never starts. Zero [WCP] lines and zero Handling file request lines, so the webview never even fetches the page. The process sits at 0% CPU, and about 60 seconds in the log shows:

[fatal] OnError: ... wxWEBVIEW_NAV_ERR_CONNECTION  The request timed out.

The gray-to-white transition users see at the one minute mark is that navigation timeout, not a render.

Ruled out, with evidence

  • flutter_web version. 2.3.27 renders on Sep 2 and is blank on Sep 6. Also tested 2.3.32, 2.3.35, 2.3.36.
  • The local HTTP server itself. It starts on 13619 and health checks pass. With the app running I fetched every asset directly and all returned 200: index.html (1554 B), flutter_bootstrap.*.js (26 KB), main.*.js (5.7 MB), canvaskit.wasm (7.1 MB), AssetManifest.bin.json. So the server serves correctly while the webview does not consume it.
  • Service workers and cached web state. Cleared ~/Library/WebKit/com.snapmaker.snapmaker-orca entirely. No change.
  • Code signing and entitlements. Reproduces on your own properly signed CI builds with allow-jit present.
  • Login state. Reproduces while logged out and the working Sep 2 build renders fine while logged out (id=null, nickname=null). Not an authentication empty state. Worth noting this is also a lockout: the Login/Register control lives on the Home page, so a user on an affected build cannot sign in at all.
  • External CDN. cdn.jsdelivr.net (posthog) resolves in under 100 ms.

Environment

macOS 26.6.2 (25G83), Apple Silicon. All builds installed to /Applications with the datadir copy of web/flutter_web removed first, so each build's own web resources are used rather than a stale override.

Note on the datadir override

Separately, and possibly worth documenting: the copy of flutter_web in Help > Show Configuration Folder > web overrides the one inside the app bundle, and uninstalling the app does not remove it. A user who installs a new build over an old profile keeps the old web layer. This is why "uninstall and reinstall" does not resolve web-layer problems on its own, and may explain some inconsistent reports.

KuzuriAo avatar Sep 11 '26 03:09 KuzuriAo

Hello, thank you very much for your feedback. We’ve been trying to reproduce this issue, but it has always worked normally in our 26.6.2 environment. Is there a way on your end that reliably reproduces the problem?

LuckZAE avatar Sep 14 '26 12:09 LuckZAE

@Kuzuri thanks again for the deep dive — the bisect table saved us days. Following up on @LuckZAE's message: we still can't reproduce the blank page naturally on our macOS 26.6.2 machines, but we've narrowed the possibilities down to three failure paths, each with a distinct signature. With a little more information from your side we can tell which one you're on.

Two things changed in main since your report: #857 ("Bugfix load web") now defers the webview navigation until the script-message handler is installed, and the bundle is now flutter_web 2.3.37, which shows its own "Load failed … Diag{…}" page instead of failing silently.

If you have a moment to test the newest Build all artifact, these are the things that would help us most (any subset is useful):

  1. Does it render now? If not — a screenshot of whatever it shows (2.3.37 prints its own diagnostics), the [WCP] line count in the log, and whether OnError … The request timed out appears again.
  2. Your exact repro ritual before each test — do you delete the datadir web/flutter_web and clear ~/Library/WebKit/com.snapmaker.snapmaker-orca? Anything else (VPN, network switch, firewall prompts)?
  3. Network setup — scutil --proxy output, and any VPN/security software running (Little Snitch, ZScaler, Cisco, Clash/Surge…).
  4. Network state — curl -m 10 -o /dev/null -w '%{http_code} %{time_connect} %{time_total}\n' https://cdn.jsdelivr.net/npm/posthog-js@1/dist/array.js. The page loads this script render-blocking before Flutter starts, so we care about TCP connect time, not just DNS resolution.
  5. The full log file from one failing run (not an excerpt) — especially [WCP], OnError, HTTP server started successfully on port, and use new port for start server lines.
  6. One experiment — reboot the Mac and retest once without clearing anything. Does it recover?

@rp86 we'd be just as glad to get the same details from you, if you have a moment — your log shows the identical signature, and seeing the two environments side by side will narrow this down fast.

No rush on any of this, and thanks again — once we know which path you're hitting, we have fixes lined up for each.

zhangzhend0ng avatar Sep 14 '26 17:09 zhangzhend0ng

@zhangzhend0ng @LuckZAE thanks for #857 and the checklist, and sorry this took a while to get back to you. Partway through your list I got a hunch it might be the SDK the app is built with, so I stopped and ran some extra tests to make sure I was giving you something conclusive rather than another guess. I think it was worth the wait: on my machine, what decides this is the macOS SDK the app is linked against.

The SDK decides it

I read LC_BUILD_VERSION from the official Build all DMGs in my original bisect:

Build Runner Linked SDK WebKit linked Home on my Mac
Aug 28 d6acc80 macos-14 14.5 618 renders
Sep 2 77b4d0e6 macos-14 14.5 618 renders
Sep 6 dcf8629e macos-26 26.5 624 blank white
Sep 9 ded5297b macos-15 15.5 621 blank gray

So my bisect window was right, but my suspect was wrong. It is not #818. It is #822, which moved the macOS runner from macos-14 to macos-26. #837 then moved it to macos-15, which is still newer than 14.5.

To rule out everything else, I took one binary and changed only the SDK version recorded in its header, then re-signed it the same way each time, with the entitlements from your signed build.

These are the exact commands for one of your universal artifacts, run on a copy of the app. Change 14.5 to 15.5 or 26.5 for the other direction. The 11.0 and 10.15 keep each architecture's original minimum OS.

APP="Snapmaker Orca.app"
BIN="$APP/Contents/MacOS/Snapmaker_Orca"
codesign -d --entitlements - --xml "$APP" > entitlements.plist
lipo "$BIN" -thin arm64 -output arm64
lipo "$BIN" -thin x86_64 -output x86_64
xcrun vtool -set-build-version macos 11.0 14.5 -replace -output arm64.patched arm64
xcrun vtool -set-build-version macos 10.15 14.5 -replace -output x86_64.patched x86_64
lipo -create arm64.patched x86_64.patched -output "$BIN"
codesign --force --sign - --entitlements entitlements.plist --options runtime "$BIN"
codesign --force --sign - --entitlements entitlements.plist --options runtime "$APP"
otool -l "$BIN" | grep -A4 LC_BUILD_VERSION

vtool warns that the code signature will be invalid; that is expected, and the two codesign lines fix it. My local build is arm64 only, so for it the lipo steps were skipped and it was a single vtool -set-build-version macos 12.0 <sdk>.

Same binary, SDK field set to [WCP] lines File requests Home
26.5 (as built) 0 0 blank, OnError ... The request timed out at 60 s
15.5 0 0 blank, OnError ... The request timed out at 61 s
14.5 292 49 renders

Same code, same web bundle (2.3.32), same datadir and config, a few minutes apart. The binary was a local build of d6acc80 with the WebView.cpp part of #857 applied, so #857 alone does not change the outcome here.

WebKit enables some behavior based on the SDK an app was linked against, which would explain why a header field changes anything. I have not identified which behavior it is.

Signing is ruled out too. Your signed d6acc80 build, re-signed ad hoc with the same entitlements, still renders.

Why you may not see it

The macos-15 builds, like the Sep 9 one, are linked against SDK 15.5, and you report current builds work on your 26.6.2 machines, so something about my environment must also be involved. But the SDK is the switch that turns it on and off here. If it helps you reproduce, try the reverse experiment on a machine that works: take the Sep 2 build, set the SDK field to 15.5 or 26.5 with the commands above, re-sign, and launch.

Newest build (5970fea62d, run 34878329366)

Your signed Snapmaker_Orca_Mac_universal_V2.4.0 artifact, linked against SDK 15.5, with #857 and flutter_web 2.3.37:

Build [WCP] lines File requests Home
As shipped, SDK 15.5 0 0 blank white, OnError ... The request timed out at 61 s
Same artifact, only the SDK field set to 14.5 336 50 renders, no errors

So your current build, with #857 and 2.3.37, renders on my Mac as soon as the SDK field says 14.5. As shipped, 2.3.37 did not get a chance to show its "Load failed … Diag{…}" page, because the web view never requested anything from the local server, so no page loaded at all. I quit at about 115 s, so the two-minute #857 WCP watch had not fired yet.

Your other questions

2. Repro ritual. Quit the app, delete the datadir web/flutter_web, log_severity_level set to debug. I cleared ~/Library/WebKit/com.snapmaker.snapmaker-orca once and restored it afterwards. For the tests above, flutter_upgrade_url pointed at an unreachable address so the web bundle stayed at the version each app ships with (2.3.32 for the local build, 2.3.37 for the newest artifact). On launch, sync_web_async otherwise replaces the datadir copy, and copy_bundled_flutter_web re-copies the bundle's version whenever the version.json files differ. A user cannot pin the datadir copy on their own, which made several of my earlier "try web version X" results unreliable.

3. Network setup. scutil --proxy with no VPN:

<dictionary> {
  ExceptionsList : <array> {
    0 : *.local
    1 : 169.254/16
  }
  FTPPassive : 1
}

NordVPN is installed and I tested both connected and disconnected (Threat Protection, custom DNS and Meshnet off). A WireGuard profile exists but is disconnected. Cisco AnyConnect is installed but not running. No system extensions are loaded. All of the SDK runs above were on the same network, a few minutes apart.

4. Network state. Home network, no VPN:

200 0.024063 0.087239
200 0.021250 0.113404
200 0.013853 0.080789

5. Full log. Happy to send one, but not publicly. At debug level a logged-in run writes the account's access token (a 24-hour JWT) into the log in plain text many times, along with the user ID, nickname and avatar URL. That also applies to logs other users attach to issues, and it may be worth not logging the token at all. Let me know an email or private upload, or I can post a copy with those removed.

6. Reboot. I have not tried it yet. Given the A/B results above, I would not expect a reboot to change the outcome, but I am happy to try it on the newest build if that data point would still help.

KuzuriAo avatar Sep 14 '26 21:09 KuzuriAo

Small correction to item 2 above: copy_web_resources does not re-copy the bundled flutter_web whenever the version.json files differ. It copies only when the datadir copy is missing, or when the bundled build_number is greater than the datadir one. So once a newer web bundle lands in the datadir, an app that ships an older one keeps using the newer copy until that folder is deleted.

KuzuriAo avatar Sep 14 '26 21:09 KuzuriAo

A Snapmaker engineer sent me a validation build to test, a macOS universal build of commit 903bf46, "fix(mac): stabilize local device WebView loads and printer page switching", which I see landed on main today as 58474908a. Happy to pass along the download link if it is useful to anyone here, since it came to me privately rather than from this thread.

Home renders. 344 [WCP] lines, 46 file requests, no OnError, first file request in the same second the web views came up.

That is on the same Mac where your 5970fea62d artifact, linked against the same SDK 15.5, shows a blank page with zero requests and the 60 second timeout. I re-ran that one as a control 25 minutes after the new build, same machine, same macOS 26.6.2 (25G83), same datadir: still 0 [WCP], 0 file requests, OnError ... The request timed out at 60 s.

One thing worth confirming: Home renders without the model search bar. I believe that is only the web layer, since this build ships 2.3.37 from main rather than the 2.3.32 that has the search bar, and not related to this fix. Flagging it in case that is not intentional.

So the SDK was the trigger, not the whole story, and the ATS and local network declarations in 903bf46 look like the real answer. That fits everything I saw: App Transport Security enforcement keys on the SDK an app is linked against, so the 14.5 builds were never subject to it, and the 15.5 and 26.5 builds were, with nothing in the bundle declaring plain HTTP to 127.0.0.1. The web view's requests never reached the local server, which is exactly the "zero file requests, then wxWEBVIEW_NAV_ERR_CONNECTION" signature.

Rewriting the SDK field on a binary flips that enforcement, which is why that A/B was so clean, but the fix is the one you made, not an SDK downgrade.

Two things in that commit are worth calling out for anyone reading this issue later:

  • The If-None-Match: * change in HttpServer.cpp. A 304 with an empty body and no usable cache entry leaves a blank shell. That is the ETag path from #818, which I suspected at the start of this issue and then ruled out when the SDK evidence came in. It looks like it was a real contributor to the Sep 6 failure mode, where the web layer started (195 [WCP] lines) but rendered nothing, which never matched the "zero requests" mode.
  • Serializing navigations to avoid the cancelled (-999) load.

Happy to test anything else on this machine. If it helps to narrow which part of 903bf46 does the work here, I can test a build with only the Info.plist keys and nothing else.

KuzuriAo avatar Sep 16 '26 21:09 KuzuriAo

@zhangzhend0ng

Thanks for following up! I tried the build from #1463 today. It seems to load fine on my setup. It tried with and without deleting web/flutter_web, both worked.

Before deleting web/flutter_web:

[warning]	2026-09-17 11:58:48.322609[Thread 0x00000001f4afa180]:Snapmaker Orca Version Information
[warning]	2026-09-17 11:58:48.322611[Thread 0x00000001f4afa180]:========================================
[warning]	2026-09-17 11:58:48.322612[Thread 0x00000001f4afa180]:[Version] Snapmaker Orca: 2.4.0, Build: 01.10.01.50
[warning]	2026-09-17 11:58:48.322651[Thread 0x00000001f4afa180]:[Version] Orca Web: flutter_version: 2.3.26  build_number: 20260818172502
[warning]	2026-09-17 11:58:48.323508[Thread 0x00000001f4afa180]:[Version] Profile: 02.02.56.02
[warning]	2026-09-17 11:58:48.323513[Thread 0x00000001f4afa180]:[Version] OS: macOS Version 26.6.2 (Build 25G83)
[warning]	2026-09-17 11:58:48.323514[Thread 0x00000001f4afa180]:========================================
[error]	2026-09-17 11:58:48.607994[Thread 0x00000001f4afa180]:Profile staging for bbl is missing preset subdirectories
[error]	2026-09-17 11:58:48.608010[Thread 0x00000001f4afa180]:atomic_replace_directory: staging validation failed for "/Users/richard/Library/Application Support/Snapmaker_Orca/printers"
[error]	2026-09-17 11:58:48.608646[Thread 0x00000001f4afa180]:[Orca Updater] Update install failed: Update(/Applications/Snapmaker Orca.app/Contents/Resources/printers -> /Users/richard/Library/Application Support/Snapmaker_Orca/printers)
[error]	2026-09-17 11:58:49.055103[Thread 0x00000001f4afa180]:3dx drivers module loading error: dlopen(/Library/Frameworks/3DconnexionClient.framework/3DconnexionClient, 0x0005): tried: '/Library/Frameworks/3DconnexionClient.framework/3DconnexionClient' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Library/Frameworks/3DconnexionClient.framework/3DconnexionClient' (no such file), '/Library/Frameworks/3DconnexionClient.framework/3DconnexionClient' (no such file)
[error]	2026-09-17 11:58:49.398121[Thread 0x00000001f4afa180]:calc_exclude_triangles:Unable to create exclude triangles
[warning]	2026-09-17 11:58:49.400428[Thread 0x00000001f4afa180]:MF_REMAP on_filaments_change old_physical=1 new_physical=2 total_filaments=2 id_remap_size=0 id_remap=[] explicit_remap=0 should_remap_states=0 changed_entries=0 changed_map=[]
[warning]	2026-09-17 11:58:49.545933[Thread 0x00000001f4afa180]:[ACTIVATE_EVT] OrcaSlicer switched to foreground
[warning]	2026-09-17 11:58:50.119046[Thread 0x00000001f4afa180]:11:58:50 AM: Warning: Error running JavaScript: TypeError: null is not an object (evaluating 'video.setAttribute')
[error]	2026-09-17 11:58:51.053729[Thread 0x00000001f4afa180]:calc_exclude_triangles:Unable to create exclude triangles
[warning]	2026-09-17 11:58:51.105740[Thread 0x00000001f4afa180]:config_wizard_startup changed the privacy policy with: false
[warning]	2026-09-17 11:58:51.140039[Thread 0x00000001f4afa180]:get_version, get_version not supported,return 00.00.00.00!
[warning]	2026-09-17 11:58:52.848998[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T01:58:52.848Z][warning][deviceControl][[ThemeVM] loadThemePreference, isDarkMode: false, isSystemTheme: false]
[warning]	2026-09-17 11:58:52.849036[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T01:58:52.848Z][warning][deviceControl][[ThemeVM] loadThemePreference, isDarkMode: false, isSystemTheme: false]
[warning]	2026-09-17 11:58:52.849506[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T01:58:52.848Z][warning][deviceControl][[ThemeVM] toggleTheme, isDark: false, isSystemTheme: false]
[warning]	2026-09-17 11:58:52.849556[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T01:58:52.849Z][warning][deviceControl][[OrcaGateway] version info: version: 2.3.38, buildNumber: 20260915154633]
[warning]	2026-09-17 11:58:52.853045[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T01:58:52.851Z][warning][home][[ThemeVM] loadThemePreference, isDarkMode: false, isSystemTheme: false]
[warning]	2026-09-17 11:58:52.853088[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T01:58:52.851Z][warning][home][[ThemeVM] loadThemePreference, isDarkMode: false, isSystemTheme: false]
[warning]	2026-09-17 11:58:52.853119[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T01:58:52.852Z][warning][home][[ThemeVM] toggleTheme, isDark: false, isSystemTheme: false]
[warning]	2026-09-17 11:58:52.853175[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T01:58:52.852Z][warning][home][[OrcaGateway] version info: version: 2.3.38, buildNumber: 20260915154633]
[warning]	2026-09-17 11:58:52.866691[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T01:58:52.866Z][warning][deviceControl][[LavaDeviceVM] reset start]
[warning]	2026-09-17 11:58:52.867027[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T01:58:52.866Z][warning][deviceControl][[LavaDeviceVM] [] disconnectAllDevices start, authorizationStatusNotifier.value set to AuthorizationStatus.authorizing]
[warning]	2026-09-17 11:58:52.867431[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T01:58:52.866Z][warning][deviceControl][[LavaDeviceVM]  web logout event received, _modelMap.removeWhere isWan, _modelMap.values.first: {}]
[warning]	2026-09-17 11:58:52.868186[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T01:58:52.867Z][warning][home][[LavaDeviceVM] reset start]
[warning]	2026-09-17 11:58:52.868547[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T01:58:52.867Z][warning][home][[LavaDeviceVM] [] disconnectAllDevices start, authorizationStatusNotifier.value set to AuthorizationStatus.authorizing]
[warning]	2026-09-17 11:58:52.868992[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T01:58:52.868Z][warning][home][[LavaDeviceVM]  web logout event received, _modelMap.removeWhere isWan, _modelMap.values.first: {}]
[warning]	2026-09-17 11:58:53.173792[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T01:58:53.173Z][warning][deviceControl][[ControlVM] _listenOrcaLocalDeviceListUpdateCallback, eventId:logoutDeleLocalClouldDevice, _processDeviceListUpdate, orcaLocalDeviceList count: 1, detail: DeviceModel(hashCode: 28540303,key: 8110026060810323T2RR, name: U1, deviceName: U1, ip: 192.168.1.220, txtIp: , port: 8883, clientId: orca-283d538a-4022-4d75-99a6-8e3b6fcdfa26, id: , linkMode: lan, deviceConnectionState: lan, connected: false, online: 0, deviceVersion: , userid: )]
[warning]	2026-09-17 11:58:53.174266[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T01:58:53.173Z][warning][deviceControl][[LavaDeviceVM] syncOrcaDeviceModelList, kIsWasm || kIsWeb, currentModule: null, initModule: deviceControl, isFirstSync: true]
[warning]	2026-09-17 11:58:53.175127[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T01:58:53.174Z][warning][home][[ControlVM] _listenOrcaLocalDeviceListUpdateCallback, eventId:logoutDeleLocalClouldDevice, _processDeviceListUpdate, orcaLocalDeviceList count: 1, detail: DeviceModel(hashCode: 471566942,key: 8110026060810323T2RR, name: U1, deviceName: U1, ip: 192.168.1.220, txtIp: , port: 8883, clientId: orca-283d538a-4022-4d75-99a6-8e3b6fcdfa26, id: , linkMode: lan, deviceConnectionState: lan, connected: false, online: 0, deviceVersion: , userid: )]
[warning]	2026-09-17 11:58:53.175618[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T01:58:53.175Z][warning][home][[LavaDeviceVM] syncOrcaDeviceModelList, kIsWasm || kIsWeb, currentModule: null, initModule: home, isFirstSync: true]
[warning]	2026-09-17 11:58:53.483672[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T01:58:53.483Z][warning][deviceControl][initState]
[warning]	2026-09-17 11:58:53.553627[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T01:58:53.553Z][warning][home][[HomePage] initState, mounted: true, _isInitialized: false, timeStamp: 0:00:00.000000]
[warning]	2026-09-17 11:58:53.554057[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T01:58:53.553Z][warning][home][initState]
[warning]	2026-09-17 11:58:53.554100[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T01:58:53.553Z][warning][[home][Wcp]][getSoftwareInfo start, seqid: 1789610332850099]
[warning]	2026-09-17 11:58:53.617654[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T01:58:53.558Z][warning][[home][Wcp]][getSoftwareInfo result: {code: 200, data: {http_host: http://127.0.0.1:13619, version: 2.4.0}, message: OK}, seqid: 1789610332850099]
[warning]	2026-09-17 11:58:53.617738[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T01:58:53.558Z][warning][[home][Wcp]][getSoftwareInfo version: 2.4.0]
[warning]	2026-09-17 11:58:53.617898[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T01:58:53.570Z][warning][deviceControl][[DeviceControlPage], initState, timeStamp: 0:00:00.000000]
[warning]	2026-09-17 11:58:53.617926[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T01:58:53.570Z][warning][deviceControl][_subscribeData]
[warning]	2026-09-17 11:58:53.617952[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T01:58:53.570Z][warning][deviceControl][_subscriptingToDeviceDownloadTaskStream add listener]
[warning]	2026-09-17 11:58:53.617975[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T01:58:53.570Z][warning][deviceControl][_subscriptingToLogoutStream add listener]
[warning]	2026-09-17 11:58:53.618000[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T01:58:53.570Z][warning][deviceControl][_getDeviceInfo: loginUser: {nickname: , email: , account: , status: offline, icon: , avatar: , token: , token_type: Bearer, userid: , uid: , id: , cellphone: }]
[warning]	2026-09-17 11:58:53.632150[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T01:58:53.631Z][warning][deviceControl][wcp.getConnectedMachine is null]
[warning]	2026-09-17 11:58:53.632200[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T01:58:53.631Z][warning][deviceControl][_getDeviceInfo: getCurrentOrcaConnectedDevice: null]
[warning]	2026-09-17 11:58:53.632512[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T01:58:53.631Z][warning][deviceControl][_getDeviceInfo: wcp.getConnectedMachine is null]
[warning]	2026-09-17 11:58:55.124011[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T01:58:55.121Z][warning][deviceControl][[ControlVM] _listenOrcaLocalDeviceListUpdateCallback, eventId:updateOrcaLocalDeviceList, _processDeviceListUpdate, orcaLocalDeviceList count: 1, detail: DeviceModel(hashCode: 656698033,key: 8110026060810323T2RR, name: U1, deviceName: U1, ip: 192.168.1.220, txtIp: , port: 8883, clientId: orca-283d538a-4022-4d75-99a6-8e3b6fcdfa26, id: , linkMode: lan, deviceConnectionState: lan, connected: false, online: 0, deviceVersion: , userid: )]
[warning]	2026-09-17 11:58:55.125088[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T01:58:55.122Z][warning][deviceControl][[LavaDeviceVM] syncOrcaDeviceModelList, kIsWasm || kIsWeb, currentModule: null, initModule: deviceControl, isFirstSync: false]
[warning]	2026-09-17 11:58:55.125818[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T01:58:55.122Z][warning][home][[ControlVM] _listenOrcaLocalDeviceListUpdateCallback, eventId:updateOrcaLocalDeviceList, _processDeviceListUpdate, orcaLocalDeviceList count: 1, detail: DeviceModel(hashCode: 1027221266,key: 8110026060810323T2RR, name: U1, deviceName: U1, ip: 192.168.1.220, txtIp: , port: 8883, clientId: orca-283

After deleting web/flutter_web:

[warning]	2026-09-17 12:04:14.367983[Thread 0x00000001f4afa180]:Snapmaker Orca Version Information
[warning]	2026-09-17 12:04:14.367985[Thread 0x00000001f4afa180]:========================================
[warning]	2026-09-17 12:04:14.367986[Thread 0x00000001f4afa180]:[Version] Snapmaker Orca: 2.4.0, Build: 01.10.01.50
[warning]	2026-09-17 12:04:14.367993[Thread 0x00000001f4afa180]:[Version] Orca Web: N/A
[warning]	2026-09-17 12:04:14.368811[Thread 0x00000001f4afa180]:[Version] Profile: 02.03.03.03
[warning]	2026-09-17 12:04:14.368816[Thread 0x00000001f4afa180]:[Version] OS: macOS Version 26.6.2 (Build 25G83)
[warning]	2026-09-17 12:04:14.368818[Thread 0x00000001f4afa180]:========================================
[error]	2026-09-17 12:04:14.653634[Thread 0x00000001f4afa180]:Profile staging for bbl is missing preset subdirectories
[error]	2026-09-17 12:04:14.653650[Thread 0x00000001f4afa180]:atomic_replace_directory: staging validation failed for "/Users/richard/Library/Application Support/Snapmaker_Orca/printers"
[error]	2026-09-17 12:04:14.654005[Thread 0x00000001f4afa180]:[Orca Updater] Update install failed: Update(/Applications/Snapmaker Orca.app/Contents/Resources/printers -> /Users/richard/Library/Application Support/Snapmaker_Orca/printers)
[error]	2026-09-17 12:04:15.103046[Thread 0x00000001f4afa180]:3dx drivers module loading error: dlopen(/Library/Frameworks/3DconnexionClient.framework/3DconnexionClient, 0x0005): tried: '/Library/Frameworks/3DconnexionClient.framework/3DconnexionClient' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Library/Frameworks/3DconnexionClient.framework/3DconnexionClient' (no such file), '/Library/Frameworks/3DconnexionClient.framework/3DconnexionClient' (no such file)
[error]	2026-09-17 12:04:15.476334[Thread 0x00000001f4afa180]:calc_exclude_triangles:Unable to create exclude triangles
[warning]	2026-09-17 12:04:15.478573[Thread 0x00000001f4afa180]:MF_REMAP on_filaments_change old_physical=1 new_physical=2 total_filaments=2 id_remap_size=0 id_remap=[] explicit_remap=0 should_remap_states=0 changed_entries=0 changed_map=[]
[warning]	2026-09-17 12:04:15.623436[Thread 0x00000001f4afa180]:[ACTIVATE_EVT] OrcaSlicer switched to foreground
[warning]	2026-09-17 12:04:16.139475[Thread 0x00000001f4afa180]:12:04:16 PM: Warning: Error running JavaScript: TypeError: null is not an object (evaluating 'video.setAttribute')
[error]	2026-09-17 12:04:17.186214[Thread 0x00000001f4afa180]:calc_exclude_triangles:Unable to create exclude triangles
[warning]	2026-09-17 12:04:17.232452[Thread 0x00000001f4afa180]:config_wizard_startup changed the privacy policy with: false
[warning]	2026-09-17 12:04:17.261372[Thread 0x00000001f4afa180]:get_version, get_version not supported,return 00.00.00.00!
[warning]	2026-09-17 12:04:17.351110[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T02:04:16.618Z][warning][home][[ThemeVM] loadThemePreference, isDarkMode: false, isSystemTheme: false]
[warning]	2026-09-17 12:04:17.351166[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T02:04:16.618Z][warning][home][[ThemeVM] loadThemePreference, isDarkMode: false, isSystemTheme: false]
[warning]	2026-09-17 12:04:17.351213[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T02:04:16.618Z][warning][home][[ThemeVM] toggleTheme, isDark: false, isSystemTheme: false]
[warning]	2026-09-17 12:04:17.351274[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T02:04:16.619Z][warning][home][[OrcaGateway] version info: version: 2.3.38, buildNumber: 20260915154633]
[warning]	2026-09-17 12:04:17.355959[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T02:04:16.627Z][warning][deviceControl][[ThemeVM] loadThemePreference, isDarkMode: false, isSystemTheme: false]
[warning]	2026-09-17 12:04:17.355996[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T02:04:16.627Z][warning][deviceControl][[ThemeVM] loadThemePreference, isDarkMode: false, isSystemTheme: false]
[warning]	2026-09-17 12:04:17.356021[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T02:04:16.628Z][warning][deviceControl][[ThemeVM] toggleTheme, isDark: false, isSystemTheme: false]
[warning]	2026-09-17 12:04:17.356068[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T02:04:16.628Z][warning][deviceControl][[OrcaGateway] version info: version: 2.3.38, buildNumber: 20260915154633]
[warning]	2026-09-17 12:04:17.486240[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T02:04:17.485Z][warning][deviceControl][[LavaDeviceVM] reset start]
[warning]	2026-09-17 12:04:17.486905[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T02:04:17.485Z][warning][deviceControl][[LavaDeviceVM] [] disconnectAllDevices start, authorizationStatusNotifier.value set to AuthorizationStatus.authorizing]
[warning]	2026-09-17 12:04:17.487613[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T02:04:17.486Z][warning][home][[LavaDeviceVM] reset start]
[warning]	2026-09-17 12:04:17.487990[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T02:04:17.487Z][warning][home][[LavaDeviceVM] [] disconnectAllDevices start, authorizationStatusNotifier.value set to AuthorizationStatus.authorizing]
[warning]	2026-09-17 12:04:17.488027[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T02:04:17.487Z][warning][deviceControl][[LavaDeviceVM]  web logout event received, _modelMap.removeWhere isWan, _modelMap.values.first: {}]
[warning]	2026-09-17 12:04:17.489476[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T02:04:17.488Z][warning][home][[LavaDeviceVM]  web logout event received, _modelMap.removeWhere isWan, _modelMap.values.first: {}]
[warning]	2026-09-17 12:04:17.887743[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T02:04:17.887Z][warning][deviceControl][[ControlVM] _listenOrcaLocalDeviceListUpdateCallback, eventId:logoutDeleLocalClouldDevice, _processDeviceListUpdate, orcaLocalDeviceList count: 1, detail: DeviceModel(hashCode: 406795159,key: 8110026060810323T2RR, name: U1, deviceName: U1, ip: 192.168.1.220, txtIp: , port: 8883, clientId: orca-283d538a-4022-4d75-99a6-8e3b6fcdfa26, id: , linkMode: lan, deviceConnectionState: lan, connected: false, online: 0, deviceVersion: , userid: )]
[warning]	2026-09-17 12:04:17.888379[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T02:04:17.887Z][warning][home][[ControlVM] _listenOrcaLocalDeviceListUpdateCallback, eventId:logoutDeleLocalClouldDevice, _processDeviceListUpdate, orcaLocalDeviceList count: 1, detail: DeviceModel(hashCode: 664915361,key: 8110026060810323T2RR, name: U1, deviceName: U1, ip: 192.168.1.220, txtIp: , port: 8883, clientId: orca-283d538a-4022-4d75-99a6-8e3b6fcdfa26, id: , linkMode: lan, deviceConnectionState: lan, connected: false, online: 0, deviceVersion: , userid: )]
[warning]	2026-09-17 12:04:17.889498[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T02:04:17.888Z][warning][deviceControl][[LavaDeviceVM] syncOrcaDeviceModelList, kIsWasm || kIsWeb, currentModule: null, initModule: deviceControl, isFirstSync: true]
[warning]	2026-09-17 12:04:17.889724[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T02:04:17.888Z][warning][home][[LavaDeviceVM] syncOrcaDeviceModelList, kIsWasm || kIsWeb, currentModule: null, initModule: home, isFirstSync: true]
[warning]	2026-09-17 12:04:18.086772[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T02:04:18.086Z][warning][deviceControl][initState]
[warning]	2026-09-17 12:04:18.147404[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T02:04:18.147Z][warning][home][[HomePage] initState, mounted: true, _isInitialized: false, timeStamp: 0:00:00.000000]
[warning]	2026-09-17 12:04:18.147849[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T02:04:18.147Z][warning][home][initState]
[warning]	2026-09-17 12:04:18.147893[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T02:04:18.147Z][warning][[home][Wcp]][getSoftwareInfo start, seqid: 1789610656616099]
[warning]	2026-09-17 12:04:18.184732[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T02:04:18.150Z][warning][[home][Wcp]][getSoftwareInfo result: {code: 200, data: {http_host: http://127.0.0.1:13619, version: 2.4.0}, message: OK}, seqid: 1789610656616099]
[warning]	2026-09-17 12:04:18.184801[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T02:04:18.150Z][warning][[home][Wcp]][getSoftwareInfo version: 2.4.0]
[warning]	2026-09-17 12:04:18.184954[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T02:04:18.161Z][warning][deviceControl][[DeviceControlPage], initState, timeStamp: 0:00:00.000000]
[warning]	2026-09-17 12:04:18.184980[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T02:04:18.161Z][warning][deviceControl][_subscribeData]
[warning]	2026-09-17 12:04:18.185009[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T02:04:18.161Z][warning][deviceControl][_subscriptingToDeviceDownloadTaskStream add listener]
[warning]	2026-09-17 12:04:18.185035[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T02:04:18.161Z][warning][deviceControl][_subscriptingToLogoutStream add listener]
[warning]	2026-09-17 12:04:18.185066[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T02:04:18.161Z][warning][deviceControl][_getDeviceInfo: loginUser: {nickname: , email: , account: , status: offline, icon: , avatar: , token: , token_type: Bearer, userid: , uid: , id: , cellphone: }]
[warning]	2026-09-17 12:04:18.205879[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T02:04:18.203Z][warning][deviceControl][wcp.getConnectedMachine is null]
[warning]	2026-09-17 12:04:18.206156[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T02:04:18.203Z][warning][deviceControl][_getDeviceInfo: getCurrentOrcaConnectedDevice: null]
[warning]	2026-09-17 12:04:18.206449[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T02:04:18.203Z][warning][deviceControl][_getDeviceInfo: wcp.getConnectedMachine is null]
[warning]	2026-09-17 12:04:18.239899[Thread 0x00000001f4afa180]:[ACTIVATE_EVT] OrcaSlicer switched to background
[warning]	2026-09-17 12:04:18.624062[Thread 0x00000001f4afa180]:[ACTIVATE_EVT] OrcaSlicer switched to foreground
[warning]	2026-09-17 12:04:18.626092[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T02:04:18.625Z][warning][[deviceControl][Wcp]][[lifecycle] subscribeForegroundChange callback get data: {state: true}]
[warning]	2026-09-17 12:04:18.626155[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T02:04:18.625Z][warning][[home][Wcp]][[lifecycle] subscribeForegroundChange callback get data: {state: true}]
[warning]	2026-09-17 12:04:19.027361[Thread 0x00000001f4afa180]:[ACTIVATE_EVT] OrcaSlicer switched to background
[warning]	2026-09-17 12:04:19.040653[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T02:04:19.036Z][warning][[deviceControl][Wcp]][[lifecycle] subscribeForegroundChange callback get data: {state: false}]
[warning]	2026-09-17 12:04:19.040692[Thread 0x00000001f4afa180]:[WCP] [2026-09-17T02:04:19.037Z][warning][deviceControl][[ControlVM] [HB-TRACK], lifecycleStream, pageState: PageState.ready, lifecycle isForeground: false, lifecycle isVisible: true, setOrcaWebApplicationIsActivated: f```

rp86 avatar Sep 17 '26 02:09 rp86

@rp86 that matches what I saw here with the 903bf46 validation build, so that is two macOS machines with the web layer loading again.

Unrelated to this issue, but worth pointing out before it gets lost in the output: I was scanning through your debug output and noticed both of your runs fail to install the bundled printer resources. In your first log it is the three error lines at 11:58:48.607 through 11:58:48.608, and in your second at 12:04:14.653 through 12:04:14.654, ending in [Orca Updater] Update install failed.

I went looking at the code around it, and I suspect that one is not your setup. get_printer_config_updates queues Resources/printers under the vendor name bbl, and the staging check added in #513 looks for a machine, filament or process subdirectory in the staged folder. As far as I can tell that folder never has one. It is flat JSON plus ams_load.gcode, ams_unload.gcode, filaments_blacklist.json and version.txt, which would mean the check cannot pass and the install is rejected every time.

That would also explain why my logs are clean. The update only runs when printers/version.txt in the datadir differs from the one in the app, and mine match at 01.10.00.01, so nothing is attempted here. Yours differ, so it would retry and fail on each launch, and those resources would never update.

I have not reproduced it yet, so treat that as a strong suspicion rather than a conclusion. @zhangzhend0ng @LuckZAE I can try to confirm it on my machine and open a separate issue with the detail, if that is useful.

KuzuriAo avatar Sep 17 '26 02:09 KuzuriAo

This is fixed — see #865 (merged to main). The root causes were concurrent WKWebView LoadURL calls cancelling the in-flight document, ATS / local-network policy blocking http://127.0.0.1, and related web-layer races; the fix serializes navigations, declares localhost / local-network exceptions, and stabilizes Home / Device page loading and U1 / non-U1 page switching.

Confirmed loading again on two macOS machines — thanks @KuzuriAo for the report, the analysis, and the re-validation, and @rp86 for the logs. The fix will ship in 2.4.0 Beta; the #840 known-issues board has been updated accordingly.

Closing as completed. If anything similar reappears on the beta build, please open a new issue or comment on #840.

zhangzhend0ng avatar Sep 17 '26 03:09 zhangzhend0ng

Thanks @KuzuriAo

Just tried another run, completely wiping Application Support/Snapmaker_Orca beforehand. Seems to still show 'Update install failed':

[warning]	2026-09-17 12:59:20.231085[Thread 0x00000001f4afa180]:========================================
[warning]	2026-09-17 12:59:20.231234[Thread 0x00000001f4afa180]:Snapmaker Orca Version Information
[warning]	2026-09-17 12:59:20.231236[Thread 0x00000001f4afa180]:========================================
[warning]	2026-09-17 12:59:20.231237[Thread 0x00000001f4afa180]:[Version] Snapmaker Orca: 2.4.0, Build: 01.10.01.50
[warning]	2026-09-17 12:59:20.231246[Thread 0x00000001f4afa180]:[Version] Orca Web: N/A
[warning]	2026-09-17 12:59:20.231251[Thread 0x00000001f4afa180]:[Version] Profile: N/A
[warning]	2026-09-17 12:59:20.231252[Thread 0x00000001f4afa180]:[Version] OS: macOS Version 26.6.2 (Build 25G83)
[warning]	2026-09-17 12:59:20.231253[Thread 0x00000001f4afa180]:========================================
[warning]	2026-09-17 12:59:20.240534[Thread 0x00000001f4afa180]:Failed to load to hints.cereal. File does not exists. /Users/richard/Library/Application Support/Snapmaker_Orca/user/hints.cereal
[error]	2026-09-17 12:59:20.625312[Thread 0x00000001f4afa180]:Profile staging for bbl is missing preset subdirectories
[error]	2026-09-17 12:59:20.625327[Thread 0x00000001f4afa180]:atomic_replace_directory: staging validation failed for "/Users/richard/Library/Application Support/Snapmaker_Orca/printers"
[error]	2026-09-17 12:59:20.625665[Thread 0x00000001f4afa180]:[Orca Updater] Update install failed: Update(/Applications/Snapmaker Orca.app/Contents/Resources/printers -> /Users/richard/Library/Application Support/Snapmaker_Orca/printers)

rp86 avatar Sep 17 '26 03:09 rp86

Thanks @rp86 — and nice work isolating this with a completely wiped data directory. (And thanks @KuzuriAo for spotting this in the debug output in the first place.) This is a real bug, and it is separate from the white-screen issue above.

What you're seeing: on startup the updater copies the bundled printer-config payload (Snapmaker Orca.app/Contents/Resources/printers) into Application Support/Snapmaker_Orca/printers. A staging validation added in 2.3.5 (#513) requires machine / filament / process subdirectories — a shape only the OTA-updated payload has. The bundled payload is flat files, so on a fresh data directory the check can never pass: the install aborts and retries on every launch, and the machine capability JSONs never reach the data directory. Harmless but noisy, and worth fixing — it has nothing to do with the WebView fix.

Could you file a new issue for this? Something like "Bundled printer config install fails staging validation on a fresh data directory", with the log snippet you posted here plus your app version and macOS version. We'll link it from the #840 board — it's a small fix we'd like to land in the beta. Thanks again for the clean repro!

@KuzuriAo — between the Space URL fix in #852, the render-regression analysis here, and the validation runs, your contributions this cycle are hugely appreciated.

zhangzhend0ng avatar Sep 17 '26 03:09 zhangzhend0ng

same issue here. Snapmaker 2.4.1 Macos 13.5

Image Image

bigveila avatar Nov 09 '26 12:11 bigveila