OctoPrint-GcodeEditor icon indicating copy to clipboard operation
OctoPrint-GcodeEditor copied to clipboard

Plugin somehow causes File operations to just hang in browser

Open notfixingit3 opened this issue 2 years ago • 0 comments

OS OctoPi: 0.18.0 OctoPrint: 1.6.1 Python 3.7.3 Firefox 92.0 or Chrome 93.0.4577.63

Issue: When you create a directory or delete a directory in files, browser window just hangs and doesn't refresh even know the operation actually completed, forcing you to do a refresh in browser to see the changes.

I disabled all 3rd party plugins except GcodeEditor (although I left all bundled plugins enabled) and still have the issue. Nothing in octorprint.log helpful, however when running Firefox/Chrome Inspector you see the below failure/exception, only when GcodeEditor is enabled, octorprint loads fine without this error if it's disabled.

Reproduce: Disable all 3rd party plugins except GcodeEditor, restart octoprint, log out, when at login page, turn on Inspect > Console tab, login and watch for error below in console. Go to files and create a directory, window just hangs. Disable GcodeEditor, restart, open Inspect > Console tab or just hit trashcan icon to clear console, login, notice no error and creating directory/deleting one works as expected. I did change the IP in the below log to something random.

Application startup complete packed_core.js:1264:442 FAILURE 9 packed_plugins.js:171:37 Uncaught TypeError: parsed is null bytesFromSize http://192.168.6.105/static/webassets/packed_core.js?21da1722:1114 _bytesFromSize http://192.168.6.105/static/webassets/packed_plugins.js?790be762:232 addEditButtonsToGcode http://192.168.6.105/static/webassets/packed_plugins.js?790be762:152 each http://192.168.6.105/static/webassets/packed_libs.js?86afb3b9:13 each http://192.168.6.105/static/webassets/packed_libs.js?86afb3b9:13 addEditButtonsToGcode http://192.168.6.105/static/webassets/packed_plugins.js?790be762:147 _updateItems http://192.168.6.105/static/webassets/packed_plugins.js?790be762:348 updateItems http://192.168.6.105/static/webassets/packed_core.js?21da1722:1094 changeFolderByPath http://192.168.6.105/static/webassets/packed_core.js?21da1722:147 fromResponse http://192.168.6.105/static/webassets/packed_core.js?21da1722:142 _otherRequestInProgress http://192.168.6.105/static/webassets/packed_core.js?21da1722:139 c http://192.168.6.105/static/webassets/packed_libs.js?86afb3b9:13 fireWith http://192.168.6.105/static/webassets/packed_libs.js?86afb3b9:13 l http://192.168.6.105/static/webassets/packed_libs.js?86afb3b9:13 o http://192.168.6.105/static/webassets/packed_libs.js?86afb3b9:13 send http://192.168.6.105/static/webassets/packed_libs.js?86afb3b9:13 ajax http://192.168.6.105/static/webassets/packed_libs.js?86afb3b9:13 ajax http://192.168.6.105/static/webassets/packed_client.js?0a0190d8:8 ajaxWithData http://192.168.6.105/static/webassets/packed_client.js?0a0190d8:8 getWithQuery http://192.168.6.105/static/webassets/packed_client.js?0a0190d8:8 list http://192.168.6.105/static/webassets/packed_client.js?0a0190d8:68 requestData http://192.168.6.105/static/webassets/packed_core.js?21da1722:139 onUserLoggedOut http://192.168.6.105/static/webassets/packed_core.js?21da1722:201 callViewModelIf http://192.168.6.105/static/webassets/packed_core.js?21da1722:1199 callViewModelsIf http://192.168.6.105/static/webassets/packed_core.js?21da1722:1193 Pn http://192.168.6.105/static/webassets/packed_libs.js?86afb3b9:30 ur http://192.168.6.105/static/webassets/packed_libs.js?86afb3b9:51 callViewModelsIf http://192.168.6.105/static/webassets/packed_core.js?21da1722:1193 callViewModels http://192.168.6.105/static/webassets/packed_core.js?21da1722:1192 process http://192.168.6.105/static/webassets/packed_core.js?21da1722:220 c http://192.168.6.105/static/webassets/packed_libs.js?86afb3b9:13 fireWith http://192.168.6.105/static/webassets/packed_libs.js?86afb3b9:13 t[0] http://192.168.6.105/static/webassets/packed_libs.js?86afb3b9:13 onAllBound http://192.168.6.105/static/webassets/packed_core.js?21da1722:231 callViewModelIf http://192.168.6.105/static/webassets/packed_core.js?21da1722:1199 callViewModelsIf http://192.168.6.105/static/webassets/packed_core.js?21da1722:1193 Pn http://192.168.6.105/static/webassets/packed_libs.js?86afb3b9:30 ur http://192.168.6.105/static/webassets/packed_libs.js?86afb3b9:51 callViewModelsIf http://192.168.6.105/static/webassets/packed_core.js?21da1722:1193 callViewModels http://192.168.6.105/static/webassets/packed_core.js?21da1722:1192 bindViewModels http://192.168.6.105/static/webassets/packed_core.js?21da1722:1264 setTimeout handlerfetchSettings/< http://192.168.6.105/static/webassets/packed_core.js?21da1722:1266 c http://192.168.6.105/static/webassets/packed_libs.js?86afb3b9:13 fireWith http://192.168.6.105/static/webassets/packed_libs.js?86afb3b9:13 l http://192.168.6.105/static/webassets/packed_libs.js?86afb3b9:13 o http://192.168.6.105/static/webassets/packed_libs.js?86afb3b9:13 send http://192.168.6.105/static/webassets/packed_libs.js?86afb3b9:13 ajax http://192.168.6.105/static/webassets/packed_libs.js?86afb3b9:13 ajax http://192.168.6.105/static/webassets/packed_client.js?0a0190d8:8 get http://192.168.6.105/static/webassets/packed_client.js?0a0190d8:8 get http://192.168.6.105/static/webassets/packed_client.js?0a0190d8:103 requestData http://192.168.6.105/static/webassets/packed_core.js?21da1722:326 fetchSettings http://192.168.6.105/static/webassets/packed_core.js?21da1722:1266 setTimeout handler http://192.168.6.105/static/webassets/packed_core.js?21da1722:1266 c http://192.168.6.105/static/webassets/packed_libs.js?86afb3b9:13 fireWith http://192.168.6.105/static/webassets/packed_libs.js?86afb3b9:13 l http://192.168.6.105/static/webassets/packed_libs.js?86afb3b9:13 o http://192.168.6.105/static/webassets/packed_libs.js?86afb3b9:13 send http://192.168.6.105/static/webassets/packed_libs.js?86afb3b9:13 ajax http://192.168.6.105/static/webassets/packed_libs.js?86afb3b9:13 ajax http://192.168.6.105/static/webassets/packed_client.js?0a0190d8:8 ajaxWithData http://192.168.6.105/static/webassets/packed_client.js?0a0190d8:8 post http://192.168.6.105/static/webassets/packed_client.js?0a0190d8:8 postJson http://192.168.6.105/static/webassets/packed_client.js?0a0190d8:8 passiveLogin http://192.168.6.105/static/webassets/packed_client.js?0a0190d8:52 requestData http://192.168.6.105/static/webassets/packed_core.js?21da1722:220 onServerConnect http://192.168.6.105/static/webassets/packed_core.js?21da1722:1266 http://192.168.6.105/static/webassets/packed_core.js?21da1722:1266 c http://192.168.6.105/static/webassets/packed_libs.js?86afb3b9:13 fireWith http://192.168.6.105/static/webassets/packed_libs.js?86afb3b9:13 t[0] http://192.168.6.105/static/webassets/packed_libs.js?86afb3b9:13 _onConnectMessage http://192.168.6.105/static/webassets/packed_core.js?21da1722:1069 propagateMessage http://192.168.6.105/static/webassets/packed_client.js?0a0190d8:20 Pn http://192.168.6.105/static/webassets/packed_libs.js?86afb3b9:30 ur http://192.168.6.105/static/webassets/packed_libs.js?86afb3b9:51 propagateMessage http://192.168.6.105/static/webassets/packed_client.js?0a0190d8:20 onMessage http://192.168.6.105/static/webassets/packed_client.js?0a0190d8:27 Zt http://192.168.6.105/static/webassets/packed_libs.js?86afb3b9:47 _t http://192.168.6.105/static/webassets/packed_libs.js?86afb3b9:35 Vt http://192.168.6.105/static/webassets/packed_libs.js?86afb3b9:46 ur http://192.168.6.105/static/webassets/packed_libs.js?86afb3b9:51 onMessage http://192.168.6.105/static/webassets/packed_client.js?0a0190d8:27 dispatchEvent http://192.168.6.105/static/webassets/packed_libs.js?86afb3b9:1599 _transportMessage http://192.168.6.105/static/webassets/packed_libs.js?86afb3b9:1599 _transportMessage http://192.168.6.105/static/webassets/packed_libs.js?86afb3b9:1599 emit http://192.168.6.105/static/webassets/packed_libs.js?86afb3b9:1599

notfixingit3 avatar Sep 16 '21 22:09 notfixingit3