amirrajan / rubymotion-applied

RubyMotion documentation provided by the community. Submit a pull request to the docs for a free one year indie subscription.
Apache License 2.0
49 stars 10 forks source link

REPL crash shortly after app is deployed to device using `rake device` #88

Open hboon opened 6 years ago

hboon commented 6 years ago

RubyMotion 5.6 Xcode 9.2

Mentioned in Slack:

REPL crash shortly after app is deployed to device using rake device. Often (always?) the app continues to run on the device.

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       EXC_I386_GPFLT
Exception Note:        EXC_CORPSE_NOTIFY

Termination Signal:    Segmentation fault: 11
Termination Reason:    Namespace SIGNAL, Code 0xb
Terminating Process:   exc handler [0]

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   repl                              0x000000010bdf7efd llvm::BasicBlock::dropAllReferences() + 45
1   repl                              0x000000010be3a7f8 llvm::Function::dropAllReferences() + 56
2   repl                              0x000000010be91c38 llvm::Module::dropAllReferences() + 40
3   repl                              0x000000010be91907 llvm::Module::~Module() + 39
4   repl                              0x000000010be5f343 llvm::LLVMContextImpl::~LLVMContextImpl() + 131
5   repl                              0x000000010be5d8e6 llvm::LLVMContext::~LLVMContext() + 22
6   libsystem_c.dylib                 0x00007fffadb13178 __cxa_finalize_ranges + 332
7   libsystem_c.dylib                 0x00007fffadb134b2 exit + 55
8   repl                              0x000000010c018734 0x10b2e6000 + 13838132
9   repl                              0x000000010c021a89 0x10b2e6000 + 13875849
10  repl                              0x000000010c01bf73 0x10b2e6000 + 13852531
11  libdispatch.dylib                 0x00007fffada51524 _dispatch_call_block_and_release + 12
12  libdispatch.dylib                 0x00007fffada488fc _dispatch_client_callout + 8
13  libdispatch.dylib                 0x00007fffada55aac _dispatch_main_queue_callback_4CF + 925
14  com.apple.CoreFoundation          0x00007fff98336bc9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
15  com.apple.CoreFoundation          0x00007fff982f7c0d __CFRunLoopRun + 2205
16  com.apple.CoreFoundation          0x00007fff982f7114 CFRunLoopRunSpecific + 420
17  com.apple.Foundation              0x00007fff99d0a252 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 277
18  com.apple.Foundation              0x00007fff99d0a12a -[NSRunLoop(NSRunLoop) run] + 76
19  repl                              0x000000010bf583ca main + 6106
20  libdyld.dylib                     0x00007fffada7e235 start + 1

[] Sometimes I see this in the REPL when it crashes:

repl(13686,0x7fffb699a3c0) malloc: *** error for object 0xa0577d000000001: pointer being freed was not allocated