开云体育

Looping opening of help files on startup failure


 

This has been happening for a while, but when I start JMRI on my Pi with a startup error, JMRI tries to open a help page from /home/pi/JMRI/help - repeatedly

In fact it keeps trying to open files until I kill the browser window

There are no errors in the console

Just upgraded to 5.11.2 and it's still happening

Any clues anyone?

Phil G


 

Update:

It seems to loop between two pages

file:///home/pi/JMRI/help/en/package/apps/AppConfigPanelErrorPage.shtml

file:///home/pi/JMRI/help/en/index.shtml

Phil G

On 24/01/2025 15:22, Phil G via groups.io wrote:
This has been happening for a while, but when I start JMRI on my Pi with a startup error, JMRI tries to open a help page from /home/pi/JMRI/help - repeatedly

In fact it keeps trying to open files until I kill the browser window

There are no errors in the console

Just upgraded to 5.11.2 and it's still happening

Any clues anyone?

Phil G





 

Phil,

What is the "startup error"? Connection errors always trigger the help page.

Dave Sand

----- Original message -----
From: "Phil G via groups.io" <phil@...>
To: "[email protected]" <[email protected]>
Subject: [jmriusers] Looping opening of help files on startup failure
Date: Friday, January 24, 2025 9:22 AM

This has been happening for a while, but when I start JMRI on my Pi with
a startup error, JMRI tries to open a help page from /home/pi/JMRI/help
- repeatedly

In fact it keeps trying to open files until I kill the browser window

There are no errors in the console

Just upgraded to 5.11.2 and it's still happening

Any clues anyone?

Phil G


 

It was a connection error

It’s not the triggering of the help page that’s the problem though

It tries to open the first of the links I posted, then the second one, then the first one again, then the second one. As never stops

Phil G

On 24 Jan 2025, at 15:42, Dave Sand via groups.io <ds@...> wrote:

?Phil,

What is the "startup error"? Connection errors always trigger the help page.

Dave Sand



----- Original message -----
From: "Phil G via groups.io" <phil@...>
To: "[email protected]" <[email protected]>
Subject: [jmriusers] Looping opening of help files on startup failure
Date: Friday, January 24, 2025 9:22 AM

This has been happening for a while, but when I start JMRI on my Pi with
a startup error, JMRI tries to open a help page from /home/pi/JMRI/help
- repeatedly

In fact it keeps trying to open files until I kill the browser window

There are no errors in the console

Just upgraded to 5.11.2 and it's still happening

Any clues anyone?

Phil G











 

Phil,
I can duplicate it simply by opening FireFox on the RPi and pasting your first link.
file:///home/pi/JMRI/help/en/package/apps/AppConfigPanelErrorPage.shtml
Then new tabs are opened repeatedly until I close the browser.
--SteveT


 

Actually, it seems that opening ANY of the .shtml files as a "file://" URL causes this looping. Looking for an .html file to test now.


 

开云体育

I just renamed one of the shtml files to html. Now it opens just fine

Is this issue unique to RasPi?? ?Haven’t had chance to check it on Win10 yet

Phil G

On 24 Jan 2025, at 16:20, Steve Todd via groups.io <mstevetodd@...> wrote:

?
Actually, it seems that opening ANY of the .shtml files as a "file://" URL causes this looping. Looking for an .html file to test now.


 

开云体育

More testing
I installed Chromium on my Pi

This doesn’t recursively open shtml files

Maybe Firefox is the problem??

Phil G

On 24 Jan 2025, at 21:32, Phil G via groups.io <phil@...> wrote:

? I just renamed one of the shtml files to html. Now it opens just fine

Is this issue unique to RasPi?? ?Haven’t had chance to check it on Win10 yet

Phil G

On 24 Jan 2025, at 16:20, Steve Todd via groups.io <mstevetodd@...> wrote:

?
Actually, it seems that opening ANY of the .shtml files as a "file://" URL causes this looping. Looking for an .html file to test now.


 

Seems to be a bug in firefox for Linux:

(I can confirm it on my desktop machine)

Heiko

On 1/24/25 22:40, Phil G via groups.io wrote:
More testing
I installed Chromium on my Pi
This doesn’t recursively open shtml files
Maybe Firefox is the problem??
Phil G

On 24 Jan 2025, at 21:32, Phil G via groups.io <phil@...> wrote:

? I just renamed one of the shtml files to html. Now it opens just fine

