xaxaxa-dev / vna

a simple and cheap vector network analyzer, including support software
https://www.kickstarter.com/projects/1759352588/xavna-a-full-featured-low-cost-two-port-vna
GNU General Public License v2.0
153 stars 46 forks source link

Crash when applying SOLT UXYZ or modified UXYZ calibration #20

Open Rodentia opened 5 years ago

Rodentia commented 5 years ago

App crash on Mac and Windows when applying SOLT UXYZ or modified UXYZ calibration data.

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

Date/Time: 2019-01-14 15:35:06.379 -0800 OS Version: Mac OS X 10.14.1 (18B2107) Report Version: 12 Bridge OS Version: 3.1 (16P1582) Anonymous UUID: 874C6354-2402-A038-F2C8-536EF4AFFF94

Sleep/Wake UUID: 1F95E6F7-4F14-4962-8174-6D0DD3298828

Time Awake Since Boot: 1900000 seconds Time Since Wake: 26000 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: abort() called terminating with uncaught exception of type std::runtime_error: matrix rank is not full! should be 4, is 3

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib 0x00007fff7eeccb86 __pthread_kill + 10 1 libsystem_pthread.dylib 0x00007fff7ef82c50 pthread_kill + 285 2 libsystem_c.dylib 0x00007fff7ee361c9 abort + 127 3 libc++abi.dylib 0x00007fff7c4b8231 abort_message + 231 4 libc++abi.dylib 0x00007fff7c4b83b5 default_terminate_handler() + 241 5 libobjc.A.dylib 0x00007fff7dcc1c8f _objc_terminate() + 105 6 libc++abi.dylib 0x00007fff7c4c3dfe std::terminate(void (*)()) + 8 7 libc++abi.dylib 0x00007fff7c4b786e cxa_rethrow + 99 8 libobjc.A.dylib 0x00007fff7dcbfb6e objc_exception_rethrow + 40 9 com.apple.CoreFoundation 0x00007fff51baaac3 CFRunLoopRunSpecific + 618 10 com.apple.HIToolbox 0x00007fff50e43b35 RunCurrentEventLoopInMode + 293 11 com.apple.HIToolbox 0x00007fff50e43774 ReceiveNextEventCommon + 371 12 com.apple.HIToolbox 0x00007fff50e435e8 _BlockUntilNextEventMatchingListInModeWithFilter + 64 13 com.apple.AppKit 0x00007fff4f0ffeb7 _DPSNextEvent + 997 14 com.apple.AppKit 0x00007fff4f0fec56 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1362 15 com.apple.AppKit 0x00007fff4f0f8cb9 -[NSApplication run] + 699 16 libqcocoa.dylib 0x00000001050873ad 0x10505e000 + 168877 17 org.qt-project.QtCore 0x0000000102fa9a72 QEventLoop::exec(QFlags) + 418 18 org.qt-project.QtCore 0x0000000102fae692 QCoreApplication::exec() + 402 19 com.yourcompany.vna-qt 0x0000000101f7a94f main + 383 20 libdyld.dylib 0x00007fff7ed8e08d start + 1

Thread 1:: com.apple.NSEventThread 0 libsystem_kernel.dylib 0x00007fff7eec6c2a mach_msg_trap + 10 1 libsystem_kernel.dylib 0x00007fff7eec7174 mach_msg + 60 2 com.apple.CoreFoundation 0x00007fff51babda2 CFRunLoopServiceMachPort + 337 3 com.apple.CoreFoundation 0x00007fff51bab2f1 CFRunLoopRun + 1654 4 com.apple.CoreFoundation 0x00007fff51baaa28 CFRunLoopRunSpecific + 463 5 com.apple.AppKit 0x00007fff4f108add _NSEventThread + 160 6 libsystem_pthread.dylib 0x00007fff7ef80339 _pthread_body + 126 7 libsystem_pthread.dylib 0x00007fff7ef832a7 _pthread_start + 70 8 libsystem_pthread.dylib 0x00007fff7ef7f445 thread_start + 13

Thread 2:: Dispatch queue: NSCGSDisableUpdates 0 libsystem_kernel.dylib 0x00007fff7eec6c2a mach_msg_trap + 10 1 libsystem_kernel.dylib 0x00007fff7eec7174 mach_msg + 60 2 com.apple.SkyLight 0x00007fff77cb7c37 CGSUpdateManager::enable_updates_common() + 539 3 com.apple.SkyLight 0x00007fff77c5b07f CGSUpdateManager::enable_update(unsigned long long) + 317 4 libdispatch.dylib 0x00007fff7ed3ed53 _dispatch_call_block_and_release + 12 5 libdispatch.dylib 0x00007fff7ed3fdcf _dispatch_client_callout + 8 6 libdispatch.dylib 0x00007fff7ed46124 _dispatch_lane_serial_drain + 618 7 libdispatch.dylib 0x00007fff7ed46bdc _dispatch_lane_invoke + 388 8 libdispatch.dylib 0x00007fff7ed4f090 _dispatch_workloop_worker_thread + 603 9 libsystem_pthread.dylib 0x00007fff7ef7f63c _pthread_wqthread + 409 10 libsystem_pthread.dylib 0x00007fff7ef7f435 start_wqthread + 13

Thread 3: 0 libsystem_pthread.dylib 0x00007fff7ef7f428 start_wqthread + 0 1 ??? 0x0000000054485244 0 + 1414025796

Thread 4: 0 libsystem_kernel.dylib 0x00007fff7eec88a6 read + 10 1 libxavna.0.dylib 0x0000000101fd3d09 readValue2(int, int) + 857 2 libxavna.0.dylib 0x0000000101fd41bb xavna_default::read_values_raw(double, int) + 91 3 libxavna.0.dylib 0x0000000101fd5928 xaxaxa::VNADevice::_mainThread() + 408 4 libxavna.0.dylib 0x0000000101fd5629 xaxaxa::mainThread(void) + 9 5 libsystem_pthread.dylib 0x00007fff7ef80339 _pthread_body + 126 6 libsystem_pthread.dylib 0x00007fff7ef832a7 _pthread_start + 70 7 libsystem_pthread.dylib 0x00007fff7ef7f445 thread_start + 13

Thread 5: 0 libsystem_pthread.dylib 0x00007fff7ef7f428 start_wqthread + 0 1 ??? 0x0000000054485244 0 + 1414025796

Thread 6: 0 libsystem_pthread.dylib 0x00007fff7ef7f428 start_wqthread + 0 1 ??? 0x0000000054485244 0 + 1414025796

Thread 0 crashed with X86 Thread State (64-bit): rax: 0x0000000000000000 rbx: 0x000000011149f5c0 rcx: 0x00007ffeedca4988 rdx: 0x0000000000000000 rdi: 0x0000000000000307 rsi: 0x0000000000000006 rbp: 0x00007ffeedca49c0 rsp: 0x00007ffeedca4988 r8: 0x00007ffeedca4848 r9: 0x00007ffeedca4a20 r10: 0x0000000000000000 r11: 0x0000000000000206 r12: 0x0000000000000307 r13: 0x0000003000000008 r14: 0x0000000000000006 r15: 0x000000000000002d rip: 0x00007fff7eeccb86 rfl: 0x0000000000000206 cr2: 0x00007fffb1bc1188

Logical CPU: 0 Error Code: 0x02000148 Trap Number: 133

xaxaxa commented 5 years ago

Are you in T/R mode? The error message "matrix rank is not full" implies the measurements are not linearly independent, which can happen if you e.g. try to calibrate port 2 when in T/R mode.