Projucer crashing when editing setbound parameters with delete key

I’m editing a the dimensions of a button, when I press the delete button to remove the numerical values it crashes the ProJucer, the only way to change this is to highlight part of the value in amend the first part then highlight the second to amend.

This instance I was

setBounds(0, 180, 322, 300);

trying to change 180 to 35 I had to highlight 18 and change to 3 then 0 to 5, tired to delete jus the 18 to begin with as well and this caused the same crash

Crash report:

Process: Projucer [12311]
Path: /Applications/Projucer.app/Contents/MacOS/Projucer
Identifier: com.juce.theprojucer
Version: 4.2.3 (4.2.3)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Projucer [12311]
User ID: 501

Date/Time: 2016-07-05 17:06:53.108 +0100
OS Version: Mac OS X 10.11.3 (15D21)
Report Version: 11
Anonymous UUID: F5613F44-0E74-1920-7EF4-144ACE24E395

Sleep/Wake UUID: 98B62A63-6B3B-48B4-8E9C-A77884DFD67C

Time Awake Since Boot: 52000 seconds
Time Since Wake: 18000 seconds

System Integrity Protection: enabled

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

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY

VM Regions Near 0:
–>
__TEXT 0000000103d0e000-0000000104216000 [ 5152K] r-x/rwx SM=COW /Applications/Projucer.app/Contents/MacOS/Projucer

Global Trace Buffer (reverse chronological seconds):
41.284287 CFNetwork 0x00007fff8e4fea5b TCP Conn 0x7ff559751990 SSL Handshake DONE
41.688294 CFNetwork 0x00007fff8e4fe937 TCP Conn 0x7ff559751990 starting SSL negotiation
41.688445 CFNetwork 0x00007fff8e4fd303 TCP Conn 0x7ff559751990 complete. fd: 14, err: 0
41.688730 CFNetwork 0x00007fff8e58bb1d TCP Conn 0x7ff559751990 event 1. err: 0
41.904829 CFNetwork 0x00007fff8e4fc5d3 TCP Conn 0x7ff559751990 started
41.936090 CFNetwork 0x00007fff8e4c021a Creating default cookie storage with process/bundle identifier
41.936090 CFNetwork 0x00007fff8e4c01b2 Faulting in CFHTTPCookieStorage singleton
41.936090 CFNetwork 0x00007fff8e4c0041 Faulting in NSHTTPCookieStorage singleton

Thread 0 Crashed:: Juce Message Thread Dispatch queue: com.apple.main-thread
0 libc++abi.dylib 0x00007fff99815b1e __dynamic_cast + 34
1 com.juce.theprojucer 0x0000000103df1c54 PaintElementImage::OpacityProperty::getValue() const + 36
2 com.juce.theprojucer 0x00000001040238d2 juce::SliderPropertyComponent::refresh() + 18
3 com.juce.theprojucer 0x0000000103f474b1 juce::ChangeBroadcaster::ChangeBroadcasterCallback::handleAsyncUpdate() + 193
4 com.juce.theprojucer 0x0000000103f4a45a juce::MessageQueue::deliverNextMessage() + 58
5 com.juce.theprojucer 0x0000000103f4a3ec juce::MessageQueue::runLoopSourceCallback(void*) + 28
6 com.apple.CoreFoundation 0x00007fff966c35c1 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17
7 com.apple.CoreFoundation 0x00007fff966b541c __CFRunLoopDoSources0 + 556
8 com.apple.CoreFoundation 0x00007fff966b493f __CFRunLoopRun + 927
9 com.apple.CoreFoundation 0x00007fff966b4338 CFRunLoopRunSpecific + 296
10 com.apple.HIToolbox 0x00007fff8e176935 RunCurrentEventLoopInMode + 235
11 com.apple.HIToolbox 0x00007fff8e17676f ReceiveNextEventCommon + 432
12 com.apple.HIToolbox 0x00007fff8e1765af _BlockUntilNextEventMatchingListInModeWithFilter + 71
13 com.apple.AppKit 0x00007fff8f3a70ee _DPSNextEvent + 1067
14 com.apple.AppKit 0x00007fff8f773943 -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 454
15 com.apple.AppKit 0x00007fff8f39cfc8 -[NSApplication run] + 682
16 com.juce.theprojucer 0x0000000103f45cab juce::JUCEApplicationBase::main() + 267
17 com.juce.theprojucer 0x0000000103f45b83 juce::JUCEApplicationBase::main(int, char const**) + 83
18 com.juce.theprojucer 0x0000000103d0f5e4 start + 52

Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0 libsystem_kernel.dylib 0x00007fff928b6ff6 kevent_qos + 10
1 libdispatch.dylib 0x00007fff9a625099 _dispatch_mgr_invoke + 216
2 libdispatch.dylib 0x00007fff9a624d01 _dispatch_mgr_thread + 52

