Details
-
Bug
-
Resolution: Incomplete
-
P2: Important
-
None
-
4.6.3
-
Windows 7 + Qt Creator 1.3.1
Qt 4.6.2 and 4.6.3
QtMobility 1.0.0
Nokia E51 and E71
Description
Details:
An application uses BearerManagement (QNetworkConfiguration and QNetworkSession) to open network connection without user interaction. After connection has been established HTTP requests are sent to server.
----------------------------------------------------------------------------
Problem description:
If user terminates WLAN connection during the HTTP request the application crashes. I have tried to debug this problem on a code level but for me it seems that the bug exists in somewhere below. I have attached a simple example application that can be used to reproduce this issue. I have also been able to reproduce this problem without debugger using application that polls constantly the server. However, this requires very strict timing and therefore I recommend using breakpoints. Instructions:
1. Add your own WLAN access point
2. Add breakpoint on line "loop.exec(); // insert your breakpoint here"
3. Start debugger
4. When debugger hits the breakpoint close open WLAN connection
5. Continue (F5)
----------------------------------------------------------------------------
Output:
a. When using the host name (e.g. http://www.google.com:80) the application crashes after continuing from the breakpoint.
b. When using the IP address (e.g. http://74.125.79.147:80) the Qt Creator freezes after receiving huge amount of "[Qt Message] exception on 5 [will do setdefaultif(0) - hack]" messages.
Edit:
If it is possible someone could also try to repeat this using 3G or similar connection.
Attachments
Issue Links
- is replaced by
-
QTBUG-17196 crash on sudden bearer down (connection loss) during a QNetworkAccessManager download
- Closed