0.9.8 Windows crashing #21
Reference in New Issue
Block a user
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?
Windows compiled version crashing , see screenshot
Win10
Python source works , but i do not see the 0.9.8 improvements..like uploaded prints etc. at all
data dir is not created too
Thanks for the report and the screenshot — that pinpointed it immediately.
Root cause:
release.shsynced the source files into the Windows build repo, but missedconfig_loader.py(wherelist_printers()lives). The 0.9.8kx-bridge.exewas therefore built against an outdatedconfig_loader.pyfrom a previous version →AttributeError: module 'config_loader' has no attribute 'list_printers'on startup.Fixed:
kx-bridge-windows.zipasset on the v0.9.8 release with a freshly built EXE that contains the correctconfig_loader.py. Same download link — please grab it again:https://gitea.it-drui.de/viewit/KX-Bridge-Release/releases/download/v0.9.8/kx-bridge-windows.zip
list_printers,_kx_fetch_credentials,handle_kx_printer_add,_default_data_dir, …).SHA256SUMS.txtupdated with the new hash (196d3492…f132fbfor the ZIP,48c2aa11…6a25for the EXE).release.shto includeconfig_loader.pyin the Windows build sync (commit https://gitea.it-drui.de/viewit/KX-Bridge/commit/30168f2) — won't happen again on future releases.Regarding the Python source: since 0.9.8 you can run
kx-bridgewithout Docker —config/anddata/are created next to the executable (or next tokobrax_moonraker_bridge.pywhen running from source). If you don't seedata/and the new features, you're likely running an olderkobrax_moonraker_bridge.py. Make sure your source files are from the v0.9.8 release — specifically you need the matchingconfig_loader.py,kobrax_client.pyandenv_loader.pyalongside the main script.On first start with no printer configured, the UI opens directly on the Printers tab with a "+ Add printer" button — just enter the printer IP and the credentials are imported automatically. No more wading through the settings dialog.
Closing this — please re-open if the new EXE still misbehaves.
Follow-up: while debugging the EXE crash we found a second bug in the same area — when the web UI was opened via the LAN IP (e.g.
http://192.168.x.y:7125), the bridge was returningbridge_url: http://localhost:7125in/kx/printers, which caused the browser to fire cross-origin requests from the LAN IP tolocalhost. Those got silently blocked and produced a flood ofTypeError: Failed to fetchpoll errors in the log.Fixed in v0.9.9 — release with both fixes (Windows EXE startup + bridge_url): https://gitea.it-drui.de/viewit/KX-Bridge-Release/releases/tag/v0.9.9
If you grabbed the patched 0.9.8 EXE earlier, please update to v0.9.9 to get rid of the poll-error spam too.