Hi Chris,
I could finally isolate a lingering crash of Rube and I have created a way for you to reproduce the issue.
For the crash to happen, a few things need to be enabled:
- A scene with quite a few items is needed. 
- A custom label script needs to be set
- A script runs which takes and resizes all bodies
If the resize script runs with labels switch off with the button on top of Rube, everything works fine.
If the custom labels are switched on with help of the Rube button, Rube crashes on my system.
Relevant stack trace:
2 libsystem_c.dylib 0x96d228c8 abort + 156
3 com.iforce2d.rube 0x004981c4 __eprintf + 84
4 com.iforce2d.rube 0x002677d5 rubescript_getAllBodies() + 453
I am working on a Mac with El Capitan. I am using Rube 1.7.3.
I have attached all the necessary files, please rename the scripts to .rs
(Could only attach .rube files to the system)
Let me know if you can reproduce the problem
Maybe this issue is connected to another crash when selecting all items in the Item list (function key F6).
Best regards,
Thomas
The crash report of the Mac:
Process:               rube [14995]
Path:                  /Applications/rube-mac32-1.7.3/R.U.B.E.app/Contents/MacOS/rube
Identifier:            com.iforce2d.rube
Version:               1.7.3 (1.7.3)
Code Type:             X86 (Native)
Parent Process:        ??? [1]
Responsible:           rube [14995]
User ID:               501
Date/Time:             2015-11-26 12:34:53.536 +0100
OS Version:            Mac OS X 10.11.1 (15B42)
Report Version:        11
Anonymous UUID:        20AFBF20-5FA7-C79E-6F07-5CFD02F58CC5
Sleep/Wake UUID:       97DC57B6-A9BA-49C1-9B3A-C255E8E1B1A4
Time Awake Since Boot: 61000 seconds
Time Since Wake:       5600 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
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	0x9326962a __pthread_kill + 10
1   libsystem_pthread.dylib       	0x93296664 pthread_kill + 101
2   libsystem_c.dylib             	0x96d228c8 abort + 156
3   com.iforce2d.rube             	0x004981c4 __eprintf + 84
4   com.iforce2d.rube             	0x002677d5 rubescript_getAllBodies() + 453
5   com.iforce2d.rube             	0x003fc240 endcopy + 3
6   com.iforce2d.rube             	0x003fca48 CallSystemFunctionNative(asCContext*, asCScriptFunction*, void*, unsigned long*, void*, unsigned long long&) + 827
7   com.iforce2d.rube             	0x003fb215 CallSystemFunction(int, asCContext*, void*) + 450
8   com.iforce2d.rube             	0x004399ec asCContext::ExecuteNext() + 6848
9   com.iforce2d.rube             	0x0043f5a7 asCContext::Execute() + 1023
10  com.iforce2d.rube             	0x0008e466 EditorDocument::runScript_Impl() + 566
11  com.iforce2d.rube             	0x000f6773 EditorDocument::runScript() + 1075
12  com.iforce2d.rube             	0x001b476e EditorView::runScript() + 414
13  com.iforce2d.rube             	0x00025215 MainWindow::on_runScriptButton_clicked() + 149
14  com.iforce2d.rube             	0x003a1dcd MainWindow::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) + 925
15  com.iforce2d.rube             	0x003a288b MainWindow::qt_metacall(QMetaObject::Call, int, void**) + 107
16  libQtCore.dylib.4             	0x016dbca5 QMetaObject::activate(QObject*, QMetaObject const*, int, void**) + 1941
17  libQtGui.dylib.4              	0x01095794 QAbstractButton::clicked(bool) + 68
18  libQtGui.dylib.4              	0x00daf15a QAbstractButton::mousePressEvent(QMouseEvent*) + 186
19  libQtGui.dylib.4              	0x00db0116 QAbstractButton::keyPressEvent(QKeyEvent*) + 726
20  libQtGui.dylib.4              	0x00db0365 QAbstractButton::mouseReleaseEvent(QMouseEvent*) + 117
21  libQtGui.dylib.4              	0x00e7fb4c QToolButton::mouseReleaseEvent(QMouseEvent*) + 28
22  libQtGui.dylib.4              	0x009f9d3e QWidget::event(QEvent*) + 2318
23  libQtGui.dylib.4              	0x00daf43d QAbstractButton::event(QEvent*) + 45
24  libQtGui.dylib.4              	0x00e814f0 QToolButton::event(QEvent*) + 64
25  libQtGui.dylib.4              	0x009a565c QApplicationPrivate::notify_helper(QObject*, QEvent*) + 188
26  libQtGui.dylib.4              	0x009adc1d QApplication::notify(QObject*, QEvent*) + 8845
27  com.iforce2d.rube             	0x00320c28 RubeApplication::notify(QObject*, QEvent*) + 56
28  libQtCore.dylib.4             	0x016c4b1c QCoreApplication::notifyInternal(QObject*, QEvent*) + 108
29  libQtGui.dylib.4              	0x00939a67 QApplicationPrivate::globalEventProcessor(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 6727
30  com.apple.HIToolbox           	0x9ac0668b _InvokeEventHandlerUPP(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*, long (*)(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*)) + 36
31  com.apple.HIToolbox           	0x9abae9a0 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1832
32  com.apple.HIToolbox           	0x9abadbb4 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 402
33  com.apple.HIToolbox           	0x9abc0f6d SendEventToEventTarget + 34
34  com.apple.HIToolbox           	0x9abe76b1 ToolboxEventDispatcherHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 3177
35  com.apple.HIToolbox           	0x9abaedef DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 2935
36  com.apple.HIToolbox           	0x9abadbb4 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 402
37  com.apple.HIToolbox           	0x9abc0f6d SendEventToEventTarget + 34
38  libQtGui.dylib.4              	0x0094e454 QDesktopWidget::resizeEvent(QResizeEvent*) + 6052
39  libQtCore.dylib.4             	0x016c39d1 QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 65
40  libQtCore.dylib.4             	0x016c3daa QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 314
41  libQtCore.dylib.4             	0x016c6116 QCoreApplication::exec() + 182
42  com.iforce2d.rube             	0x0001686e main + 5182
43  com.iforce2d.rube             	0x00014f29 _start + 208
44  com.iforce2d.rube             	0x00014e58 start + 40
			
							RUBE crash when custom item labels are enabled.
RUBE crash when custom item labels are enabled.
- Attachments
- 
			
		
		
				- ShowCustPropertiesInLabel.rube
- Label script
- (2.57 KiB) Downloaded 3032 times
 
- 
			
		
		
				- scaleCycleToWheel.rube
- Scaling script
- (1.58 KiB) Downloaded 2926 times
 
- 
			
		
		
				- jointTypes.rube
- Scene
- (169.14 KiB) Downloaded 2989 times
 
Re: RUBE crash when custom item labels are enabled.
Hi Chris,
in the meantime I have been encountering crashes with my own Qt Software and I am pretty sure that the problem got caused by a Mac software to extend the desktop to a iPad called Duet.
I have uninstalled Duet and now my software does not crash any more.
I will report back if the problems with Rube have gone away as well.
Issue https://www.iforce2d.net/forums/viewtopic.php?f=6&t=481 might be caused by Duet as well.
Best regards,
Thomas
			
			
									
						
										
						in the meantime I have been encountering crashes with my own Qt Software and I am pretty sure that the problem got caused by a Mac software to extend the desktop to a iPad called Duet.
I have uninstalled Duet and now my software does not crash any more.
I will report back if the problems with Rube have gone away as well.
Issue https://www.iforce2d.net/forums/viewtopic.php?f=6&t=481 might be caused by Duet as well.
Best regards,
Thomas