I just got my CF2, its a beauty! Running on my mac everything works fine and it is a lot of fun to fly!
Running my ubuntu machine I also had the joystick module problem with the latest version of cfclient. I added the joystick module to the installation folder manually and that solved my problem. I agree that that setup.sh and setup.py should be updated.
I have another input related problem though, the throttle mapping has stopped working. Everything works fine in the input device configuration window, all axis work the way they should, but after save and switch to main window the throttle stops working. I have double checked the device and mapping. Any idea?
[SOLVED] Segmentation fault at exit of gui
Re: Segmentation fault at exit of gui
Maybe this helps? It's just a guess though, I didn't really try to understand the code.
Code: Select all
diff --git a/lib/cfclient/utils/joystick/linuxjsdev.py b/lib/cfclient/utils/joystick/linuxjsdev.py
index 20eed5e..e7a09e8 100644
--- a/lib/cfclient/utils/joystick/linuxjsdev.py
+++ b/lib/cfclient/utils/joystick/linuxjsdev.py
@@ -109,7 +109,7 @@ class Joystick():
"""
Open the joystick device. The device_id is given by available_devices
"""
- self.data = {"roll":0.0, "pitch":0.0, "yaw":0.0, "thrust":-1.0, "pitchcal":0.0, "rollcal":0.0, "estop": False, "exit":False, "althold":False}
+ self.data = {"roll":0.0, "pitch":0.0, "yaw":0.0, "thrust":0.0, "pitchcal":0.0, "rollcal":0.0, "estop": False, "exit":False, "althold":False}
self._prev_pressed = {"pitchNeg": False, "rollNeg": False,
"pitchPos": False, "rollPos": False}
self.inputMap = inputMap
@@ -228,7 +228,7 @@ class Joystick():
# Since all the values are re-calculated each time on Linux
# since it's not event driven we can zero everything to make it
# easier to handle split axis (ie two axis affecting the same parameter)
- self.data = {"roll":0.0, "pitch":0.0, "yaw":0.0, "thrust":-1.0, "pitchcal":0.0, "rollcal":0.0, "estop": False, "exit":False, "althold":False}
+ self.data = {"roll":0.0, "pitch":0.0, "yaw":0.0, "thrust":0.0, "pitchcal":0.0, "rollcal":0.0, "estop": False, "exit":False, "althold":False}
i = 0
for a in self.axes:
Re: Segmentation fault at exit of gui
Glad to hear that you like it! Both of these has been fixed in the latest version on master so try to pull it.mlundh wrote:I just got my CF2, its a beauty! Running on my mac everything works fine and it is a lot of fun to fly!
Running my ubuntu machine I also had the joystick module problem with the latest version of cfclient. I added the joystick module to the installation folder manually and that solved my problem. I agree that that setup.sh and setup.py should be updated.
I have another input related problem though, the throttle mapping has stopped working. Everything works fine in the input device configuration window, all axis work the way they should, but after save and switch to main window the throttle stops working. I have double checked the device and mapping. Any idea?
Re: Segmentation fault at exit of gui
Yeah, it is a lot of fun to fly, have not yet gotten around to do any coding
Cool, I'll give that a try when i get back from christmas, right now I'm on my mac, and there everything works fine!
Merry christmas!
Cool, I'll give that a try when i get back from christmas, right now I'm on my mac, and there everything works fine!
Merry christmas!
Re: Segmentation fault at exit of gui
Of course it does. I'm a fan-boy!!mlundh wrote:right now I'm on my mac, and there everything works fine!
Crazyflier - my CF journal...
4x Crazyflie Nano (1.0) 10-DOF + NeoPixel Ring mod.
3x Crazyflie 2.0 + Qi Charger and LED Decks.
Raspberry Pi Ground Control.
Mac OS X Dev Environment.
Walkera Devo7e, ESky ET6I, PS3 and iOS Controllers.
4x Crazyflie Nano (1.0) 10-DOF + NeoPixel Ring mod.
3x Crazyflie 2.0 + Qi Charger and LED Decks.
Raspberry Pi Ground Control.
Mac OS X Dev Environment.
Walkera Devo7e, ESky ET6I, PS3 and iOS Controllers.
Re: Segmentation fault at exit of gui
I just tested everything on my ubuntu machine, and it works great!
Re: [SOLVED] Segmentation fault at exit of gui
I have this problem too. I'm running OSX Yossemite on my 2014 MacBook Air.
I've been using the VM and it works fine, but then I got it working directly. Here are the logs. It crashed a few times and I want to see what's up.
Info: Using config path: /Users/me/Downloads/cfclient-2013.4.2/lib/../conf
Info: sys.path= ['/Users/me/Downloads/cfclient-2013.4.2/lib', '/Users/me/Downloads/cfclient-2013.4.2/lib/../conf', '/Users/me/Downloads/cfclient-2013.4.2/bin', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages']
INFO:cfclient.cfclient:Disabling STL printouts
INFO:cfclient.utils.config:Dist config read from /Users/me/Downloads/cfclient-2013.4.2/lib/cfclient/configs/config.json
INFO:cfclient.utils.input:No user config found, copying dist files
INFO:cfclient.utils.config_manager:Parsing [Generic_OS_X.json]
INFO:cfclient.utils.config_manager:Parsing [PS3_Mode_1.json]
INFO:cfclient.utils.config_manager:Parsing [PS3_Mode_2.json]
INFO:cfclient.utils.config_manager:Parsing [xbox360_mode1.json]
INFO:cfclient.utils.config_manager:Parsing [xbox360_mode1_linux.json]
INFO:cfclient.utils.logconfigreader:No user config found, copying dist files
INFO:cfclient.utils.logconfigreader:Parsing [stabilizer.json]
INFO:cfclient.ui.tabs.FlightTab:Changed flightmode to Normal
2015-04-10 11:36:16.929 Python[26477:223698] _createMenuRef called with existing principal MenuRef already associated with menu
2015-04-10 11:36:16.938 Python[26477:223698] (
0 CoreFoundation 0x00007fff948d603c __exceptionPreprocess + 172
1 libobjc.A.dylib 0x00007fff8db1e76e objc_exception_throw + 43
2 CoreFoundation 0x00007fff948d5eed +[NSException raise:format:] + 205
3 AppKit 0x00007fff8fd4cf6e -[NSCarbonMenuImpl _createMenuRef] + 62
4 AppKit 0x00007fff8fd4c8c8 -[NSCarbonMenuImpl _instantiateCarbonMenu] + 139
5 AppKit 0x00007fff8fd4b152 -[NSApplication finishLaunching] + 947
6 AppKit 0x00007fff8fd4aa21 -[NSApplication run] + 128
7 QtGui 0x000000010f73b21b _ZN19QEventDispatcherMac13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE + 2027
8 QtCore 0x000000010ecd261f _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE + 495
9 QtCore 0x000000010ecd5857 _ZN16QCoreApplication4execEv + 199
10 QtGui.so 0x000000010f1f8820 _ZL23meth_QApplication_exec_P7_objectS0_ + 80
11 Python 0x000000010d0add58 PyEval_EvalFrameEx + 19480
12 Python 0x000000010d0b09b2 fast_function + 274
13 Python 0x000000010d0aca01 PyEval_EvalFrameEx + 14529
14 Python 0x000000010d0a8e32 PyEval_EvalCodeEx + 1538
15 Python 0x000000010d0a8826 PyEval_EvalCode + 54
16 Python 0x000000010d0d26e4 PyRun_FileExFlags + 164
17 Python 0x000000010d0d2261 PyRun_SimpleFileExFlags + 769
18 Python 0x000000010d0e7de8 Py_Main + 3096
19 libdyld.dylib 0x00007fff911a95c9 start + 1
)
Python(26477,0x7fff7a71b300) malloc: *** error for object 0x501004: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Abort trap: 6
That was the first crash.
The second:
Info: Using config path: /Users/me/Downloads/cfclient-2013.4.2/lib/../conf
Info: sys.path= ['/Users/me/Downloads/cfclient-2013.4.2/lib', '/Users/me/Downloads/cfclient-2013.4.2/lib/../conf', '/Users/me/Downloads/cfclient-2013.4.2/bin', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages']
INFO:cfclient.cfclient:Disabling STL printouts
INFO:cfclient.utils.config:Dist config read from /Users/me/Downloads/cfclient-2013.4.2/lib/cfclient/configs/config.json
INFO:cfclient.utils.config_manager:Parsing [Generic_OS_X.json]
INFO:cfclient.utils.config_manager:Parsing [PS3_Mode_1.json]
INFO:cfclient.utils.config_manager:Parsing [PS3_Mode_2.json]
INFO:cfclient.utils.config_manager:Parsing [xbox360_mode1.json]
INFO:cfclient.utils.config_manager:Parsing [xbox360_mode1_linux.json]
INFO:cfclient.utils.logconfigreader:Parsing [stabilizer.json]
INFO:cfclient.ui.tabs.FlightTab:Changed flightmode to Normal
2015-04-10 11:37:41.421 Python[26513:229502] _createMenuRef called with existing principal MenuRef already associated with menu
2015-04-10 11:37:41.423 Python[26513:229502] (
0 CoreFoundation 0x00007fff948d603c __exceptionPreprocess + 172
1 libobjc.A.dylib 0x00007fff8db1e76e objc_exception_throw + 43
2 CoreFoundation 0x00007fff948d5eed +[NSException raise:format:] + 205
3 AppKit 0x00007fff8fd4cf6e -[NSCarbonMenuImpl _createMenuRef] + 62
4 AppKit 0x00007fff8fd4c8c8 -[NSCarbonMenuImpl _instantiateCarbonMenu] + 139
5 AppKit 0x00007fff8fd4b152 -[NSApplication finishLaunching] + 947
6 AppKit 0x00007fff8fd4aa21 -[NSApplication run] + 128
7 QtGui 0x000000011269821b _ZN19QEventDispatcherMac13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE + 2027
8 QtCore 0x0000000111bef61f _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE + 495
9 QtCore 0x0000000111bf2857 _ZN16QCoreApplication4execEv + 199
10 QtGui.so 0x0000000112155820 _ZL23meth_QApplication_exec_P7_objectS0_ + 80
11 Python 0x000000011004ad58 PyEval_EvalFrameEx + 19480
12 Python 0x000000011004d9b2 fast_function + 274
13 Python 0x0000000110049a01 PyEval_EvalFrameEx + 14529
14 Python 0x0000000110045e32 PyEval_EvalCodeEx + 1538
15 Python 0x0000000110045826 PyEval_EvalCode + 54
16 Python 0x000000011006f6e4 PyRun_FileExFlags + 164
17 Python 0x000000011006f261 PyRun_SimpleFileExFlags + 769
18 Python 0x0000000110084de8 Py_Main + 3096
19 libdyld.dylib 0x00007fff911a95c9 start + 1
)
INFO:cfclient.ui.tabs.FlightTab:Clientside X-mode enabled: True
INFO:cfclient.ui.tabs.FlightTab:Clientside X-mode enabled: False
INFO:cflib.crtp.radiodriver:v0.53 dongle with serial N/A found
INFO:cflib.crtp.radiodriver:v0.53 dongle with serial N/A found
INFO:cflib.crazyflie:Callback->Connection initialized[radio://0/80/250K]
INFO:cflib.crazyflie:We are connected[radio://0/80/250K], request connection setup
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [5]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [5]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [5]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [5]
INFO:cflib.crazyflie:Callback->Connected to [radio://0/80/250K]
ERROR:cflib.crazyflie.toc:Got packet that was not on TOC channel, TOC fetch will probably not succeed
WARNING:root:[5]: Was expecting 0 but got 41
WARNING:root:[5]: Was expecting 0 but got 41
WARNING:root:[5]: Was expecting 0 but got 41
WARNING:root:[5]: Was expecting 0 but got 41
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [5]
WARNING:root:[5]: Was expecting 7 but got 6
INFO:cflib.crazyflie.toccache:Saved cache to [/Users/me/Downloads/cfclient-2013.4.2/lib/../conf/cache/5D22AF03.json]
INFO:cflib.crazyflie:Log TOC finished updating
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:root:[2]: Was expecting 9 but got 8
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
INFO:cflib.crazyflie.toccache:Saved cache to [/Users/me/Downloads/cfclient-2013.4.2/lib/../conf/cache/E1FB4911.json]
INFO:cflib.crazyflie:Param TOC finished updating
INFO:cflib.crazyflie:Callback->Connection setup finished [radio://0/80/250K]
2015-04-10 11:40:24.564 Python[26513:229502] -[NSApplication runModalSession:]: Use of freed session detected. Do not call runModalSession: after calling endModalSesion:.
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
<cfclient.ui.widgets.rtplotwidget.PlotDataSet instance at 0x117711440>
<cfclient.ui.widgets.rtplotwidget.PlotDataSet instance at 0x1177114d0>
<cfclient.ui.widgets.rtplotwidget.PlotDataSet instance at 0x117711518>
INFO:cflib.crazyflie.log:Have successfully logging for block=1
INFO:cflib.crazyflie.log:Have successfully logging for block=2
INFO:cflib.crazyflie.log:Have successfully logging for block=3
Fatal Python error: (pygame parachute) Segmentation Fault
Abort trap: 6
I don't know what to do!!
Please help!
I've been using the VM and it works fine, but then I got it working directly. Here are the logs. It crashed a few times and I want to see what's up.
Info: Using config path: /Users/me/Downloads/cfclient-2013.4.2/lib/../conf
Info: sys.path= ['/Users/me/Downloads/cfclient-2013.4.2/lib', '/Users/me/Downloads/cfclient-2013.4.2/lib/../conf', '/Users/me/Downloads/cfclient-2013.4.2/bin', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages']
INFO:cfclient.cfclient:Disabling STL printouts
INFO:cfclient.utils.config:Dist config read from /Users/me/Downloads/cfclient-2013.4.2/lib/cfclient/configs/config.json
INFO:cfclient.utils.input:No user config found, copying dist files
INFO:cfclient.utils.config_manager:Parsing [Generic_OS_X.json]
INFO:cfclient.utils.config_manager:Parsing [PS3_Mode_1.json]
INFO:cfclient.utils.config_manager:Parsing [PS3_Mode_2.json]
INFO:cfclient.utils.config_manager:Parsing [xbox360_mode1.json]
INFO:cfclient.utils.config_manager:Parsing [xbox360_mode1_linux.json]
INFO:cfclient.utils.logconfigreader:No user config found, copying dist files
INFO:cfclient.utils.logconfigreader:Parsing [stabilizer.json]
INFO:cfclient.ui.tabs.FlightTab:Changed flightmode to Normal
2015-04-10 11:36:16.929 Python[26477:223698] _createMenuRef called with existing principal MenuRef already associated with menu
2015-04-10 11:36:16.938 Python[26477:223698] (
0 CoreFoundation 0x00007fff948d603c __exceptionPreprocess + 172
1 libobjc.A.dylib 0x00007fff8db1e76e objc_exception_throw + 43
2 CoreFoundation 0x00007fff948d5eed +[NSException raise:format:] + 205
3 AppKit 0x00007fff8fd4cf6e -[NSCarbonMenuImpl _createMenuRef] + 62
4 AppKit 0x00007fff8fd4c8c8 -[NSCarbonMenuImpl _instantiateCarbonMenu] + 139
5 AppKit 0x00007fff8fd4b152 -[NSApplication finishLaunching] + 947
6 AppKit 0x00007fff8fd4aa21 -[NSApplication run] + 128
7 QtGui 0x000000010f73b21b _ZN19QEventDispatcherMac13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE + 2027
8 QtCore 0x000000010ecd261f _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE + 495
9 QtCore 0x000000010ecd5857 _ZN16QCoreApplication4execEv + 199
10 QtGui.so 0x000000010f1f8820 _ZL23meth_QApplication_exec_P7_objectS0_ + 80
11 Python 0x000000010d0add58 PyEval_EvalFrameEx + 19480
12 Python 0x000000010d0b09b2 fast_function + 274
13 Python 0x000000010d0aca01 PyEval_EvalFrameEx + 14529
14 Python 0x000000010d0a8e32 PyEval_EvalCodeEx + 1538
15 Python 0x000000010d0a8826 PyEval_EvalCode + 54
16 Python 0x000000010d0d26e4 PyRun_FileExFlags + 164
17 Python 0x000000010d0d2261 PyRun_SimpleFileExFlags + 769
18 Python 0x000000010d0e7de8 Py_Main + 3096
19 libdyld.dylib 0x00007fff911a95c9 start + 1
)
Python(26477,0x7fff7a71b300) malloc: *** error for object 0x501004: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Abort trap: 6
That was the first crash.
The second:
Info: Using config path: /Users/me/Downloads/cfclient-2013.4.2/lib/../conf
Info: sys.path= ['/Users/me/Downloads/cfclient-2013.4.2/lib', '/Users/me/Downloads/cfclient-2013.4.2/lib/../conf', '/Users/me/Downloads/cfclient-2013.4.2/bin', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages']
INFO:cfclient.cfclient:Disabling STL printouts
INFO:cfclient.utils.config:Dist config read from /Users/me/Downloads/cfclient-2013.4.2/lib/cfclient/configs/config.json
INFO:cfclient.utils.config_manager:Parsing [Generic_OS_X.json]
INFO:cfclient.utils.config_manager:Parsing [PS3_Mode_1.json]
INFO:cfclient.utils.config_manager:Parsing [PS3_Mode_2.json]
INFO:cfclient.utils.config_manager:Parsing [xbox360_mode1.json]
INFO:cfclient.utils.config_manager:Parsing [xbox360_mode1_linux.json]
INFO:cfclient.utils.logconfigreader:Parsing [stabilizer.json]
INFO:cfclient.ui.tabs.FlightTab:Changed flightmode to Normal
2015-04-10 11:37:41.421 Python[26513:229502] _createMenuRef called with existing principal MenuRef already associated with menu
2015-04-10 11:37:41.423 Python[26513:229502] (
0 CoreFoundation 0x00007fff948d603c __exceptionPreprocess + 172
1 libobjc.A.dylib 0x00007fff8db1e76e objc_exception_throw + 43
2 CoreFoundation 0x00007fff948d5eed +[NSException raise:format:] + 205
3 AppKit 0x00007fff8fd4cf6e -[NSCarbonMenuImpl _createMenuRef] + 62
4 AppKit 0x00007fff8fd4c8c8 -[NSCarbonMenuImpl _instantiateCarbonMenu] + 139
5 AppKit 0x00007fff8fd4b152 -[NSApplication finishLaunching] + 947
6 AppKit 0x00007fff8fd4aa21 -[NSApplication run] + 128
7 QtGui 0x000000011269821b _ZN19QEventDispatcherMac13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE + 2027
8 QtCore 0x0000000111bef61f _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE + 495
9 QtCore 0x0000000111bf2857 _ZN16QCoreApplication4execEv + 199
10 QtGui.so 0x0000000112155820 _ZL23meth_QApplication_exec_P7_objectS0_ + 80
11 Python 0x000000011004ad58 PyEval_EvalFrameEx + 19480
12 Python 0x000000011004d9b2 fast_function + 274
13 Python 0x0000000110049a01 PyEval_EvalFrameEx + 14529
14 Python 0x0000000110045e32 PyEval_EvalCodeEx + 1538
15 Python 0x0000000110045826 PyEval_EvalCode + 54
16 Python 0x000000011006f6e4 PyRun_FileExFlags + 164
17 Python 0x000000011006f261 PyRun_SimpleFileExFlags + 769
18 Python 0x0000000110084de8 Py_Main + 3096
19 libdyld.dylib 0x00007fff911a95c9 start + 1
)
INFO:cfclient.ui.tabs.FlightTab:Clientside X-mode enabled: True
INFO:cfclient.ui.tabs.FlightTab:Clientside X-mode enabled: False
INFO:cflib.crtp.radiodriver:v0.53 dongle with serial N/A found
INFO:cflib.crtp.radiodriver:v0.53 dongle with serial N/A found
INFO:cflib.crazyflie:Callback->Connection initialized[radio://0/80/250K]
INFO:cflib.crazyflie:We are connected[radio://0/80/250K], request connection setup
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [5]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [5]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [5]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [5]
INFO:cflib.crazyflie:Callback->Connected to [radio://0/80/250K]
ERROR:cflib.crazyflie.toc:Got packet that was not on TOC channel, TOC fetch will probably not succeed
WARNING:root:[5]: Was expecting 0 but got 41
WARNING:root:[5]: Was expecting 0 but got 41
WARNING:root:[5]: Was expecting 0 but got 41
WARNING:root:[5]: Was expecting 0 but got 41
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [5]
WARNING:root:[5]: Was expecting 7 but got 6
INFO:cflib.crazyflie.toccache:Saved cache to [/Users/me/Downloads/cfclient-2013.4.2/lib/../conf/cache/5D22AF03.json]
INFO:cflib.crazyflie:Log TOC finished updating
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:root:[2]: Was expecting 9 but got 8
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
INFO:cflib.crazyflie.toccache:Saved cache to [/Users/me/Downloads/cfclient-2013.4.2/lib/../conf/cache/E1FB4911.json]
INFO:cflib.crazyflie:Param TOC finished updating
INFO:cflib.crazyflie:Callback->Connection setup finished [radio://0/80/250K]
2015-04-10 11:40:24.564 Python[26513:229502] -[NSApplication runModalSession:]: Use of freed session detected. Do not call runModalSession: after calling endModalSesion:.
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [2]
<cfclient.ui.widgets.rtplotwidget.PlotDataSet instance at 0x117711440>
<cfclient.ui.widgets.rtplotwidget.PlotDataSet instance at 0x1177114d0>
<cfclient.ui.widgets.rtplotwidget.PlotDataSet instance at 0x117711518>
INFO:cflib.crazyflie.log:Have successfully logging for block=1
INFO:cflib.crazyflie.log:Have successfully logging for block=2
INFO:cflib.crazyflie.log:Have successfully logging for block=3
Fatal Python error: (pygame parachute) Segmentation Fault
Abort trap: 6
I don't know what to do!!
Please help!
Re: [SOLVED] Segmentation fault at exit of gui
What steps did you use to install necessary dependencies on your Mac? Are you using MacPorts, Brew or native python libraries?qubitter wrote:I have this problem too. I'm running OSX Yossemite on my 2014 MacBook Air.
I don't know what to do!!
Please help!
Crazyflier - my CF journal...
4x Crazyflie Nano (1.0) 10-DOF + NeoPixel Ring mod.
3x Crazyflie 2.0 + Qi Charger and LED Decks.
Raspberry Pi Ground Control.
Mac OS X Dev Environment.
Walkera Devo7e, ESky ET6I, PS3 and iOS Controllers.
4x Crazyflie Nano (1.0) 10-DOF + NeoPixel Ring mod.
3x Crazyflie 2.0 + Qi Charger and LED Decks.
Raspberry Pi Ground Control.
Mac OS X Dev Environment.
Walkera Devo7e, ESky ET6I, PS3 and iOS Controllers.