Closed foobarbecue closed 11 years ago
I have got the same issue on Mac. It crashes immediately when connecting to 3DR radio and starting to send data.
Do you have hardware flow control enabled?
And could you please try this binary? If it works then the current development state already has fixed the problem. http://www.inf.ethz.ch/personal/lomeier/downloads/qgroundcontrol_config_v3.dmg
I have compile the app just an hour ago with the latest changes.
I can connect to the radio and qgs receives the radio status message. As soon as I send data from my system it crashes. No flow control.
Kai
crash dump: Process: qgroundcontrol [10368] Path: /Users/USER/*/qgroundcontrol.app/Contents/MacOS/qgroundcontrol Identifier: com.yourcompany.qgroundcontrol Version: ??? Code Type: X86-64 (Native) Parent Process: launchd [271] User ID: 501
Date/Time: 2013-08-27 17:37:49.135 +1000 OS Version: Mac OS X 10.8.4 (12E55) Report Version: 10
Interval Since Last Report: 13120 sec Crashes Since Last Report: 4 Per-App Crashes Since Last Report: 4 Anonymous UUID: FFD4A003-0936-4F6E-092C-EF597D7784B1
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000008
VM Regions Near 0x8: --> __TEXT 0000000100000000-00000001010fa000 [ 17.0M] r-x/rwx SM=COW /Users/USER/*/qgroundcontrol.app/Contents/MacOS/qgroundcontrol
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 QtCore 0x000000010289d29b QHashData::rehash(int) + 203 1 QtGui 0x0000000102fefa2f QStyleSheetStyle::renderRule(QWidget const, int, unsigned long long) const + 1775 2 QtGui 0x0000000102ff1396 QStyleSheetStyle::renderRule(QWidget const, QStyleOption const, int) const + 486 3 QtGui 0x0000000103002241 QStyleSheetStyle::subControlRect(QStyle::ComplexControl, QStyleOptionComplex const, QStyle::SubControl, QWidget const) const + 225 4 QtGui 0x0000000103075667 QAbstractSpinBoxPrivate::updateEditFieldGeometry() + 103 5 QtGui 0x0000000103076303 QAbstractSpinBox::setLineEdit(QLineEdit) + 163 6 QtGui 0x00000001030764d7 QAbstractSpinBoxPrivate::init() + 55 7 QtGui 0x00000001030766b4 QAbstractSpinBox::QAbstractSpinBox(QAbstractSpinBoxPrivate&, QWidget) + 68 8 QtGui 0x0000000103112fad QDoubleSpinBox::QDoubleSpinBox(QWidget) + 61 9 com.yourcompany.qgroundcontrol 0x00000001004cbedf UiQGCCommandButton::setupUi(QWidget) + 5617 (uiQGCCommandButton.h:132) 10 com.yourcompany.qgroundcontrol 0x00000001004bdf9a QGCCommandButton::QGCCommandButton(QWidget) + 1634 (QGCCommandButton.cc:14) 11 com.yourcompany.qgroundcontrol 0x0000000100499204 QGCToolWidget::loadSettings(QSettings&) + 992 (QGCToolWidget.cc:335) 12 com.yourcompany.qgroundcontrol 0x000000010049e8dd QGCToolWidget::loadSettings(QString const&, bool) + 527 (QGCToolWidget.cc:185) 13 com.yourcompany.qgroundcontrol 0x000000010029fc9b MainWindow::loadCustomWidget(QString const&, bool) + 445 (MainWindow.cc:1104) 14 com.yourcompany.qgroundcontrol 0x00000001002a246c MainWindow::loadCustomWidgetsFromDefaults(QString const&, QString const&) + 3332 (MainWindow.cc:1188) 15 com.yourcompany.qgroundcontrol 0x00000001002ac784 MainWindow::UASCreated(UASInterface_) + 7124 (MainWindow.cc:1862) 16 com.yourcompany.qgroundcontrol 0x00000001008fab22 MainWindow::qt_staticmetacall(QObject, QMetaObject::Call, int, void) + 658 (mocMainWindow.cpp:152) 17 QtCore 0x00000001029b209e QMetaObject::activate(QObject, QMetaObject const_, int, void) + 1566 18 com.yourcompany.qgroundcontrol 0x00000001008f4776 UASManager::UASCreated(UASInterface_) + 70 (mocUASManager.cpp:178) 19 com.yourcompany.qgroundcontrol 0x0000000100205d57 UASManager::addUAS(UASInterface) + 411 (UASManager.cc:289) 20 com.yourcompany.qgroundcontrol 0x00000001004e5f0f QGCMAVLinkUASFactory::createUAS(MAVLinkProtocol, LinkInterface, int, *mavlink_heartbeatt, QObject) + 1869 (QGCMAVLinkUASFactory.cc:112) 21 com.yourcompany.qgroundcontrol 0x000000010025037d MAVLinkProtocol::receiveBytes(LinkInterface, QByteArray) + 3973 (MAVLinkProtocol.cc:420) 22 com.yourcompany.qgroundcontrol 0x00000001008f6fb8 MAVLinkProtocol::qt_staticmetacall(QObject, QMetaObject::Call, int, void_) + 824 (mocMAVLinkProtocol.cpp:130) 23 QtCore 0x00000001029ae191 QObject::event(QEvent) + 1073 24 QtGui 0x0000000102ccb5ed QApplicationPrivate::notifyhelper(QObject, QEvent) + 189 25 QtGui 0x0000000102cd1c64 QApplication::notify(QObject, QEvent) + 1060 26 QtCore 0x0000000102999bdc QCoreApplication::notifyInternal(QObject, QEvent) + 124 27 QtCore 0x000000010299b000 QCoreApplicationPrivate::sendPostedEvents(QObject, int, QThreadData_) + 736 28 com.apple.CoreFoundation 0x00007fff8be93b31 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION** + 17 29 com.apple.CoreFoundation 0x00007fff8be93455 CFRunLoopDoSources0 + 245 30 com.apple.CoreFoundation 0x00007fff8beb67f5 __CFRunLoopRun + 789 31 com.apple.CoreFoundation 0x00007fff8beb60e2 CFRunLoopRunSpecific + 290 32 com.apple.HIToolbox 0x00007fff8c79feb4 RunCurrentEventLoopInMode + 209 33 com.apple.HIToolbox 0x00007fff8c79fc52 ReceiveNextEventCommon + 356 34 com.apple.HIToolbox 0x00007fff8c79fae3 BlockUntilNextEventMatchingListInMode + 62 35 com.apple.AppKit 0x00007fff90a3f533 _DPSNextEvent + 685 36 com.apple.AppKit 0x00007fff90a3edf2 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 128 37 com.apple.AppKit 0x00007fff90a361a3 -[NSApplication run] + 517 38 QtGui 0x0000000102c84680 QEventDispatcherMac::processEvents(QFlagsQEventLoop::ProcessEventsFlag) + 1824 39 QtCore 0x0000000102998af4 QEventLoop::processEvents(QFlagsQEventLoop::ProcessEventsFlag) + 68 40 QtCore 0x0000000102998ea4 QEventLoop::exec(QFlagsQEventLoop::ProcessEventsFlag) + 324 41 QtCore 0x000000010299b58c QCoreApplication::exec() + 188 42 com.yourcompany.qgroundcontrol 0x00000001001fb91e main + 158 (main.cc:82) 43 com.yourcompany.qgroundcontrol 0x0000000100009334 start + 52
Thread 1:: Dispatch queue: com.apple.libdispatch-manager 0 libsystem_kernel.dylib 0x00007fff97bedd16 kevent + 10 1 libdispatch.dylib 0x00007fff92b54dea _dispatch_mgr_invoke + 883 2 libdispatch.dylib 0x00007fff92b549ee _dispatch_mgr_thread + 54
Thread 2:: JoystickInput 0 libsystem_kernel.dylib 0x00007fff97bed0fa __psynch_cvwait + 10 1 libsystem_c.dylib 0x00007fff95d7efe9 _pthread_cond_wait + 869 2 QtCore 0x000000010287edd3 threadsleep(timespec) + 99 3 QtCore 0x000000010287ef75 QThread::sleep(unsigned long) + 53 4 com.yourcompany.qgroundcontrol 0x000000010038a038 QGC::SLEEP::sleep(unsigned long) + 24 (QGC.h:101) 5 com.yourcompany.qgroundcontrol 0x0000000100383399 JoystickInput::init() + 125 (JoystickInput.cc:329) 6 com.yourcompany.qgroundcontrol 0x0000000100384221 JoystickInput::run() + 27 (JoystickInput.cc:387) 7 QtCore 0x000000010287f6d4 QThreadPrivate::start(void_) + 356 8 libsystem_c.dylib 0x00007fff95d7a7a2 _pthread_start + 327 9 libsystem_c.dylib 0x00007fff95d671e1 thread_start + 13
Thread 3:: SerialLink 0 libsystem_kernel.dylib 0x00007fff97bed0fa __psynch_cvwait + 10 1 libsystem_c.dylib 0x00007fff95d7efe9 _pthread_cond_wait + 869 2 QtCore 0x000000010287edd3 threadsleep(timespec) + 99 3 QtCore 0x000000010287ef33 QThread::msleep(unsigned long) + 147 4 com.yourcompany.qgroundcontrol 0x000000010024d0d8 MG::SLEEP::msleep(unsigned long) + 24 (MG.h:82) 5 com.yourcompany.qgroundcontrol 0x0000000100247d5e SerialLink::run() + 5652 (SerialLink.cc:256) 6 QtCore 0x000000010287f6d4 QThreadPrivate::start(void_) + 356 7 libsystem_c.dylib 0x00007fff95d7a7a2 _pthread_start + 327 8 libsystem_c.dylib 0x00007fff95d671e1 thread_start + 13
Thread 0 crashed with X86 Thread State (64-bit): rax: 0x0000000097c20000 rbx: 0x0000000000000805 rcx: 0x000000010b9734f0 rdx: 0x0000000000000667 rdi: 0x000000010b9734ef rsi: 0x0000000000000000 rbp: 0x00007fff5fbf94f0 rsp: 0x00007fff5fbf94c0 r8: 0x000000010b9734ef r9: 0x0000000106860000 r10: 0x0000000000000280 r11: 0x0000000000000100 r12: 0x000000010b9734f0 r13: 0x000000000000000b r14: 0x0000000000000407 r15: 0x000000010685ec00 rip: 0x000000010289d29b rfl: 0x0000000000010283 cr2: 0x0000000000000008 Logical CPU: 2
Binary Images:
0x100000000 - 0x1010f9fe7 +com.yourcompany.qgroundcontrol (???) <85445B8E-5EF1-360F-B3AD-49D6EE93E918> /Users/USER//qgroundcontrol.app/Contents/MacOS/qgroundcontrol
0x10182c000 - 0x101883fff +SDL (12.4)
External Modification Summary: Calls made by other processes targeting this process: task_for_pid: 2 thread_create: 0 thread_set_state: 0 Calls made by this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by all processes on this machine: task_for_pid: 1740 thread_create: 1 thread_set_state: 0
VM Region Summary: ReadOnly portion of Libraries: Total=268.7M resident=179.8M(67%) swapped_out_or_unallocated=88.9M(33%) Writable regions: Total=168.0M written=57.6M(34%) resident=91.4M(54%) swapped_out=0K(0%) unallocated=76.7M(46%)
REGION TYPE VIRTUAL =========== ======= ATS (font support) 31.9M ATS (font support) (reserved) 4K reserved VM address space (unallocated) CG backing stores 6256K CG image 96K CG raster data 68K CG shared images 192K CoreImage 4K CoreServices 1652K MALLOC 98.3M MALLOC guard page 48K Memory tag=240 4K Memory tag=242 12K Memory tag=243 8K OpenCL 8K SQLite page cache 96K STACK GUARD 56.0M Stack 9752K VM_ALLOCATE 16.1M DATA 20.0M IMAGE 528K LINKEDIT 74.4M TEXT 194.4M __UNICODE 544K mapped file 78.3M shared memory 308K =========== ======= TOTAL 588.5M TOTAL, minus reserved VM space 588.5M
Model: Macmini5,2, BootROM MM51.0077.B10, 2 processors, Intel Core i5, 2.5 GHz, 16 GB, SMC 1.75f0 Graphics: AMD Radeon HD 6630M, AMD Radeon HD 6630M, PCIe, 256 MB Memory Module: BANK 0/DIMM0, 8 GB, DDR3, 1333 MHz, 0x857F, 0x483634314755363746393333334700000000 Memory Module: BANK 1/DIMM0, 8 GB, DDR3, 1333 MHz, 0x857F, 0x483634314755363746393333334700000000 AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0xE4), Broadcom BCM43xx 1.0 (5.106.98.100.17) Bluetooth: Version 4.1.4f2 12041, 2 service, 11 devices, 1 incoming serial ports Network Service: Ethernet, Ethernet, en0 Network Service: Wi-Fi, AirPort, en1 Serial ATA Device: APPLE HDD HTS547550A9E384, 500.11 GB Serial ATA Device: OWC Mercury EXTREME Pro 6G SSD, 120.03 GB USB Device: hub_device, 0x0424 (SMSC), 0x2513, 0xfd100000 / 2 USB Device: Keyboard Hub, apple_vendor_id, 0x1006, 0xfd120000 / 4 USB Device: USB Optical Mouse, 0x046d (Logitech Inc.), 0xc018, 0xfd123000 / 6 USB Device: Apple Keyboard, apple_vendor_id, 0x0220, 0xfd122000 / 5 USB Device: IR Receiver, apple_vendor_id, 0x8242, 0xfd110000 / 3 USB Device: hub_device, 0x0424 (SMSC), 0x2513, 0xfa100000 / 2 USB Device: FT232R USB UART, 0x0403 (Future Technology Devices International Limited), 0x6001, 0xfa120000 / 4 USB Device: BRCM20702 Hub, 0x0a5c (Broadcom Corp.), 0x4500, 0xfa110000 / 3 USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x8281, 0xfa113000 / 5 FireWire Device: unknown_device, unknown_speed
You didn't mention the branch you're on. Unless you are already on the config branch, please try the binary.
Sorry, I was just thinking about that. It is the config branch. All is well on master.
Kai
I did test with the latest SiK binary from here: http://uav.tridgell.net/SiK-firmware/
And with the HEAD of config. I was not able to reproduce your issue with the instructions provided.
Did you actually bother to run this build? http://www.inf.ethz.ch/personal/lomeier/downloads/qgroundcontrol_config_v3.dmg
You will need to, as I can't help you if you don't follow the instructions to help you. Please provide feedback and a detailed plan how to reproduce. The information provided so far didn't allow me to reproduce.
I will try this build today. Last night the download wouldn't go through to Australia. Happens sometimes. Will update on progress.
On Wed, Aug 28, 2013 at 5:47 PM, Lorenz Meier notifications@github.comwrote:
I did test with the latest SiK binary from here: http://uav.tridgell.net/SiK-firmware/
And with the HEAD of config. I was not able to reproduce your issue with the instructions provided.
Did you actually bother to run this build?
http://www.inf.ethz.ch/personal/lomeier/downloads/qgroundcontrol_config_v3.dmg
You will need to, as I can't help you if you don't follow the instructions to help you. Please provide feedback and a detailed plan how to reproduce. The information provided so far didn't allow me to reproduce.
— Reply to this email directly or view it on GitHubhttps://github.com/mavlink/qgroundcontrol/issues/349#issuecomment-23396883 .
Kai Lehmkuehler, BE (Aero, Hons 1)
Research Engineer UAV Design Group
School of Aeronautical, Mechanical and Mechatronic Engineering The University of Sydney
Phone: +61 (0) 412-533385
I was able to download it tonight. It works. So I am trying a fresh clone now to see which of my changes breaks it. I am just adding widgets to /files/generic/widgets and my custom messages. Curious. We'll see.
On Wed, Aug 28, 2013 at 7:14 PM, Kai Lehmkuehler k.lehmkuehler@gmail.comwrote:
I will try this build today. Last night the download wouldn't go through to Australia. Happens sometimes. Will update on progress.
On Wed, Aug 28, 2013 at 5:47 PM, Lorenz Meier notifications@github.comwrote:
I did test with the latest SiK binary from here: http://uav.tridgell.net/SiK-firmware/
And with the HEAD of config. I was not able to reproduce your issue with the instructions provided.
Did you actually bother to run this build?
http://www.inf.ethz.ch/personal/lomeier/downloads/qgroundcontrol_config_v3.dmg
You will need to, as I can't help you if you don't follow the instructions to help you. Please provide feedback and a detailed plan how to reproduce. The information provided so far didn't allow me to reproduce.
— Reply to this email directly or view it on GitHubhttps://github.com/mavlink/qgroundcontrol/issues/349#issuecomment-23396883 .
Kai Lehmkuehler, BE (Aero, Hons 1)
Research Engineer UAV Design Group
School of Aeronautical, Mechanical and Mechatronic Engineering The University of Sydney
Phone: +61 (0) 412-533385
Kai Lehmkuehler, BE (Aero, Hons 1)
Research Engineer UAV Design Group
School of Aeronautical, Mechanical and Mechatronic Engineering The University of Sydney
Phone: +61 (0) 412-533385
Please make sure to delete your build folder. Independent of which build system you use (this is not related to Qt or your OS) the dependency checking and cleaning is based on the current project revision. So if you change the project and not doing a clean build before you do, incremental building can leave you with stale object files.
To make sure this does not happen to you, I recommend to delete the build folder whenever you encounter unexplained crashes, or when you pull from GIT.
Its very likely that your changes are not related at all.
To reproduce this:
Connect via 3DR radio. Unplug the radio. Plug it back in. Go to Communication --> Serial port settings and click "connect" or choose any serial port from the list. You will get the following crash:
"QSerialPort::bytesAvailable(/dev/ttyUSB0) failed: Input/output error(Err #5)" "TermiosHelper::restoreTermios(file: 24) failed when resetting serial port attributes: Input/output error(5)" "TermiosHelper::restoreTermios(file: 24) failed while waiting for drain: Input/output error(5)" Serial port " "/dev/ttyUSB0" " is successfully closed No data!!! Attempting reset via reboot command. No data!!! Attempting reset via DTR. No data!!! Segmentation fault (core dumped)