GithubHelp home page GithubHelp logo

Comments (10)

BillyBlaze avatar BillyBlaze commented on May 18, 2024

Hi Michel,

Thanks for reporting the bug, I suspect both bugs have to do with a javascript not loading correctly. Could you perhaps open this plugin in Firefox or Chrome with the developers tool open, and share any errors generating in the console?

from octoprint-touchui.

satoer avatar satoer commented on May 18, 2024

This came up:

Reconnect trial #0, waiting 0s packed_app.js:11227:13
Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help http://xhr.spec.whatwg.org/ less.min.js:8:0
Password fields present on an insecure (http://) page. This is a security risk that allows user login credentials to be stolen.[Learn More] <unknown>
Starting dependency resolution... packed_app.js:12070:9
... dependency resolution done packed_app.js:12127:9
Use of getPreventDefault() is deprecated.  Use defaultPrevented instead. packed_libs.js:4:0
Going to bind 22 view models... packed_app.js:12346:13
... binding done packed_app.js:12414:13
Firefox can't establish a connection to the server at ws://octopi.local/sockjs/420/w6bkp7qq/websocket. packed_libs.js:10176:0
The connection to ws://octopi.local/sockjs/420/w6bkp7qq/websocket was interrupted while the page was loading.

from octoprint-touchui.

BillyBlaze avatar BillyBlaze commented on May 18, 2024

hmm that looks pretty normal, not what I was hoping for. Did you first open the developers tool and then the plugin? so you might not have missed any errors?

Do you also have any plugins installed beside the bundled ones?

from octoprint-touchui.

satoer avatar satoer commented on May 18, 2024

started with the non touch UI octoprint:

The connection to ws://octopi.local/sockjs/757/mddydb2s/websocket was interrupted while the page was loading. packed_libs.js:10176:0
Reconnect trial #0, waiting 0s packed_app.js:11227:13
Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help http://xhr.spec.whatwg.org/ less.min.js:8:0
Starting dependency resolution... packed_app.js:12070:9
... dependency resolution done packed_app.js:12127:9
Password fields present on an insecure (http://) page. This is a security risk that allows user login credentials to be stolen.[Learn More] <unknown>
Use of getPreventDefault() is deprecated.  Use defaultPrevented instead. packed_libs.js:4:0
Going to bind 22 view models... packed_app.js:12346:13
... binding done packed_app.js:12414:13

went to: octopi.local/#touch:

The connection to ws://octopi.local/sockjs/900/goqqduhz/websocket was interrupted while the page was loading. packed_libs.js:10176:0
Reconnect trial #0, waiting 0s packed_app.js:11227:13
Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help http://xhr.spec.whatwg.org/ less.min.js:8:0
Starting dependency resolution... packed_app.js:12070:9
... dependency resolution done packed_app.js:12127:9
Use of getPreventDefault() is deprecated.  Use defaultPrevented instead. packed_libs.js:4:0
Going to bind 22 view models... packed_app.js:12346:13
... binding done

I havent installed octoprint plugins besides touchUI.

Steps I've done:

installed 015-07-02_2015-05-05-octopi-wheezy-0.12.0.zip from: http://mirror.tsone.net.uk/octopi/ on SD card

in the startup menu:
expanded the filesystem
and boot to desktop

Did an update in the console:
sudo apt-get update
sudo apt-get upgrade

Had some problems getting a wifi adapter to work (RTL8191SU, Wi-Fi 300Mbps). The "Wifi config" utility failed to recognise the wifi dongle, and I eventually used the console to manually add the wifi using this tutorial:
http://raspberrypihq.com/how-to-add-wifi-to-the-raspberry-pi/

Installed touchUI using the octopi webinterface on a PC:
Settings => Plugin Manager => More => TouchUI =>install

Used your tutorial "Automatically boot into fullscreen mode with iceweasel".

That's all the steps I did.
The problem does not seem to link to a specific browser. All browsers have the same problem (over network: IE, FireFox and Chrome. And local on the Pi: Iceweasel)

Shall I try to create an diskimage from the SD card and send it to you?

[Edit] All was on a Raspberry Pi 2B

from octoprint-touchui.

satoer avatar satoer commented on May 18, 2024

You can download a complete diskimage here (1GB file):
http://we.tl/IGTT2m4W0b
It's a RAR compressed 16GB diskimage. I don't know how to shrink the filesystem after expanding it.

from octoprint-touchui.

satoer avatar satoer commented on May 18, 2024

I have found the exact reason what causes the bug!
Apparently if you disable “Access Control”, Octopi disables the user settings. So the TouchUI button “Open User settings” can’t access the User Settings. Also the top right menu in the TouchUI is malfunctioning by this. If you enable user settings by changing the config.yaml:

cd  ~/.octoprint
sudo nano config.yaml

change:

  enabled: true
...
server:
  firstRun: true

Than everything works fine and dandy.

from octoprint-touchui.

BillyBlaze avatar BillyBlaze commented on May 18, 2024

I was still trying to get your image on an 16gb sd but was failing miserly due to the larger size.

With this info I can easily reproduce the problem. I think I will make a dedicated modal and menu item for TouchUI so that your situation won't break the plugin 👍 I expect to release this, this weekend.

En uiteraard hartelijk bedankt voor alle info en voor het uitendelijk vinden van de oorzaak 😄

from octoprint-touchui.

satoer avatar satoer commented on May 18, 2024

En uiteraard hartelijk bedankt voor alle info en voor het uitendelijk vinden van de oorzaak

😳 WTF... haha, en ik maar mijn best doen het in begrijpelijk Engels te posten 😉

from octoprint-touchui.

BillyBlaze avatar BillyBlaze commented on May 18, 2024

Hehehe 😄 op deze manier begrijpt iedereen die het zelfde probleem heeft wat de oorzaak is. Bedankt.

I just released v0.2.0 and have add'd your suggestion, thanks alot for your feedback, if you experience any problems just add it to this ticket so I will reopen it!

from octoprint-touchui.

github-actions avatar github-actions commented on May 18, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

from octoprint-touchui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.