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

Feeds are not getting updated after suspend/resume #1517

Open
ValdikSS opened this issue Jan 17, 2022 · 9 comments
Open

Feeds are not getting updated after suspend/resume #1517

ValdikSS opened this issue Jan 17, 2022 · 9 comments

Comments

@ValdikSS
Copy link

ОС: Linux Fedora 35
Qt: 5.15.2
QuiteRSS: 0.19.4 (21.04.2020, Qt-5.15.2, SQLite-3.36.0, WebKit-602.1)

QuiteRSS перестаёт обновлять все RSS-ленты, если ноутбук отправить в сон и включить заново. Все фиды помечаются красным крестом «сломанного интернета», а прогресс-бар доходит до 100% очень быстро.

Программа не пытается открыть IPv4/IPv6-сокет (проверено через strace), но периодически открывает netlink-сокеты с флагом NETLINK_ROUTE. Подозреваю, что программа не получает информацию о работоспособности интернета, и думает, что его нет.

@ValdikSS
Copy link
Author

Полагаю, это https://bugreports.qt.io/browse/QTBUG-84907
@tieugene

@ValdikSS
Copy link
Author

@ValdikSS
Copy link
Author

Hrm, that's not https://bugreports.qt.io/browse/QTBUG-84907 and not a network availability related.
I've hacked up
mainApp->networkManager()->setNetworkAccessible(QNetworkAccessManager::Accessible);

in

QNetworkReply *NetworkManager::createRequest(QNetworkAccessManager::Operation op,

and in

void WebPage::populateNetworkRequest(QNetworkRequest &request)

and it still doesn't work. The feeds are not getting updated, the pictures and other resources inside the feed records are not getting loaded in the webview.
This seems like a regression of Qt5 in Fedora, since I don't remember such behavior on the previous distro version, Fedora 34.
Fedora syncs Qt5 code with KDE Neon, maybe the regression is there.
@tieugene

@ValdikSS ValdikSS changed the title Перестают обновляться фиды после выхода из режима сна Feeds are not getting updated after suspend/resume Jan 26, 2022
@jimgreen2013
Copy link

jimgreen2013 commented Mar 27, 2023

I'm suffering from the same bug, do you have any clues or solutions?

@jimgreen2013
Copy link

More info about this issue, error log

27.03.2023 10:44:50.276 WARNING: "Request failed: result = -1, error - The specified configuration cannot be used. (8), url - https://quiterss.org/en/rss.xml"

Maybe this has something to do with QNetworkAccessManager. See similar problems qutebrowser/qutebrowser#129

@ValdikSS
Copy link
Author

ValdikSS commented Jun 1, 2023

Probably the same Qt issue in crow-translate
crow-translate/crow-translate#383

@ValdikSS
Copy link
Author

ValdikSS commented Jun 1, 2023

Workaround:
Disable "networkbearer" plugin of Qt5
$ sudo mv /usr/lib64/qt5/plugins/bearer /usr/lib64/qt5/plugins/bearer.mv

Thanks to crow-translate/crow-translate#383 (comment)

@ValdikSS
Copy link
Author

Took some time to debug the issue.
https://bugreports.qt.io/browse/QTBUG-114666

Simpliest workaround: start the affected applications without the network, connect to the network later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants