victronenergy / gui-v2

Other
24 stars 9 forks source link

gui-v2 (wasm) throws runtime error on repeated connection attempts #1177

Open jpetrell opened 3 months ago

jpetrell commented 3 months ago

I am seeing runtime error when trying to launch gui-v2 (wasm) on the latest main branch, possibly from Add BackendConnection::serviceUidFromName() change.

venus-gui-v2.js:1715 BackendConnection state: Victron::VenusOS::BackendConnection::Connecting
Uncaught RuntimeError: null function or function signature mismatch
    at QGuiApplication::notify(:6931/QObject*, QEvent*) (http://localhost:6931/venus-gui-v2.wasm)
    at QCoreApplication::notifyInternal2(:6931/QObject*, QEvent*) (http://localhost:6931/venus-gui-v2.wasm)
    at QCoreApplicationPrivate::sendPostedEvents(:6931/QObject*, int, QThreadData*) (http://localhost:6931/venus-gui-v2.wasm)
    at QCoreApplication::sendPostedEvents(:6931/QObject*, int) (http://localhost:6931/venus-gui-v2.wasm)
    at QEventDispatcherWasm::processPostedEvents(:6931/) (http://localhost:6931/venus-gui-v2.wasm)
    at QWasmEventDispatcher::processPostedEvents(:6931/) (http://localhost:6931/venus-gui-v2.wasm)
    at std::__2::__function::__func<QEventDispatcherWasm::wakeUp(:6931/)::$_0, std::__2::allocator<QEventDispatcherWasm::wakeUp()::$_0>, void ()>::operator()() (http://localhost:6931/venus-gui-v2.wasm)
    at (:6931/anonymous namespace)::trampoline(void*)::$_0::__invoke(void*) (http://localhost:6931/venus-gui-v2.wasm)
    at wrapper (venus-gui-v2.js:10243:32)
    at callUserCallback (venus-gui-v2.js:7069:9)
DanielMcInnes commented 3 months ago

@jpetrell is this repeatable for you? I can't reproduce it locally.

jpetrell commented 3 months ago

Ok false alarm, had VRM two-way communication disabled for some reason. The error seems real real, but should not happen during the normal usage, only if repeated connection attempts fail.

@jpetrell is this repeatable for you? I can't reproduce it locally.

Thanks for testing! That is really helpful, prompted me to go back and re-check my configs. :smile:

possibly from Add BackendConnection::serviceUidFromName() change.

Not related to ^^, also happens with earlier v0.3.1 release.