jneilliii / OctoPrint-M117SpeechSynthesis

5 stars 1 forks source link

voices missing after "upgrade" to firefox 108 #19

Closed rebeltaz closed 1 year ago

rebeltaz commented 1 year ago

I'm sorry, and I know that this isn't an issue with your code, but I thought maybe you might could help. I upgraded from Ubuntu 18.04 to 22.04 and when I did, the OS took it upon itself to also update firefox to 108. When it did, among other issues, the voices are now missing in the M117 plugin settings. Would you happen to know how I can fix that? I appreciate it.

jneilliii commented 1 year ago

Can you open the developer tools of firefox and on the console tab do you get any errors when first loading the page?

rebeltaz commented 1 year ago

This is what I get in the console tab:

This page uses the non standard property “zoom”. Consider using calc() in the relevant property values, or using “transform” along with “transform-origin: 0 0”. octopi.local Password fields present on an insecure (http://) page. This is a security risk that allows user login credentials to be stolen. octopi.local Password fields present on an insecure (http://) page. This is a security risk that allows user login credentials to be stolen. 4 octopi.local HTTP “Content-Type” of “text/html” is not supported. Load of media resource http://octopi.local/ failed. octopi.local Create PrettyGCode View Model packed_plugins.js:2985:21 Starting dependency resolution... packed_core.js:1305:521 ... dependency resolution done packed_core.js:1318:5 Initial application setup done, connecting to server... packed_core.js:1341:867 Use of drawWindow method from CanvasRenderingContext2D is deprecated. Use tabs.captureTab extensions API instead https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/tabs/captureTab pagedata-script.js:1:12439 Connected to the server packed_core.js:1136:456 Triggering connect on all view models packed_core.js:1141:240 Server (re)connect processed packed_core.js:1143:5 Finalizing application startup packed_core.js:1341:243 Cannot play media. No decoders for requested formats: text/html octopi.local Going to bind 49 view models... packed_core.js:1322:39 Did not bind view model BackupViewModel to target #wizard_plugin_backup since it does not exist packed_core.js:1334:44 Did not bind view model UsageViewModel to target #wizard_plugin_tracking since it does not exist packed_core.js:1334:44 Did not bind view model MarlinFlasherViewModel to target #wizard_plugin_marlin_flasher since it does not exist packed_core.js:1334:44 Did not bind view model SoftwareUpdateViewModel to target #softwareupdate_confirmation_dialog since it does not exist packed_core.js:1334:44 Did not bind view model SoftwareUpdateViewModel to target #wizard_plugin_softwareupdate_update since it does not exist packed_core.js:1334:44 Did not bind view model SoftwareUpdateViewModel to target #wizard_plugin_softwareupdate_settings since it does not exist packed_core.js:1334:44 onAfterBinding packed_plugins.js:3506:29 User rebeltaz logged in packed_core.js:229:614 Calling OctoPrintClient.getRequestHeaders with additional headers as the first parameter is deprecated. Please consult the docs about the current signature and adjust your code accordingly. 2 packed_client.js:8:467 ... binding done packed_core.js:1339:150 Application startup complete packed_core.js:1339:442 Calling OctoPrintClient.getRequestHeaders with additional headers as the first parameter is deprecated. Please consult the docs about the current signature and adjust your code accordingly. packed_client.js:8:467 material1 packed_plugins.js:872:29 S packed_plugins.js:873:29 material2 packed_plugins.js:872:29 S packed_plugins.js:873:29 The resource at “http://octopi.local/static/vendor/font-awesome-5.15.1/webfonts/fa-brands-400.woff2” preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly. octopi.local The resource at “http://octopi.local/static/vendor/font-awesome-5.15.1/webfonts/fa-regular-400.woff2” preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly. octopi.local The resource at “http://octopi.local/static/vendor/font-awesome-5.15.1/webfonts/fa-solid-900.woff2” preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly. octopi.local The resource at “http://octopi.local/static/vendor/font-awesome-3.2.1/fonts/fontawesome-webfont.woff” preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly. octopi.local

jneilliii commented 1 year ago

yeah, nothing specific there related to this plugin. I just checked on my windows machine in firefox 108 and I do get a list of voices. curious, do you get a list in the pull-down on this demo page? Found it looking an older issue here that may indicate some potential linux side fixes as well.

rebeltaz commented 1 year ago

OK... so, I don't get anything on that page, either. I double checked - because the "upgrade" script did delete a LOT of things I didn't want deleted, but espeak, festival and speech-dispatcher are all still installed and espeak is working when invoked from the command line.

rebeltaz commented 1 year ago

I don't suppose you've had any ideas on this, have you?

jneilliii commented 1 year ago

I haven't, and not sure much where to look. There are more linux savvy users in the OctoPrint discord that may have some ideas. I just don't have the setup to troubleshoot/debug.

rebeltaz commented 1 year ago

I don't have discord, but I appreciate it anyway.

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had activity in 14 days. It will be closed if no further activity occurs in 7 days

rebeltaz commented 1 year ago

I finally got a response from someone on mozilla I thought might interest you...

https://support.mozilla.org/en-US/kb/mozilla-voice-server-proxy-retiring

I don't think that that's the issue, though. I removed the snap installed version of Firefox and installed Firefox using Mozilla's PPA instead. the snap version is run in a sandbox and that was causing issues with other software as well. I THINK that that is the issue with the speech because that demo page you linked me to does have voices in the drop down now, but... OctoPrint is hanging while it's loading, so I can't get to the preferences to see if your plugin has the voices listed. More troubleshooting to do :roll_eyes: but I wanted to let you know what I found - the sandboxing, I think. Anyway... I appreciate all your help!

jneilliii commented 1 year ago

thanks for the update, relative to the loading issue, have browser's developer tools open when loading the page and see if any errors pop-up in the console.

rebeltaz commented 1 year ago

OK... so I have determined that it is your plugin causing the hangup. I disabled every plugin, restarted and re-enabled each plugin one by one until the page hung. The m117 plugin was the one that caused it. When I reloaded the page, this was the output in console:

Password fields present on an insecure (http://) page. This is a security risk that allows user login credentials to be stolen. octopi.local
This page uses the non standard property “zoom”. Consider using calc() in the relevant property values, or using “transform” along with “transform-origin: 0 0”. octopi.local
Password fields present on an insecure (http://) page. This is a security risk that allows user login credentials to be stolen. 4 octopi.local
HTTP “Content-Type” of “text/html” is not supported. Load of media resource http://octopi.local/ failed. octopi.local
Starting dependency resolution... packed_core.js:1305:521
... dependency resolution done packed_core.js:1318:5
Initial application setup done, connecting to server... packed_core.js:1341:867
Source map error: Error: NetworkError when attempting to fetch resource.
Resource URL: moz-extension://a4869ecd-9b44-4e91-bd55-88d687b6eabb/model/static/DOMPurify/purify.min.js
Source Map URL: purify.min.js.map
Cannot play media. No decoders for requested formats: text/html octopi.local
Connected to the server packed_core.js:1136:456
Triggering connect on all view models packed_core.js:1141:240
Server (re)connect processed packed_core.js:1143:5
Finalizing application startup packed_core.js:1341:243
Going to bind 45 view models... packed_core.js:1322:39
Did not bind view model BackupViewModel to target #wizard_plugin_backup since it does not exist packed_core.js:1334:44
Did not bind view model UsageViewModel to target #wizard_plugin_tracking since it does not exist packed_core.js:1334:44
Did not bind view model MarlinFlasherViewModel to target #wizard_plugin_marlin_flasher since it does not exist packed_core.js:1334:44
Did not bind view model SoftwareUpdateViewModel to target #softwareupdate_confirmation_dialog since it does not exist packed_core.js:1334:44
Did not bind view model SoftwareUpdateViewModel to target #wizard_plugin_softwareupdate_update since it does not exist packed_core.js:1334:44
Did not bind view model SoftwareUpdateViewModel to target #wizard_plugin_softwareupdate_settings since it does not exist packed_core.js:1334:44
User rebeltaz logged in packed_core.js:229:614
Calling OctoPrintClient.getRequestHeaders with additional headers as the first parameter is deprecated. Please consult the docs about the current signature and adjust your code accordingly. 2 packed_client.js:8:467
... binding done packed_core.js:1339:150
Application startup complete packed_core.js:1339:442
The resource at “http://octopi.local/static/vendor/font-awesome-5.15.1/webfonts/fa-brands-400.woff2” preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly. octopi.local
The resource at “http://octopi.local/static/vendor/font-awesome-5.15.1/webfonts/fa-regular-400.woff2” preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly. octopi.local
The resource at “http://octopi.local/static/vendor/font-awesome-5.15.1/webfonts/fa-solid-900.woff2” preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly. octopi.local
The resource at “http://octopi.local/static/vendor/font-awesome-3.2.1/fonts/fontawesome-webfont.woff” preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly. octopi.local
material1 packed_plugins.js:741:29
S packed_plugins.js:742:29
material2 packed_plugins.js:741:29
S packed_plugins.js:742:29
Calling OctoPrintClient.getRequestHeaders with additional headers as the first parameter is deprecated. Please consult the docs about the current signature and adjust your code accordingly. packed_client.js:8:467

It processed up to "Application startup complete packed_core.js:1339:442" and that was were it hung. After a minute or two, the page resumed loading and the rest of the log was displayed. I was then able to go to the settings for the m117 plugin and the voices are in fact shown and work as expected.

Hopefully, this helps.

jneilliii commented 1 year ago

Resource URL: moz-extension://a4869ecd-9b44-4e91-bd55-88d687b6eabb/model/static/DOMPurify/purify.min.js

can you try in a new private window for me and see if it's the same. I'm curious if an extension is interfering somehow.

rebeltaz commented 1 year ago

Sure. It did the same thing:

Password fields present on an insecure (http://) page. This is a security risk that allows user login credentials to be stolen. octopi.local
This page uses the non standard property “zoom”. Consider using calc() in the relevant property values, or using “transform” along with “transform-origin: 0 0”. octopi.local
Password fields present on an insecure (http://) page. This is a security risk that allows user login credentials to be stolen. 4 octopi.local
Invalid URI. Load of media resource  failed. octopi.local
Starting dependency resolution... packed_core.js:1305:521
... dependency resolution done packed_core.js:1318:5
Initial application setup done, connecting to server... packed_core.js:1341:867
Connected to the server packed_core.js:1136:456
Triggering connect on all view models packed_core.js:1141:240
Server (re)connect processed packed_core.js:1143:5
Finalizing application startup packed_core.js:1341:243
Going to bind 45 view models... packed_core.js:1322:39
Did not bind view model BackupViewModel to target #wizard_plugin_backup since it does not exist packed_core.js:1334:44
Did not bind view model UsageViewModel to target #wizard_plugin_tracking since it does not exist packed_core.js:1334:44
Did not bind view model MarlinFlasherViewModel to target #wizard_plugin_marlin_flasher since it does not exist packed_core.js:1334:44
Did not bind view model SoftwareUpdateViewModel to target #softwareupdate_confirmation_dialog since it does not exist packed_core.js:1334:44
Did not bind view model SoftwareUpdateViewModel to target #wizard_plugin_softwareupdate_update since it does not exist packed_core.js:1334:44
Did not bind view model SoftwareUpdateViewModel to target #wizard_plugin_softwareupdate_settings since it does not exist packed_core.js:1334:44
User rebeltaz logged in packed_core.js:229:614
Login mechanism: http packed_core.js:234:35
Calling OctoPrintClient.getRequestHeaders with additional headers as the first parameter is deprecated. Please consult the docs about the current signature and adjust your code accordingly. 2 packed_client.js:8:467
... binding done packed_core.js:1339:150
Application startup complete packed_core.js:1339:442
material1 packed_plugins.js:741:29
S packed_plugins.js:742:29
material2 packed_plugins.js:741:29
S packed_plugins.js:742:29
The resource at “http://octopi.local/static/vendor/font-awesome-5.15.1/webfonts/fa-brands-400.woff2” preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly. octopi.local
The resource at “http://octopi.local/static/vendor/font-awesome-5.15.1/webfonts/fa-regular-400.woff2” preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly. octopi.local
The resource at “http://octopi.local/static/vendor/font-awesome-5.15.1/webfonts/fa-solid-900.woff2” preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly. octopi.local
The resource at “http://octopi.local/static/vendor/font-awesome-3.2.1/fonts/fontawesome-webfont.woff” preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly. octopi.local
Calling OctoPrintClient.getRequestHeaders with additional headers as the first parameter is deprecated. Please consult the docs about the current signature and adjust your code accordingly. packed_client.js:8:467
jneilliii commented 1 year ago

thanks, now I'm wondering what this bit is....

material1 packed_plugin.js:741:29 S packed_plugins.js:742:29 material2 packed_plugins.js:741:29 S packed_plugins.js:742:29

are you using a custom theme in Firefox?

rebeltaz commented 1 year ago

I am using the Dark Reader theme. To completely take every customization out of the equation, I ran Firefox in "Troubleshooting Mode" and tried again. Same results... almost. Oddly enough, when I first loaded OctoPi, the page came up fine but I didn't have Developer Tools turned on. So I turned that on and reloaded the page only for it to hang for a few minutes again, just as before:

Uncaught TypeError: errors is undefined
    showErrors http://octopi.local/static/webassets/packed_plugins.js?c0690405:1125
    MarlinFlasherViewModel http://octopi.local/static/webassets/packed_plugins.js?c0690405:1307
    c http://octopi.local/static/webassets/packed_libs.js?7111420c:13
    fireWith http://octopi.local/static/webassets/packed_libs.js?7111420c:13
    l http://octopi.local/static/webassets/packed_libs.js?7111420c:13
    o http://octopi.local/static/webassets/packed_libs.js?7111420c:13
packed_plugins.js:1125:25
downloadable font: download failed (font-family: "Font Awesome 5 Brands" style:normal weight:400 stretch:100 src index:1): status=2152398850 source: http://octopi.local/plugin/eeprom_marlin/static/webfonts/fa-brands-400.woff2
downloadable font: download failed (font-family: "FontAwesome3" style:normal weight:400 stretch:100 src index:1): status=2152398850 source: http://octopi.local/static/vendor/font-awesome-3.2.1/fonts/fontawesome-webfont.woff?v=3.2.1
downloadable font: download failed (font-family: "Font Awesome 5 Free" style:normal weight:400 stretch:100 src index:1): status=2152398850 source: http://octopi.local/plugin/eeprom_marlin/static/webfonts/fa-regular-400.woff2
This page uses the non standard property “zoom”. Consider using calc() in the relevant property values, or using “transform” along with “transform-origin: 0 0”. octopi.local
Password fields present on an insecure (http://) page. This is a security risk that allows user login credentials to be stolen. 5 octopi.local
HTTP “Content-Type” of “text/html” is not supported. Load of media resource http://octopi.local/? failed. octopi.local
Starting dependency resolution... packed_core.js:1305:521
... dependency resolution done packed_core.js:1318:5
Initial application setup done, connecting to server... packed_core.js:1341:867
Connected to the server packed_core.js:1136:456
Triggering connect on all view models packed_core.js:1141:240
Server (re)connect processed packed_core.js:1143:5
Finalizing application startup packed_core.js:1341:243
Cannot play media. No decoders for requested formats: text/html octopi.local
Going to bind 45 view models... packed_core.js:1322:39
Did not bind view model BackupViewModel to target #wizard_plugin_backup since it does not exist packed_core.js:1334:44
Did not bind view model UsageViewModel to target #wizard_plugin_tracking since it does not exist packed_core.js:1334:44
Did not bind view model MarlinFlasherViewModel to target #wizard_plugin_marlin_flasher since it does not exist packed_core.js:1334:44
Did not bind view model SoftwareUpdateViewModel to target #softwareupdate_confirmation_dialog since it does not exist packed_core.js:1334:44
Did not bind view model SoftwareUpdateViewModel to target #wizard_plugin_softwareupdate_update since it does not exist packed_core.js:1334:44
Did not bind view model SoftwareUpdateViewModel to target #wizard_plugin_softwareupdate_settings since it does not exist packed_core.js:1334:44
User rebeltaz logged in packed_core.js:229:614
Calling OctoPrintClient.getRequestHeaders with additional headers as the first parameter is deprecated. Please consult the docs about the current signature and adjust your code accordingly. packed_client.js:8:467
Calling OctoPrintClient.getRequestHeaders with additional headers as the first parameter is deprecated. Please consult the docs about the current signature and adjust your code accordingly. packed_client.js:8:467
... binding done packed_core.js:1339:150
Application startup complete packed_core.js:1339:442
material1 packed_plugins.js:741:29
S packed_plugins.js:742:29
material2 packed_plugins.js:741:29
S packed_plugins.js:742:29
The resource at “http://octopi.local/static/vendor/font-awesome-5.15.1/webfonts/fa-brands-400.woff2” preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly. octopi.local
The resource at “http://octopi.local/static/vendor/font-awesome-5.15.1/webfonts/fa-regular-400.woff2” preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly. octopi.local
The resource at “http://octopi.local/static/vendor/font-awesome-5.15.1/webfonts/fa-solid-900.woff2” preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly. octopi.local
The resource at “http://octopi.local/static/vendor/font-awesome-3.2.1/fonts/fontawesome-webfont.woff” preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly. octopi.local
Calling OctoPrintClient.getRequestHeaders with additional headers as the first parameter is deprecated. Please consult the docs about the current signature and adjust your code accordingly. packed_client.js:8:467

I tried again, both with and without Developer Tools turned on and it hangs every time. Weird.

rebeltaz commented 1 year ago

I've been playing around with this and I've found an interesting tidbit. The first time I load octopi.local in Firefox, it loads and works great. Every time after that, though, it hangs ... until I shut down Firefox and reload Firefox. Then, once again, the first time is fine.

In case it matters, I captured the console log on a fresh load (that works):


The resource at “https://duckduckgo.com/font/ProximaNova-ExtraBold-webfont.woff2” preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly. duckduckgo.com
Invalid URI. Load of media resource  failed. octopi.local
Password fields present on an insecure (http://) page. This is a security risk that allows user login credentials to be stolen. 5 octopi.local
This page uses the non standard property “zoom”. Consider using calc() in the relevant property values, or using “transform” along with “transform-origin: 0 0”. octopi.local
Starting dependency resolution... packed_core.js:1305:521
... dependency resolution done packed_core.js:1318:5
Initial application setup done, connecting to server... packed_core.js:1341:867
Connected to the server packed_core.js:1136:456
Triggering connect on all view models packed_core.js:1141:240
Server (re)connect processed packed_core.js:1143:5
Finalizing application startup packed_core.js:1341:243
Going to bind 45 view models... packed_core.js:1322:39
Did not bind view model BackupViewModel to target #wizard_plugin_backup since it does not exist packed_core.js:1334:44
Did not bind view model UsageViewModel to target #wizard_plugin_tracking since it does not exist packed_core.js:1334:44
Did not bind view model MarlinFlasherViewModel to target #wizard_plugin_marlin_flasher since it does not exist packed_core.js:1334:44
Did not bind view model SoftwareUpdateViewModel to target #softwareupdate_confirmation_dialog since it does not exist packed_core.js:1334:44
Did not bind view model SoftwareUpdateViewModel to target #wizard_plugin_softwareupdate_update since it does not exist packed_core.js:1334:44
Did not bind view model SoftwareUpdateViewModel to target #wizard_plugin_softwareupdate_settings since it does not exist packed_core.js:1334:44
User rebeltaz logged in packed_core.js:229:614
Calling OctoPrintClient.getRequestHeaders with additional headers as the first parameter is deprecated. Please consult the docs about the current signature and adjust your code accordingly. 2 packed_client.js:8:467
... binding done packed_core.js:1339:150
Application startup complete packed_core.js:1339:442
Calling OctoPrintClient.getRequestHeaders with additional headers as the first parameter is deprecated. Please consult the docs about the current signature and adjust your code accordingly. packed_client.js:8:467
material1 packed_plugins.js:741:29
S packed_plugins.js:742:29
material2 packed_plugins.js:741:29
S packed_plugins.js:742:29
The resource at “http://octopi.local/static/vendor/font-awesome-5.15.1/webfonts/fa-brands-400.woff2” preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly. octopi.local
The resource at “http://octopi.local/static/vendor/font-awesome-5.15.1/webfonts/fa-regular-400.woff2” preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly. octopi.local
The resource at “http://octopi.local/static/vendor/font-awesome-5.15.1/webfonts/fa-solid-900.woff2” preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly. octopi.local
The resource at “http://octopi.local/static/vendor/font-awesome-3.2.1/fonts/fontawesome-webfont.woff” preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly. octopi.local
jneilliii commented 1 year ago

Huh, try disabling duck duck go and see if it's the same.

rebeltaz commented 1 year ago

Huh, try disabling duck duck go and see if it's the same.

Disabling duck duck go? I only have that set as my home page. Do you mean change that?

jneilliii commented 1 year ago

Just saw that it was showing in your console log above so thought you had the extension installed. I know it's caused slowness with some of my other plugins using plotly and was thinking it might be similar.

rebeltaz commented 1 year ago

I'll check tonight and make sure it didn't get installed by accident, but it shouldn't be.

rebeltaz commented 1 year ago

Yeah, I didn't think so. I don't know why that log showed that unless I just happened to be on tat page when I loaded OctoPi that particular time.

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had activity in 14 days. It will be closed if no further activity occurs in 7 days