Thread 2:
0 libsystem_kernel.dylib 0x00007fff928b66de __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff9a20f729 _pthread_wqthread + 1283
2 libsystem_pthread.dylib 0x00007fff9a20d365 start_wqthread + 13

Thread 3:
0 libsystem_kernel.dylib 0x00007fff928b66de __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff9a20f729 _pthread_wqthread + 1283
2 libsystem_pthread.dylib 0x00007fff9a20d365 start_wqthread + 13

Thread 4:
0 libsystem_kernel.dylib 0x00007fff928b66de __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff9a20f729 _pthread_wqthread + 1283
2 libsystem_pthread.dylib 0x00007fff9a20d365 start_wqthread + 13

Thread 5:
0 libsystem_kernel.dylib 0x00007fff928b66de __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff9a20f729 _pthread_wqthread + 1283
2 libsystem_pthread.dylib 0x00007fff9a20d365 start_wqthread + 13

Thread 6:
0 libsystem_kernel.dylib 0x00007fff928b66de __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff9a20f729 _pthread_wqthread + 1283
2 libsystem_pthread.dylib 0x00007fff9a20d365 start_wqthread + 13

Thread 7:: com.apple.NSEventThread
0 libsystem_kernel.dylib 0x00007fff928b0386 mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff928af7c7 mach_msg + 55
2 com.apple.CoreFoundation 0x00007fff966b5624 __CFRunLoopServiceMachPort + 212
3 com.apple.CoreFoundation 0x00007fff966b4aec __CFRunLoopRun + 1356
4 com.apple.CoreFoundation 0x00007fff966b4338 CFRunLoopRunSpecific + 296
5 com.apple.AppKit 0x00007fff8f466065 _NSEventThread + 149
6 libsystem_pthread.dylib 0x00007fff9a20fc13 _pthread_body + 131
7 libsystem_pthread.dylib 0x00007fff9a20fb90 _pthread_start + 168
8 libsystem_pthread.dylib 0x00007fff9a20d375 thread_start + 13

Thread 8:: Juce Timer
0 libsystem_kernel.dylib 0x00007fff928b5eb2 __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fff9a210150 _pthread_cond_wait + 767
2 com.juce.theprojucer 0x0000000103f0114e juce::WaitableEvent::wait(int) const + 190
3 com.juce.theprojucer 0x0000000103f49653 juce::timer::TimerThread::run() + 371
4 com.juce.theprojucer 0x0000000103f01d10 juce::Thread::threadEntryPoint() + 240
5 com.juce.theprojucer 0x0000000103f19c8a threadEntryProc + 26
6 libsystem_pthread.dylib 0x00007fff9a20fc13 _pthread_body + 131
7 libsystem_pthread.dylib 0x00007fff9a20fb90 _pthread_start + 168
8 libsystem_pthread.dylib 0x00007fff9a20d375 thread_start + 13

Thread 9:: JUCE IPC
0 libsystem_kernel.dylib 0x00007fff928b6176 __select + 10
1 com.juce.theprojucer 0x0000000103f26c9a juce::NamedPipe::Pimpl::read(char*, int, int) + 730
2 com.juce.theprojucer 0x0000000103f1a006 juce::NamedPipe::read(void*, int, int) + 102
3 com.juce.theprojucer 0x0000000103f48148 juce::InterprocessConnection::readNextMessageInt() + 88
4 com.juce.theprojucer 0x0000000103f483b7 juce::InterprocessConnection::runThread() + 119
5 com.juce.theprojucer 0x0000000103f01d10 juce::Thread::threadEntryPoint() + 240
6 com.juce.theprojucer 0x0000000103f19c8a threadEntryProc + 26
7 libsystem_pthread.dylib 0x00007fff9a20fc13 _pthread_body + 131
8 libsystem_pthread.dylib 0x00007fff9a20fb90 _pthread_start + 168
9 libsystem_pthread.dylib 0x00007fff9a20d375 thread_start + 13

