Does qt 5.8 freeze during startup for you? #6381

Open
sledgehammer999 opened this Issue Feb 13, 2017 · 13 comments

Projects

None yet

5 participants

@sledgehammer999
Contributor

This is mainly for @qbittorrent/qbittorrent-frequent-contributors .
Also IIRC @Chocobo1 you build qt on Windows also, right? And @glassez I remember that you use Windows too, but I don't know if you use the prebuilt qt or not.

Anyway, here is my problem from today. I wanted to do v3.3.11 and I noticed that new zlib, openssl, boost, qt is out. So I started rebuilding my whole toolchain.
First problem: zlib 1.2.11 seems to crash qbt on start (and even every openssl test in nmake -f ms\nt.mak test). I changed back to 1.2.8 and it was fixed. But of course I had spent a good amount of time figuring out which lib was responsible.

Second problem and this is what I am more concerned about. During startup v3.3.10 build with qt 5.8 takes considerable more time than with 5.7.1. It may be up to a full 30secs startup with only ~35 torrents.
Unfortunately I was in a hurry and haven't tried openssl 1.0.2j and boost 1.62 which worked previously(and I need to recompile). I tried an older version of libtorrent but that isn't the missing piece of the puzzle.
So, while I am away I was wondering if someone else has faced this already and found a fix.

PS: I didn't have time to see in the debugger where it was frozen either.

@evsh
Contributor
evsh commented Feb 13, 2017

Gentoo Linux here: zlib 1.2.11, boost 1.63.0, openssl 1.0.2k, libttorrent 1.0.10, and Qt 5.8.0. Everyhing seems to be working fine, no start-up delay or other issues detected.

@glassez
Contributor
glassez commented Feb 13, 2017

@sledgehammer999, it was bad idea to change toolchain before release! Even if you had no problems with it that could have dire consequences when using the application.
I can't help you now since I still use Qt 5.7.1.
I'll try to install Qt 5.8 and test qBittorrent with it
soon.

@sledgehammer999
Contributor

I consistently find from the debugger that execution is stuck at bool success = httpServer_->listen(QHostAddress::Any, m_port);
webuip.cpp:83 (v3.3.10 source)

I'll do another compilation of 5.8, because I was fiddling around with the zlib/openssl problem and I might messed qt up. Otherwise, I'll rebuild 5.7.1.

@Chocobo1
Member

On Linux, Qt 5.8 and the latest libs works fine.
On Windows, I'm still stuck on Qt 5.7.1. I can't build Qt 5.8 without encountering a huge pile of errors, one after another...

@sledgehammer999
Contributor

I can't build Qt 5.8 without encountering a huge pile of errors, one after another...

Such as? If it is QtNetwork/openssl related then you just have to add at the end of the configure line OPENSSL_LIBS="-llibeay32 -lssleay32"

@sledgehammer999
Contributor

Small, update 5.7.1 works as expected. So I might do the release today.

@Chocobo1
Member

Such as?

complaining bison/flex not found (I'm with msvc2015...) and linker errors about some qt plugins not found whatsoever....

@sledgehammer999
Contributor

complaining bison/flex not found (I'm with msvc2015...) and linker errors about some qt plugins not found whatsoever....

I just hope you're using .zip source package. It is intended for Windows builds. The build system is tuned for that.

@glassez
Contributor
glassez commented Feb 14, 2017 edited

@sledgehammer999, there is my report:

I just updated my toolchain and rebuilt qBittorrent. At first glance, it works as usual.

Used libs and tools:
Qt-5.8 official win64 build for VS2015,
boost-1.63
zlib-1.2.11
libtorrent 1.1.1+gita07ffe4
openssl-1.0.2k precompiled win64 binaries from https://indy.fulgan.com/SSL

@sledgehammer999
Contributor
sledgehammer999 commented Feb 14, 2017 edited

Thanks for report. #6381 (comment) shows a possible issue with networking code(qt) and if true, it may manifest itself depending on hardware and configurations.

@glassez
Contributor
glassez commented Feb 15, 2017

Thanks for report. #6381 (comment) shows a possible issue with networking code(qt) and if true, it may manifest itself depending on hardware and configurations.

It may also show possible issue with some library you use...

@sledgehammer999
Contributor
sledgehammer999 commented Feb 19, 2017 edited

Another zlib 1.2.11 report in #6395

Sidenote: I am still on qt 5.7.1, since I can't figure out why qt 5.8 freezes. Only thing I know, it freezes if webui is enabled(in the line I posted above).

@nostalgicamigo

Sidenote: I am still on qt 5.7.1, since I can't figure out why qt 5.8 freezes. Only thing I know, it freezes if webui is enabled(in the line I posted above).

This new freeze in Qt 5.8 with webUI enabled happens to me if qB has a proxy enabled in the settings. In these conditions it freezes and does not start, but downgrading to 5.7.1 makes it work again.
The related issue I've mentioned is submitted aside here: #6349

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment