nanovna-v2/NanoVNA-QT

Crash on load or apply calibraiton data

mishka-zz opened this issue · 1 comments

Hi,

NanoVNA-QT release 20200507 for macOS started to crash on any attempt to load calibration files, or apply calibration data. Previously worked just fine. Device is NanoVNA v2.2, firmware 20200507.

Any suggestion on how to fix that will be very much appreciated.

--
Mishka

The report:

Process:               vna_qt [854]
Path:                  /Applications/vna_qt.app/Contents/MacOS/vna_qt
Identifier:            com.yourcompany.vna-qt
Version:               0
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           vna_qt [854]
User ID:               501

Date/Time:             2020-09-17 04:34:16.542 +0300
OS Version:            Mac OS X 10.13.6 (17G14019)
Report Version:        12
Anonymous UUID:        9EEA7EAC-8989-B8FA-44E1-79ECEA134C01


Time Awake Since Boot: 1800 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Application Specific Information:
Assertion failed: (!values.empty()), function interpolate, file ./touchstone.H, line 16.
 

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	0x00007fff7ac70b66 __pthread_kill + 10
1   libsystem_pthread.dylib       	0x00007fff7ae3b080 pthread_kill + 333
2   libsystem_c.dylib             	0x00007fff7abcc1ae abort + 127
3   libsystem_c.dylib             	0x00007fff7ab941ac __assert_rtn + 320
4   com.yourcompany.vna-qt        	0x000000010e4b7bf8 0x10e4a5000 + 76792
5   com.yourcompany.vna-qt        	0x000000010e4b5e9b MainWindow::on_b_apply_clicked() + 1563
6   com.yourcompany.vna-qt        	0x000000010e4b4f85 MainWindow::loadCalibration(QString) + 1141
7   com.yourcompany.vna-qt        	0x000000010e4c41de 0x10e4a5000 + 127454
8   org.qt-project.QtCore         	0x000000010f537f7b QMetaObject::activate(QObject*, int, int, void**) + 2347
9   org.qt-project.QtWidgets      	0x000000010e868d35 QAction::activate(QAction::ActionEvent) + 309
10  org.qt-project.QtCore         	0x000000010f530454 QObject::event(QEvent*) + 788
11  org.qt-project.QtWidgets      	0x000000010e868bea QAction::event(QEvent*) + 234
12  org.qt-project.QtWidgets      	0x000000010e872752 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 306
13  org.qt-project.QtWidgets      	0x000000010e873a6f QApplication::notify(QObject*, QEvent*) + 383
14  org.qt-project.QtCore         	0x000000010f506f7f QCoreApplication::notifyInternal2(QObject*, QEvent*) + 159
15  org.qt-project.QtCore         	0x000000010f508152 QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) + 850
16  libqcocoa.dylib               	0x00000001113a9cfe 0x111380000 + 171262
17  libqcocoa.dylib               	0x00000001113aa5b1 0x111380000 + 173489
18  com.apple.CoreFoundation      	0x00007fff52b23b01 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
19  com.apple.CoreFoundation      	0x00007fff52bdbe5c __CFRunLoopDoSource0 + 108
20  com.apple.CoreFoundation      	0x00007fff52b06b0c __CFRunLoopDoSources0 + 300
21  com.apple.CoreFoundation      	0x00007fff52b05f2d __CFRunLoopRun + 1293
22  com.apple.CoreFoundation      	0x00007fff52b05787 CFRunLoopRunSpecific + 487
23  com.apple.HIToolbox           	0x00007fff51de5d96 RunCurrentEventLoopInMode + 286
24  com.apple.HIToolbox           	0x00007fff51de5a0f ReceiveNextEventCommon + 366
25  com.apple.HIToolbox           	0x00007fff51de5884 _BlockUntilNextEventMatchingListInModeWithFilter + 64
26  com.apple.AppKit              	0x00007fff50092a3b _DPSNextEvent + 2085
27  com.apple.AppKit              	0x00007fff50828e34 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 3044
28  com.apple.AppKit              	0x00007fff5008784d -[NSApplication run] + 764
29  libqcocoa.dylib               	0x00000001113a93ad 0x111380000 + 168877
30  org.qt-project.QtCore         	0x000000010f502a72 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 418
31  org.qt-project.QtCore         	0x000000010f507692 QCoreApplication::exec() + 402
32  com.yourcompany.vna-qt        	0x000000010e4c7bcf main + 1199
33  libdyld.dylib                 	0x00007fff7ab20015 start + 1

Thread 1:
0   libsystem_kernel.dylib        	0x00007fff7ac7128a __workq_kernreturn + 10
1   libsystem_pthread.dylib       	0x00007fff7ae3820e _pthread_wqthread + 1552
2   libsystem_pthread.dylib       	0x00007fff7ae37be9 start_wqthread + 13

Thread 2:
0   libsystem_kernel.dylib        	0x00007fff7ac7128a __workq_kernreturn + 10
1   libsystem_pthread.dylib       	0x00007fff7ae3820e _pthread_wqthread + 1552
2   libsystem_pthread.dylib       	0x00007fff7ae37be9 start_wqthread + 13

Thread 3:: com.apple.NSEventThread
0   libsystem_kernel.dylib        	0x00007fff7ac671fa mach_msg_trap + 10
1   libsystem_kernel.dylib        	0x00007fff7ac66714 mach_msg + 60
2   com.apple.CoreFoundation      	0x00007fff52b06dc5 __CFRunLoopServiceMachPort + 341
3   com.apple.CoreFoundation      	0x00007fff52b06117 __CFRunLoopRun + 1783
4   com.apple.CoreFoundation      	0x00007fff52b05787 CFRunLoopRunSpecific + 487
5   com.apple.AppKit              	0x00007fff501cffc4 _NSEventThread + 184
6   libsystem_pthread.dylib       	0x00007fff7ae38661 _pthread_body + 340
7   libsystem_pthread.dylib       	0x00007fff7ae3850d _pthread_start + 377
8   libsystem_pthread.dylib       	0x00007fff7ae37bf9 thread_start + 13

Thread 4:
0   libsystem_pthread.dylib       	0x00007fff7ae37bdc start_wqthread + 0
1   ???                           	0x0006000100020004 0 + 1688854155362308

Thread 5:
0   libsystem_pthread.dylib       	0x00007fff7ae37bdc start_wqthread + 0
1   ???                           	0x0000000100000038 0 + 4294967352

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000000  rbx: 0x00007fffb320c380  rcx: 0x00007ffee1758808  rdx: 0x0000000000000000
  rdi: 0x0000000000000307  rsi: 0x0000000000000006  rbp: 0x00007ffee1758840  rsp: 0x00007ffee1758808
   r8: 0x0000000000000000   r9: 0x0000000000000000  r10: 0x0000000000000000  r11: 0x0000000000000206
  r12: 0x0000000000000307  r13: 0x0000000116c93000  r14: 0x0000000000000006  r15: 0x000000000000002d
  rip: 0x00007fff7ac70b66  rfl: 0x0000000000000206  cr2: 0x00007fffb31e9168
  
Logical CPU:     0
Error Code:      0x02000148
Trap Number:     133

Gah! I've refreshed the Calibraiton -> Kit Settings menu, and it started to work again! Still unsure how I managed to broke it though.