Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.5.0
-
None
Description
When switching networks, it crashes.
For example, when I first use a WiFi network and switch to a mobile hotspot network, there is a certain probability that this problem will occur.
My network program is simple after all, just set up an Udp server to listen for packets from network ports, that's all. I suspect that there may still be some message bugs in the Qt framework for the macOS network, rather than issues with my programming usage.
If you cannot solve the problem temporarily, do you have any programming suggestions?
Thread 1:: com.apple.NSEventThread
0 libsystem_kernel.dylib 0x1831221f4 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x183134b24 mach_msg2_internal + 80
2 libsystem_kernel.dylib 0x18312ae34 mach_msg_overwrite + 476
3 libsystem_kernel.dylib 0x183122578 mach_msg + 24
4 CoreFoundation 0x183242680 __CFRunLoopServiceMachPort + 160
5 CoreFoundation 0x183240f44 __CFRunLoopRun + 1208
6 CoreFoundation 0x183240434 CFRunLoopRunSpecific + 608
7 AppKit 0x186bca188 _NSEventThread + 144
8 libsystem_pthread.dylib 0x183162f94 _pthread_start + 136
9 libsystem_pthread.dylib 0x18315dd34 thread_start + 8
Thread 2 Crashed:: QThread
0 QtCore 0x1075b48e8 QRingBuffer::clear() + 24
1 QtNetwork 0x10530a448 0x10524c000 + 779336
2 QtCore 0x1074d4e68 QObject::event(QEvent*) + 612
3 QtWidgets 0x106318980 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 272
4 QtWidgets 0x1063197d4 QApplication::notify(QObject*, QEvent*) + 504
5 QtCore 0x107492404 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 292
6 QtCore 0x10749368c QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) + 1448
7 QtCore 0x1075ffc7c QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 84
8 QtCore 0x10749c0f0 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 540
9 QtCore 0x107572a50 QThread::exec() + 284
10 QtCore 0x107603fb4 0x107410000 + 2047924
11 libsystem_pthread.dylib 0x183162f94 _pthread_start + 136
12 libsystem_pthread.dylib 0x18315dd34 thread_start + 8
Thread 3:
0 libsystem_pthread.dylib 0x18315dd20 start_wqthread + 0