Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After closure and re-opening, Sailfin does not show content anymore #16

Open
Glotzon opened this issue Oct 14, 2021 · 7 comments
Open
Labels
bug Something isn't working platform:sailfishos Issues only on occuring SailfishOS

Comments

@Glotzon
Copy link

Glotzon commented Oct 14, 2021

Devices: Xperia X, XA2 Ultra, 10 Plus and 10 II
OS Version: SailfishOS 4.2.0.21
Sailfin Version: 0.4.0-1
Issue: After closure and re-opening, Sailfin does not show content anymore. The UI loads as expected, but no content shown.

Expected behaviour: Media is still shown and useable,

If there is any way I could contribute to fixing this issue. please let me know.

@HenkKalkwater
Copy link
Member

HenkKalkwater commented Oct 14, 2021 via email

@Glotzon
Copy link
Author

Glotzon commented Oct 16, 2021

Good guess, yes I do.

Sailfin seems to be the only viable options to have a Jellyfin Client on a perfectly good Xperia X, would be nice if that would work.

@HenkKalkwater HenkKalkwater added bug Something isn't working platform:sailfishos Issues only on occuring SailfishOS labels Oct 25, 2021
@HenkKalkwater
Copy link
Member

HenkKalkwater commented Oct 25, 2021

I've tested this and I can reproduce this in the SailfishOS version reliably, but not on the desktop. That either means that the SailfishOS QML side does something that it shouldn't do (like reloading ItemLoaders too fast) or that on SailfishOS there is a bug within the QNetworkAccessManager and related classes in the ancient version of Qt it uses, which is no longer present in Qt 5.15.

I'll look into this later.

@HenkKalkwater
Copy link
Member

Finally I can confirm that this is caused by a bug within the Qt version in SailfishOS, backporting this patch seems to solve it. Sadly, I'm afraid that I cannot contribute this back into Sailfish due to licensing issues with Qt versions above 5.6, but I'll ask around to be sure.

The workaround introduced in Sailfin 0.4.1, which waits 250ms before sending more HTTPS requests after the first, for me reduces the chance of an application freeze to 50% (from 100%). There should probably be a better way to prevent the application from freezing, such as by only allowing 1 HTTPS request to be active at the time, although this would potentially cause the application to load longer.

@HenkKalkwater
Copy link
Member

Pull-request-status: sailfishos/qtbase#11

@mbarashkov
Copy link

Hi @HenkKalkwater
In my tests of my Aurora OS fork of the app, I've found that it's the WebSocket which creates the issue.
Once I disable it (without creating critical loss of the functionality), it works all right.

HenkKalkwater added a commit that referenced this issue Jan 2, 2024
@HenkKalkwater
Copy link
Member

HenkKalkwater commented Jan 2, 2024

Thanks for your insight. Sadly, disabling the WebSocket is not an option with the recently merged remote control feature, but I can, in a very hacky way, delay the WebSocket initialisation by 5 seconds. This works as well (for me™), but may fail with slow network connections.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working platform:sailfishos Issues only on occuring SailfishOS
Projects
None yet
Development

No branches or pull requests

3 participants