Thread 10:: Juce Timer
0 libsystem_kernel.dylib 0x00007fff928b5eb2 __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fff9a210150 _pthread_cond_wait + 767
2 JUCECompileEngine.dylib 0x0000000108226a7e 0x1081bc000 + 436862
3 JUCECompileEngine.dylib 0x0000000108265553 0x1081bc000 + 693587
4 JUCECompileEngine.dylib 0x0000000108227630 0x1081bc000 + 439856
5 JUCECompileEngine.dylib 0x000000010823b5aa 0x1081bc000 + 521642
6 libsystem_pthread.dylib 0x00007fff9a20fc13 _pthread_body + 131
7 libsystem_pthread.dylib 0x00007fff9a20fb90 _pthread_start + 168
8 libsystem_pthread.dylib 0x00007fff9a20d375 thread_start + 13

Thread 11:: com.apple.NSURLConnectionLoader
0 libsystem_kernel.dylib 0x00007fff928b0386 mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff928af7c7 mach_msg + 55
2 com.apple.CoreFoundation 0x00007fff966b5624 __CFRunLoopServiceMachPort + 212
3 com.apple.CoreFoundation 0x00007fff966b4aec __CFRunLoopRun + 1356
4 com.apple.CoreFoundation 0x00007fff966b4338 CFRunLoopRunSpecific + 296
5 com.apple.CFNetwork 0x00007fff8e4c36e9 +[NSURLConnection(Loader) _resourceLoadLoop:] + 412
6 com.apple.Foundation 0x00007fff8bd32c6f NSThread__start + 1351
7 libsystem_pthread.dylib 0x00007fff9a20fc13 _pthread_body + 131
8 libsystem_pthread.dylib 0x00007fff9a20fb90 _pthread_start + 168
9 libsystem_pthread.dylib 0x00007fff9a20d375 thread_start + 13

Thread 12:: com.apple.CFSocket.private
0 libsystem_kernel.dylib 0x00007fff928b6176 __select + 10
1 com.apple.CoreFoundation 0x00007fff9670116a __CFSocketManager + 762
2 libsystem_pthread.dylib 0x00007fff9a20fc13 _pthread_body + 131
3 libsystem_pthread.dylib 0x00007fff9a20fb90 _pthread_start + 168
4 libsystem_pthread.dylib 0x00007fff9a20d375 thread_start + 13

Thread 13:
0 libsystem_kernel.dylib 0x00007fff928b66de __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff9a20f729 _pthread_wqthread + 1283
2 libsystem_pthread.dylib 0x00007fff9a20d365 start_wqthread + 13

Thread 14:
0 libsystem_kernel.dylib 0x00007fff928b66de __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff9a20f729 _pthread_wqthread + 1283
2 libsystem_pthread.dylib 0x00007fff9a20d365 start_wqthread + 13

Thread 15:
0 libsystem_kernel.dylib 0x00007fff928b66de __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff9a20f729 _pthread_wqthread + 1283
2 libsystem_pthread.dylib 0x00007fff9a20d365 start_wqthread + 13

Thread 16:
0 libsystem_kernel.dylib 0x00007fff928b66de __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff9a20f729 _pthread_wqthread + 1283
2 libsystem_pthread.dylib 0x00007fff9a20d365 start_wqthread + 13

Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x00007ff55ac92ce0 rbx: 0x0000000000000000 rcx: 0x0000000000000000 rdx: 0x000000010423f5b0
rdi: 0x0000000000000000 rsi: 0x000000010421e0b0 rbp: 0x00007fff5bef0470 rsp: 0x00007fff5bef03e0
r8: 0x0000000000000040 r9: 0x00007ff559530dc8 r10: 0xffffffffffffffff r11: 0xfffffffffffffff8
r12: 0x00007ff55ac917b0 r13: 0x0000000000000015 r14: 0x0000000104155ea9 r15: 0x000000010423f5b0
rip: 0x00007fff99815b1e rfl: 0x0000000000010202 cr2: 0x0000000000000000

Logical CPU: 4
Error Code: 0x00000004
Trap Number: 14

I tried to reproduce your issue based on the JUCE OSCMonitor example. In MainComponent.h I patched the buttonClicked event handler to invoke setBounds for the clearButton like this:

void buttonClicked (Button* b) override
{
    clearButton->setBounds (0, 89, 322, 300); // added this line
    ...
}

In this setting I followed your description and removed/replaced/modified the values that are passed to the setBounds function, but I could not reproduce any crash that way. Any idea what am I missing?

Not sure what was happening here Stefan. Reinstalled the ProJucer version 4.2.1 saved the project, upgraded the ProJucer to 4.2.3 again and it seems to have resolved. Really not sure what was causing these crashes but it’s been resolved now. Before re-installing in the above manner the crashes were happening this morning after a restart of the system.

Thanks for your time to take a look

Ok thanks anyway. If you ever reproduce it, please let me know.