Is this issue unique to RasPi?? ?Haven’t had chance to check it on Win10 yet

Phil G

On 24 Jan 2025, at 16:20, Steve Todd via groups.io <mstevetodd@...> wrote:

?
Actually, it seems that opening ANY of the .shtml files as a "file://" URL causes this looping. Looking for an .html file to test now.
--
eMails verschlüsseln mit PGP - privacy is your right!
Mein PGP-Key zur Verifizierung:


 

开云体育

Thanks Heidi

Known for a while but still not fixed it seems

Also noted “?also, I don't think it's mentioned in this report that the Downloads directory ends up containing a .part file for every tab opened“ - I’ve been wondering where those fragments came from!

Phil G

On 24 Jan 2025, at 22:18, Heiko Rosemann via groups.io <heiko.rosemann@...> wrote:

?Seems to be a bug in firefox for Linux: https://bugzilla.mozilla.org/show_bug.cgi?id=1885804

(I can confirm it on my desktop machine)

Heiko

On 1/24/25 22:40, Phil G via groups.io wrote:
More testing
I installed Chromium on my Pi
This doesn’t recursively open shtml files
Maybe Firefox is the problem??
Phil G
On 24 Jan 2025, at 21:32, Phil G via groups.io <phil@...> wrote:

? I just renamed one of the shtml files to html. Now it opens just fine

Is this issue unique to RasPi?? ?Haven’t had chance to check it on Win10 yet

Phil G

On 24 Jan 2025, at 16:20, Steve Todd via groups.io <mstevetodd@...> wrote:

?
Actually, it seems that opening ANY of the .shtml files as a "file://" URL causes this looping. Looking for an .html file to test now.


--
eMails verschlüsseln mit PGP - privacy is your right!
Mein PGP-Key zur Verifizierung: http://pgp.mit.edu






<OpenPGP_signature.asc>


 

On Fri, Jan 24, 2025 at 02:18 PM, Heiko Rosemann wrote:
Seems to be a bug in firefox for Linux
Thanks Heiko, for finding that! For my image, I have now removed FireFox and installed Chromium.
--SteveT
?


 

开云体育

Ditto

On 25 Jan 2025, at 16:11, Steve Todd via groups.io <mstevetodd@...> wrote:

?
On Fri, Jan 24, 2025 at 02:18 PM, Heiko Rosemann wrote:
Seems to be a bug in firefox for Linux
Thanks Heiko, for finding that! For my image, I have now removed FireFox and installed Chromium.
--SteveT
?


 

开云体育

If anyone else is suffering with this, some helpful info from the Firefox community

“?If you add a line to?.mime.types?(note leading?.) in your user home directory (you may need to create the file) that simply reads:
text/html html htm shtml

and save it, then restart Firefox for good measure, does the problem go away (ie the file just gets opened inside Firefox immediately)?

Firefox consults this file first, if it exists (but it may not, by default). If it doesn't, it?, specifically??via?g_content_type_guess. In the broken environment I found, gtk says that the mimetype of the file is?application/x-extension-shtml, which Firefox thinks it doesn't know anything about and hands to the OS, which presumably does a check with?file?or something that cares more about the file's contents and finds?text/html, which it hands back to Firefox, etc.

This does indeed resolve the issue for me

Phil G



On 24 Jan 2025, at 22:18, Heiko Rosemann via groups.io <heiko.rosemann@...> wrote:

?Seems to be a bug in firefox for Linux: https://bugzilla.mozilla.org/show_bug.cgi?id=1885804

(I can confirm it on my desktop machine)

Heiko

On 1/24/25 22:40, Phil G via groups.io wrote:
More testing
I installed Chromium on my Pi
This doesn’t recursively open shtml files
Maybe Firefox is the problem??
Phil G
On 24 Jan 2025, at 21:32, Phil G via groups.io <phil@...> wrote:

? I just renamed one of the shtml files to html. Now it opens just fine

Is this issue unique to RasPi?? ?Haven’t had chance to check it on Win10 yet

Phil G

On 24 Jan 2025, at 16:20, Steve Todd via groups.io <mstevetodd@...> wrote:

?
Actually, it seems that opening ANY of the .shtml files as a "file://" URL causes this looping. Looking for an .html file to test now.


--
eMails verschlüsseln mit PGP - privacy is your right!
Mein PGP-Key zur Verifizierung: http://pgp.mit.edu






<OpenPGP_signature.asc>