So im trying to make an app for a school project in Swift. (im completely new to this language) The app should allow you to tilt your device, and by doing so making a square drop to the bottom of the screen. This is what ip using right now:
func gravityUpdated(){
if let data = motionManager.deviceMotion {
let gravity = data.gravity
Zwaartekracht.gravityDirection = CGVectorMake(CGFloat(gravity.x), CGFloat(gravity.y))
}
}
gravityUpdated()
When i run it on my iPhone 6, the build is successful, but then i get to see this: (sorry for long post):
libswiftCore.dylib`function signature specialization <Arg[0] = Exploded, Arg[1] = Exploded, Arg[2] = Dead, Arg[3] = Dead> of Swift._fatalErrorMessage (Swift.StaticString, Swift.StaticString, Swift.StaticString, Swift.UInt) -> ():
0x100171448 <+0>: stp x29, x30, [sp, #-16]!
0x10017144c <+4>: mov x29, sp
0x100171450 <+8>: sub sp, sp, #16
0x100171454 <+12>: and w8, w2, #0x1
0x100171458 <+16>: tbnz w8, #0, 0x100171478 ; <+48>
0x10017145c <+20>: tbnz x1, #63, 0x100171568 ; <+288>
0x100171460 <+24>: add x1, x0, x1
0x100171464 <+28>: mov x2, x3
0x100171468 <+32>: mov x3, x4
0x10017146c <+36>: mov x4, x5
0x100171470 <+40>: bl 0x1001a1334 ; function signature specialization <Arg[0] = Exploded, Arg[1] = Exploded> of Swift.(_fatalErrorMessage (Swift.StaticString, Swift.StaticString, Swift.StaticString, Swift.UInt) -> ()).(closure #2)
-> 0x100171474 <+44>: brk #0x1
0x100171478 <+48>: str xzr, [sp, #8]
0x10017147c <+52>: cmp x0, w0, uxtw
0x100171480 <+56>: b.ne 0x100171620 ; <+472>
0x100171484 <+60>: lsr w8, w0, #11
0x100171488 <+64>: cmp w8, #27
0x10017148c <+68>: b.ne 0x1001714b4 ; <+108>
0x100171490 <+72>: adr x0, #584602 ; "fatal error"
0x100171494 <+76>: nop
0x100171498 <+80>: adr x3, #586600 ; "high- and low-surrogate code points are not valid Unicode scalar values"
0x10017149c <+84>: nop
0x1001714a0 <+88>: movz w1, #0xb
0x1001714a4 <+92>: orr w2, wzr, #0x2
0x1001714a8 <+96>: movz w4, #0x47
0x1001714ac <+100>: orr w5, wzr, #0x2
0x1001714b0 <+104>: bl 0x100171448 ; <+0>
0x1001714b4 <+108>: lsr w10, w0, #16
0x1001714b8 <+112>: cmp w10, #16
0x1001714bc <+116>: b.hi 0x1001714ec ; <+164>
0x1001714c0 <+120>: cmp w0, #128
0x1001714c4 <+124>: b.lo 0x100171510 ; <+200>
0x1001714c8 <+128>: orr w8, wzr, #0x80
0x1001714cc <+132>: bfxil x8, x0, #0, #6
0x1001714d0 <+136>: cmp w0, #2047
0x1001714d4 <+140>: b.hi 0x10017158c ; <+324>
0x1001714d8 <+144>: movz x11, #0
0x1001714dc <+148>: movz x10, #0
0x1001714e0 <+152>: lsr w9, w0, #6
0x1001714e4 <+156>: orr w9, w9, #0xffffffc0
0x1001714e8 <+160>: b 0x1001715e8 ; <+416>
0x1001714ec <+164>: adr x0, #584510 ; "fatal error"
0x1001714f0 <+168>: nop
0x1001714f4 <+172>: adr x3, #586588 ; "value is outside of Unicode codespace"
0x1001714f8 <+176>: nop
0x1001714fc <+180>: movz w1, #0xb
0x100171500 <+184>: orr w2, wzr, #0x2
0x100171504 <+188>: movz w4, #0x25
0x100171508 <+192>: orr w5, wzr, #0x2
0x10017150c <+196>: bl 0x100171448 ; <+0>
0x100171510 <+200>: movz x10, #0
0x100171514 <+204>: movz x9, #0
0x100171518 <+208>: mov x8, x0
0x10017151c <+212>: orr w11, wzr, #0x8
0x100171520 <+216>: umulh x11, x9, x11
0x100171524 <+220>: cmp xzr, x11
0x100171528 <+224>: cset w11, ne
0x10017152c <+228>: tbnz w11, #0, 0x100171620 ; <+472>
0x100171530 <+232>: lsl x11, x9, #3
0x100171534 <+236>: cmp x11, #63
0x100171538 <+240>: b.hi 0x100171624 ; <+476>
0x10017153c <+244>: and x8, x8, #0xff
0x100171540 <+248>: lsl x8, x8, x11
0x100171544 <+252>: orr x8, x8, x10
0x100171548 <+256>: str x8, [sp, #8]
0x10017154c <+260>: cmn x9, #2
0x100171550 <+264>: b.le 0x100171568 ; <+288>
0x100171554 <+268>: add x8, sp, #8
0x100171558 <+272>: add x8, x9, x8
0x10017155c <+276>: add x1, x8, #1
0x100171560 <+280>: add x0, sp, #8
0x100171564 <+284>: b 0x100171464 ; <+28>
0x100171568 <+288>: adr x0, #584386 ; "fatal error"
0x10017156c <+292>: nop
0x100171570 <+296>: adr x3, #584656 ; "UnsafeBufferPointer with negative count"
0x100171574 <+300>: nop
0x100171578 <+304>: movz w1, #0xb
0x10017157c <+308>: orr w2, wzr, #0x2
0x100171580 <+312>: movz w4, #0x27
0x100171584 <+316>: orr w5, wzr, #0x2
0x100171588 <+320>: bl 0x100171448 ; <+0>
0x10017158c <+324>: orr w9, wzr, #0xffffff80
0x100171590 <+328>: bfxil w9, w0, #6, #6
0x100171594 <+332>: cbnz w10, 0x1001715ac ; <+356>
0x100171598 <+336>: movz x11, #0
0x10017159c <+340>: movz x12, #0
0x1001715a0 <+344>: lsr w10, w0, #12
0x1001715a4 <+348>: orr w10, w10, #0xffffffe0
0x1001715a8 <+352>: b 0x1001715d0 ; <+392>
0x1001715ac <+356>: lsr w10, w0, #18
0x1001715b0 <+360>: orr w11, w10, #0xf0
0x1001715b4 <+364>: cmp w11, w11, uxtb
0x1001715b8 <+368>: b.ne 0x100171620 ; <+472>
0x1001715bc <+372>: orr w10, wzr, #0xffffff80
0x1001715c0 <+376>: bfxil w10, w0, #12, #6
0x1001715c4 <+380>: and x12, x11, #0xff
0x1001715c8 <+384>: str x12, [sp, #8]
0x1001715cc <+388>: orr w11, wzr, #0x1
0x1001715d0 <+392>: and x10, x10, #0xff
0x1001715d4 <+396>: lsl x13, x11, #3
0x1001715d8 <+400>: lsl x10, x10, x13
0x1001715dc <+404>: orr x10, x10, x12
0x1001715e0 <+408>: str x10, [sp, #8]
0x1001715e4 <+412>: add x11, x11, #1
0x1001715e8 <+416>: orr w12, wzr, #0x8
0x1001715ec <+420>: umulh x12, x11, x12
0x1001715f0 <+424>: cmp xzr, x12
0x1001715f4 <+428>: cset w12, ne
0x1001715f8 <+432>: tbnz w12, #0, 0x100171620 ; <+472>
0x1001715fc <+436>: lsl x12, x11, #3
0x100171600 <+440>: cmp x12, #64
0x100171604 <+444>: b.hs 0x100171624 ; <+476>
0x100171608 <+448>: and x9, x9, #0xff
0x10017160c <+452>: lsl x9, x9, x12
0x100171610 <+456>: orr x10, x9, x10
0x100171614 <+460>: str x10, [sp, #8]
0x100171618 <+464>: add x9, x11, #1
0x10017161c <+468>: tbz x9, #63, 0x10017151c ; <+212>
0x100171620 <+472>: brk #0x1
0x100171624 <+476>: adr x0, #584198 ; "fatal error"
0x100171628 <+480>: nop
0x10017162c <+484>: adr x3, #584228 ; "shift amount is larger than type size in bits"
0x100171630 <+488>: nop
0x100171634 <+492>: movz w1, #0xb
0x100171638 <+496>: orr w2, wzr, #0x2
0x10017163c <+500>: movz w4, #0x2d
0x100171640 <+504>: orr w5, wzr, #0x2
0x100171644 <+508>: bl 0x100171448 ; <+0>
on the bottom it also states: fatal error: unexpectedly found nil while unwrapping an Optional value
(lldb)
i dont have a single clue how this can happen
anyone can help? thanks!
Got it working by using this code:
func gravityUpdated(motion: CMDeviceMotion!, error: NSError!) {
let grav : CMAcceleration = motion.gravity;
let x = CGFloat(grav.x);
let y = CGFloat(grav.y);
var p = CGPointMake(x,y)
// Have to correct for orientation.
var orientation = UIApplication.sharedApplication().statusBarOrientation;
if(orientation == UIInterfaceOrientation.LandscapeLeft) {
var t = p.x
p.x = 0 - p.y
p.y = t
} else if (orientation == UIInterfaceOrientation.LandscapeRight) {
var t = p.x
p.x = p.y
p.y = 0 - t
} else if (orientation == UIInterfaceOrientation.PortraitUpsideDown) {
p.x *= -1
p.y *= -1
}
var v = CGVectorMake(p.x, 0 - p.y);
gravity.gravityDirection = v;
animator.addBehavior(gravity)
}
Related
my app crashes when i using UnityAds with no internet connection. it happens when my first scene try to start. but when i use internet connection, my game start correctly.
using unity 2017.3.1f1 and Xcode 9.3.
it crashes at:
2018-04-25 15:23:49.269307+0430 name[1664:419120] I/UnityAds:
-[UADSInitializeStateConfig execute] (line:139) :: Unity Ads init: load configuration from
https://config.unityads.unity3d.com/webview/2.1.0/release/config.json
and the log is:
ballz`::Job_ExecuteUnityWebRequest():
0x1015ee814 <+0>: stp x20, x19, [sp, #-0x20]!
0x1015ee818 <+4>: stp x29, x30, [sp, #0x10]
0x1015ee81c <+8>: add x29, sp, #0x10 ; =0x10
0x1015ee820 <+12>: sub sp, sp, #0x10 ; =0x10
0x1015ee824 <+16>: mov x19, x0
0x1015ee828 <+20>: add x0, x19, #0x118 ; =0x118
0x1015ee82c <+24>: str x0, [sp, #0x8]
0x1015ee830 <+28>: bl 0x1010ef3a4 ; ::Lock() at Mutex.cpp:60
0x1015ee834 <+32>: ldr x8, [x19, #0x108]
0x1015ee838 <+36>: sub x9, x8, #0x1 ; =0x1
0x1015ee83c <+40>: ldr x8, [x19, #0xf0]
0x1015ee840 <+44>: ldr x8, [x8, x9, lsl #3]
0x1015ee844 <+48>: str x9, [x19, #0x108]
0x1015ee848 <+52>: cbz x8, 0x1015ee870 ; <+92> [inlined] ~AutoLock at UnityWebRequestProto.h:216
0x1015ee84c <+56>: mov x0, x19
0x1015ee850 <+60>: blr x8
--> 0x1015ee854 <+64>: ldr x8, [x19, #0x108]
0x1015ee858 <+68>: cbnz x8, 0x1015ee838 ; <+36> [inlined] back + 4 at UnityWebRequestProto.h:204
0x1015ee85c <+72>: add x0, sp, #0x8 ; =0x8
0x1015ee860 <+76>: bl 0x100cd4f10 ; ::~AutoLock() at Mutex.h:30
0x1015ee864 <+80>: mov x0, x19
0x1015ee868 <+84>: bl 0x1015ef158 ; ::Release() at UnityWebRequestProto.h:353
0x1015ee86c <+88>: b 0x1015ee878 ; <+100> at UnityWebRequestProto.h:219
0x1015ee870 <+92>: add x0, sp, #0x8 ; =0x8
0x1015ee874 <+96>: bl 0x100cd4f10 ; ::~AutoLock() at Mutex.h:30
0x1015ee878 <+100>: sub sp, x29, #0x10 ; =0x10
0x1015ee87c <+104>: ldp x29, x30, [sp, #0x10]
0x1015ee880 <+108>: ldp x20, x19, [sp], #0x20
0x1015ee884 <+112>: ret
0x1015ee888 <+116>: mov x19, x0
0x1015ee88c <+120>: add x0, sp, #0x8 ; =0x8
0x1015ee890 <+124>: bl 0x100cd4f10 ; ::~AutoLock() at Mutex.h:30
0x1015ee894 <+128>: mov x0, x19
0x1015ee898 <+132>: bl 0x101b7e2bc ; symbol stub for: _Unwind_Resume
You could try and only initialize the unity ads when you are connected to internet.
if(Application.internetReachability != NetworkReachability.NotReachable)
{
//initialize ads here
}
I write the code below:
JSImgDeleteCollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:displayCellID forIndexPath:indexPath];
and before use it,I registered it:
[_displayImgCollectionView registerNib:[UINib nibWithNibName:displayCellID bundle:nil] forCellWithReuseIdentifier:displayCellID];
it is allright in xcode7.3,
but when I run this in xcode8.1,there is sth wrong,the msg like this:
invalid mode 'kCFRunLoopCommonModes' provided to CFRunLoopRunSpecific - break on _CFRunLoopError_RunCalledWithInvalidMode to debug. This message will only appear once per execution.
libsystem_c.dylib`__abort:
0x18ce163ec <+0>: adrp x8, 150192
0x18ce163f0 <+4>: add x8, x8, #0 ; =0
0x18ce163f4 <+8>: ldr x9, [x8, #8]
0x18ce163f8 <+12>: cbnz x9, 0x18ce16408 ; <+28>
0x18ce163fc <+16>: adrp x9, 27
0x18ce16400 <+20>: add x9, x9, #1393 ; =1393
0x18ce16404 <+24>: str x9, [x8, #8]
0x18ce16408 <+28>: stp x20, x19, [sp, #-32]!
0x18ce1640c <+32>: stp x29, x30, [sp, #16]
0x18ce16410 <+36>: add x29, sp, #16 ; =16
0x18ce16414 <+40>: sub sp, sp, #32 ; =32
0x18ce16418 <+44>: add x8, sp, #16 ; =16
0x18ce1641c <+48>: add x19, x8, #8 ; =8
0x18ce16420 <+52>: movn w20, #0
0x18ce16424 <+56>: stp xzr, x20, [sp, #16]
0x18ce16428 <+60>: orr w0, wzr, #0x6
0x18ce1642c <+64>: add x1, sp, #16 ; =16
0x18ce16430 <+68>: movz x2, #0
0x18ce16434 <+72>: bl 0x18cdc552c ; sigaction
0x18ce16438 <+76>: ldr w8, [sp, #24]
0x18ce1643c <+80>: and w8, w8, #0xffffffdf
0x18ce16440 <+84>: str w8, [sp, #24]
0x18ce16444 <+88>: str w20, [sp, #12]
0x18ce16448 <+92>: orr w0, wzr, #0x3
0x18ce1644c <+96>: add x1, sp, #12 ; =12
0x18ce16450 <+100>: movz x2, #0
0x18ce16454 <+104>: bl 0x18ce2b814 ; symbol stub for: __printf_arginfo_n
0x18ce16458 <+108>: orr w0, wzr, #0x1
0x18ce1645c <+112>: bl 0x18cf6a470 ; __pthread_workqueue_setkill
0x18ce16460 <+116>: orr w0, wzr, #0x3
0x18ce16464 <+120>: mov x1, x19
0x18ce16468 <+124>: movz x2, #0
0x18ce1646c <+128>: bl 0x18cf6885c ; pthread_sigmask
0x18ce16470 <+132>: bl 0x18cf6d908 ; pthread_self
0x18ce16474 <+136>: orr w1, wzr, #0x6
0x18ce16478 <+140>: bl 0x18cf6a3e0 ; pthread_kill
0x18ce1647c <+144>: movz w0, #0x2710
0x18ce16480 <+148>: bl 0x18cdf2b1c ; usleep$NOCANCEL
0x18ce16484 <+152>: orr w8, wzr, #0xffffffe7
0x18ce16488 <+156>: str w8, [sp, #24]
0x18ce1648c <+160>: orr w0, wzr, #0x3
0x18ce16490 <+164>: mov x1, x19
0x18ce16494 <+168>: movz x2, #0
0x18ce16498 <+172>: bl 0x18ce2b814 ; symbol stub for: __printf_arginfo_n
-> 0x18ce1649c <+176>: brk #0x1
please help!
I had faced the same issue
CFRunLoopRunSpecific - break on _CFRunLoopError_RunCalledWithInvalidMode to debug. This message will only appear once per execution.
But I found this is not the real reason behind crashing the app, the real reason i found below the above message as Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSNull length]:unrecognized selector sent to instance 0x102ed2fb0' on console
is real reason.
So, I handle the null value which i received from backend.
In my case, I accidentally added two reference to the same Xib constraint. Removed one and it works well.
sorry,it's just the index lost and Apple changed the error log,just add the .m file
I'm using a dodgy 3rd party framework that needed me to do some real work to get it working. In short, they provided two frameworks that cause duplicated symbols linker errors; I had to merge the 2 frameworks using libtool and it was not a fun ride.
It worked a few times, but strangely enough I'm getting crashes now. Here's the crash log:
<Project Name>`__26-[IDTechEMV swipeMSRData:]_block_invoke:
0x100401a40 <+0>: stp x29, x30, [sp, #-16]!
0x100401a44 <+4>: mov x29, sp
0x100401a48 <+8>: sub sp, sp, #48
0x100401a4c <+12>: adrp x8, 372
0x100401a50 <+16>: add x8, x8, #3360
0x100401a54 <+20>: adrp x9, 380
0x100401a58 <+24>: add x9, x9, #1864
0x100401a5c <+28>: stur x0, [x29, #-8]
0x100401a60 <+32>: mov x1, x0
0x100401a64 <+36>: stur x1, [x29, #-16]
0x100401a68 <+40>: ldr x9, [x9]
0x100401a6c <+44>: ldr x1, [x8]
0x100401a70 <+48>: str x0, [sp, #24]
0x100401a74 <+52>: mov x0, x9
0x100401a78 <+56>: bl 0x1004505c8 ; symbol stub for: objc_msgSend
0x100401a7c <+60>: mov x29, x29
0x100401a80 <+64>: bl 0x10045061c ; symbol stub for: objc_retainAutoreleasedReturnValue
0x100401a84 <+68>: adrp x8, 371
0x100401a88 <+72>: add x1, x8, #4056
0x100401a8c <+76>: ldr x1, [x1]
0x100401a90 <+80>: mov x8, x0
0x100401a94 <+84>: str x0, [sp, #16]
0x100401a98 <+88>: mov x0, x8
0x100401a9c <+92>: bl 0x1004505c8 ; symbol stub for: objc_msgSend
0x100401aa0 <+96>: mov x29, x29
0x100401aa4 <+100>: bl 0x10045061c ; symbol stub for: objc_retainAutoreleasedReturnValue
0x100401aa8 <+104>: adrp x8, 379
0x100401aac <+108>: add x1, x8, #1632
0x100401ab0 <+112>: ldr x1, [x1]
0x100401ab4 <+116>: movz w2, #0x5
0x100401ab8 <+120>: str x0, [sp, #8]
0x100401abc <+124>: bl 0x1004505c8 ; symbol stub for: objc_msgSend
0x100401ac0 <+128>: ldr x0, [sp, #8] // Thread 1: signal SIGABRT
0x100401ac4 <+132>: bl 0x1004505ec ; symbol stub for: objc_release
0x100401ac8 <+136>: ldr x0, [sp, #16]
0x100401acc <+140>: bl 0x1004505ec ; symbol stub for: objc_release
0x100401ad0 <+144>: adrp x8, 379
0x100401ad4 <+148>: add x0, x8, #1752
0x100401ad8 <+152>: adrp x8, 694
0x100401adc <+156>: add x1, x8, #3200
0x100401ae0 <+160>: adrp x8, 694
0x100401ae4 <+164>: add x8, x8, #3196
0x100401ae8 <+168>: adrp x9, 694
0x100401aec <+172>: add x9, x9, #3192
0x100401af0 <+176>: adrp x10, 694
0x100401af4 <+180>: add x10, x10, #3188
0x100401af8 <+184>: orr w2, wzr, #0x1
0x100401afc <+188>: adrp x11, 694
0x100401b00 <+192>: add x11, x11, #3187
0x100401b04 <+196>: movz w12, #0
0x100401b08 <+200>: adrp x13, 694
0x100401b0c <+204>: add x13, x13, #3186
0x100401b10 <+208>: adrp x14, 694
0x100401b14 <+212>: add x14, x14, #3185
0x100401b18 <+216>: strb w12, [x14]
0x100401b1c <+220>: strb w12, [x13]
0x100401b20 <+224>: strb w2, [x11]
0x100401b24 <+228>: ldr x11, [sp, #24]
0x100401b28 <+232>: ldr x13, [x11, #32]
0x100401b2c <+236>: ldr s0, [x10]
0x100401b30 <+240>: ldr w2, [x9]
0x100401b34 <+244>: ldrb w12, [x8]
0x100401b38 <+248>: uxtb w3, w12
0x100401b3c <+252>: ldr x4, [x1]
0x100401b40 <+256>: ldr x1, [x0]
0x100401b44 <+260>: mov x0, x13
0x100401b48 <+264>: bl 0x1004505c8 ; symbol stub for: objc_msgSend
0x100401b4c <+268>: mov sp, x29
0x100401b50 <+272>: ldp x29, x30, [sp], #16
0x100401b54 <+276>: ret
The console error reads:
2016-02-17 14:56:14.683 <Project Name>[4038:2623242] -[<Project Name>.BookingDetailViewController emvTransactionMessage:]: unrecognized selector sent to instance 0x15810fc00
2016-02-17 14:56:14.686 <Project Name>[4038:2623242] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[<Project Name>.BookingDetailViewController emvTransactionMessage:]: unrecognized selector sent to instance 0x15810fc00'
*** First throw call stack:
(0x180c39900 0x1802a7f80 0x180c4061c 0x180c3d3e8 0x180b4168c 0x100401ac0 0x10250dbf0 0x10250dbb0 0x102513658 0x180bf0bb0 0x180beea18 0x180b1d680 0x18202c088 0x185994d90 0x10010ad1c 0x1806be8b8)
libc++abi.dylib: terminating with uncaught exception of type NSException
I've tried my usual debugging methods and I'm on the ropes here, so I'm trying to figure out this log. Does the [IDTechEMV swipeMSRData:]_block_invoke suggest that this is crashing in the IDTechEMV method call? Could I conclude that the framework itself is messed up?
From the crash log, your BookingDetailViewController is trying to call function emvTransactionMessage: and it couldn't recognize the function.
This is usually caused by typo when typing the selector. Check your BookingDetailViewController if it is indeed have function emvTransactionMessage: that require a parameter in function call or not.
So when I launch my app, I'll sometimes get an EXC_BREAKPOINT or EXC_BAD_ACCESS that points to a line within a function that's not being called. After writing some new, unrelated code, I can get these crashes without fail. And when I undo that code, I can sometimes rid of the error.But that code isn't at all related, and I'm not sure why I'm getting these errors in functions that aren't even being called.
I have a UIWindow with a custom VideoPlayer class that I'm returning upon launch. And the failing function is in that class, although it never gets called. Here's how I'm doing it:
#UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
let player = VideoPlayer(frame:UIScreen.mainScreen().bounds)
var window: UIWindow? {
set {
}
get {
return player
}
}
}
Stack trace:
libswiftCore.dylib`function signature specialization <Arg[0] = Exploded, Arg[1] = Exploded, Arg[2] = Dead, Arg[3] = Dead> of Swift._fatalErrorMessage (Swift.StaticString, Swift.StaticString, Swift.StaticString, Swift.UInt) -> ():
0x1007cc740 <+0>: stp x29, x30, [sp, #-16]!
0x1007cc744 <+4>: mov x29, sp
0x1007cc748 <+8>: sub sp, sp, #16
0x1007cc74c <+12>: and w8, w2, #0x1
0x1007cc750 <+16>: tbnz w8, #0, 0x1007cc770 ; <+48>
0x1007cc754 <+20>: tbnz x1, #63, 0x1007cc7b4 ; <+116>
0x1007cc758 <+24>: add x1, x0, x1
0x1007cc75c <+28>: mov x2, x3
0x1007cc760 <+32>: mov x3, x4
0x1007cc764 <+36>: mov x4, x5
0x1007cc768 <+40>: bl 0x10080edd0 ; function signature specialization <Arg[0] = Exploded, Arg[1] = Exploded> of Swift.(_fatalErrorMessage (Swift.StaticString, Swift.StaticString, Swift.StaticString, Swift.UInt) -> ()).(closure #2)
-> 0x1007cc76c <+44>: brk #0x1
0x1007cc770 <+48>: str xzr, [sp, #8]
0x1007cc774 <+52>: cmp x0, w0, uxtw
0x1007cc778 <+56>: b.ne 0x1007cc94c ; <+524>
0x1007cc77c <+60>: lsr w8, w0, #11
0x1007cc780 <+64>: cmp w8, #26
0x1007cc784 <+68>: b.hi 0x1007cc7d8 ; <+152>
0x1007cc788 <+72>: cmp w0, #128
0x1007cc78c <+76>: b.lo 0x1007cc808 ; <+200>
0x1007cc790 <+80>: orr w8, wzr, #0x80
0x1007cc794 <+84>: bfxil x8, x0, #0, #6
0x1007cc798 <+88>: cmp w0, #2048
0x1007cc79c <+92>: b.hs 0x1007cc83c ; <+252>
0x1007cc7a0 <+96>: movz x10, #0
0x1007cc7a4 <+100>: movz x11, #0
0x1007cc7a8 <+104>: lsr w9, w0, #6
0x1007cc7ac <+108>: orr w9, w9, #0xffffffc0
0x1007cc7b0 <+112>: b 0x1007cc86c ; <+300>
0x1007cc7b4 <+116>: adr x0, #808224 ; "fatal error"
0x1007cc7b8 <+120>: nop
0x1007cc7bc <+124>: adr x3, #808724 ; "UnsafeBufferPointer with negative count"
0x1007cc7c0 <+128>: nop
0x1007cc7c4 <+132>: movz w1, #0xb
0x1007cc7c8 <+136>: orr w2, wzr, #0x2
0x1007cc7cc <+140>: movz w4, #0x27
0x1007cc7d0 <+144>: orr w5, wzr, #0x2
0x1007cc7d4 <+148>: bl 0x1007cc740 ; <+0>
0x1007cc7d8 <+152>: cmp w0, #14, lsl #12
0x1007cc7dc <+156>: b.lo 0x1007cc818 ; <+216>
0x1007cc7e0 <+160>: cmp w0, #272, lsl #12
0x1007cc7e4 <+164>: b.hs 0x1007cc900 ; <+448>
0x1007cc7e8 <+168>: orr w8, wzr, #0x80
0x1007cc7ec <+172>: bfxil x8, x0, #0, #6
0x1007cc7f0 <+176>: orr w9, wzr, #0xffffff80
0x1007cc7f4 <+180>: bfxil w9, w0, #6, #6
0x1007cc7f8 <+184>: lsr w10, w0, #16
0x1007cc7fc <+188>: cbnz w10, 0x1007cc924 ; <+484>
0x1007cc800 <+192>: lsr w10, w0, #12
0x1007cc804 <+196>: b 0x1007cc848 ; <+264>
0x1007cc808 <+200>: movz x9, #0
0x1007cc80c <+204>: movz x11, #0
0x1007cc810 <+208>: mov x8, x0
0x1007cc814 <+212>: b 0x1007cc89c ; <+348>
0x1007cc818 <+216>: adr x0, #808124 ; "fatal error"
0x1007cc81c <+220>: nop
0x1007cc820 <+224>: adr x3, #811328 ; "high- and low-surrogate code points are not valid Unicode scalar values"
0x1007cc824 <+228>: nop
0x1007cc828 <+232>: movz w1, #0xb
0x1007cc82c <+236>: orr w2, wzr, #0x2
0x1007cc830 <+240>: movz w4, #0x47
0x1007cc834 <+244>: orr w5, wzr, #0x2
0x1007cc838 <+248>: bl 0x1007cc740 ; <+0>
0x1007cc83c <+252>: lsr w10, w0, #12
0x1007cc840 <+256>: orr w9, wzr, #0xffffff80
0x1007cc844 <+260>: bfxil w9, w0, #6, #6
0x1007cc848 <+264>: movz x12, #0
0x1007cc84c <+268>: movz x11, #0
0x1007cc850 <+272>: orr w10, w10, #0xffffffe0
0x1007cc854 <+276>: and x10, x10, #0xff
0x1007cc858 <+280>: lsl x13, x12, #3
0x1007cc85c <+284>: lsl x10, x10, x13
0x1007cc860 <+288>: orr x11, x10, x11
0x1007cc864 <+292>: str x11, [sp, #8]
0x1007cc868 <+296>: add x10, x12, #1
0x1007cc86c <+300>: orr w12, wzr, #0x8
0x1007cc870 <+304>: umulh x12, x10, x12
0x1007cc874 <+308>: cmp xzr, x12
0x1007cc878 <+312>: b.ne 0x1007cc94c ; <+524>
0x1007cc87c <+316>: lsl x12, x10, #3
0x1007cc880 <+320>: cmp x12, #63
0x1007cc884 <+324>: b.hi 0x1007cc8dc ; <+412>
0x1007cc888 <+328>: and x9, x9, #0xff
0x1007cc88c <+332>: lsl x9, x9, x12
0x1007cc890 <+336>: orr x11, x9, x11
0x1007cc894 <+340>: str x11, [sp, #8]
0x1007cc898 <+344>: add x9, x10, #1
0x1007cc89c <+348>: orr w10, wzr, #0x8
0x1007cc8a0 <+352>: umulh x10, x9, x10
0x1007cc8a4 <+356>: cmp xzr, x10
0x1007cc8a8 <+360>: b.ne 0x1007cc94c ; <+524>
0x1007cc8ac <+364>: lsl x10, x9, #3
0x1007cc8b0 <+368>: cmp x10, #64
0x1007cc8b4 <+372>: b.hs 0x1007cc8dc ; <+412>
0x1007cc8b8 <+376>: and x8, x8, #0xff
0x1007cc8bc <+380>: lsl x8, x8, x10
0x1007cc8c0 <+384>: orr x8, x8, x11
0x1007cc8c4 <+388>: str x8, [sp, #8]
0x1007cc8c8 <+392>: add x8, sp, #8
0x1007cc8cc <+396>: add x8, x9, x8
0x1007cc8d0 <+400>: add x1, x8, #1
0x1007cc8d4 <+404>: add x0, sp, #8
0x1007cc8d8 <+408>: b 0x1007cc75c ; <+28>
0x1007cc8dc <+412>: adr x0, #807928 ; "fatal error"
0x1007cc8e0 <+416>: nop
0x1007cc8e4 <+420>: adr x3, #808332 ; "shift amount is larger than type size in bits"
0x1007cc8e8 <+424>: nop
0x1007cc8ec <+428>: movz w1, #0xb
0x1007cc8f0 <+432>: orr w2, wzr, #0x2
0x1007cc8f4 <+436>: movz w4, #0x2d
0x1007cc8f8 <+440>: orr w5, wzr, #0x2
0x1007cc8fc <+444>: bl 0x1007cc740 ; <+0>
0x1007cc900 <+448>: adr x0, #807892 ; "fatal error"
0x1007cc904 <+452>: nop
0x1007cc908 <+456>: adr x3, #811176 ; "value is outside of Unicode codespace"
0x1007cc90c <+460>: nop
0x1007cc910 <+464>: movz w1, #0xb
0x1007cc914 <+468>: orr w2, wzr, #0x2
0x1007cc918 <+472>: movz w4, #0x25
0x1007cc91c <+476>: orr w5, wzr, #0x2
0x1007cc920 <+480>: bl 0x1007cc740 ; <+0>
0x1007cc924 <+484>: lsr w10, w0, #18
0x1007cc928 <+488>: orr w11, w10, #0xf0
0x1007cc92c <+492>: cmp w11, w11, uxtb
0x1007cc930 <+496>: b.ne 0x1007cc94c ; <+524>
0x1007cc934 <+500>: orr w10, wzr, #0xffffff80
0x1007cc938 <+504>: bfxil w10, w0, #12, #6
0x1007cc93c <+508>: and x11, x11, #0xff
0x1007cc940 <+512>: str x11, [sp, #8]
0x1007cc944 <+516>: orr w12, wzr, #0x1
0x1007cc948 <+520>: b 0x1007cc854 ; <+276>
0x1007cc94c <+524>: brk #0x1
Why is a line within a function that's not being called causing a crash?
Seen similar issues to this on the net, but no solutions. It seems to have cropped up with iOS 8. With NSZombie turned on, I see the error:
[UIViewAnimationState release]: message sent to deallocated instance 0x1701c9d80
Then the stack of memory addresses in the webthread:
CoreFoundation`___forwarding___:
0x18708fdb4 <+0>: stp x26, x25, [sp, #-80]!
0x18708fdb8 <+4>: stp x24, x23, [sp, #16]
0x18708fdbc <+8>: stp x22, x21, [sp, #32]
0x18708fdc0 <+12>: stp x20, x19, [sp, #48]
0x18708fdc4 <+16>: stp x29, x30, [sp, #64]
0x18708fdc8 <+20>: add x29, sp, #64
0x18708fdcc <+24>: sub sp, sp, #32
0x18708fdd0 <+28>: mov x22, x1
0x18708fdd4 <+32>: mov x20, x0
0x18708fdd8 <+36>: ldr x19, [x20]
0x18708fddc <+40>: and x8, x19, #0x7000000000000000
0x18708fde0 <+44>: cmp x19, #0
0x18708fde4 <+48>: ccmp x8, #0, #0, lt
0x18708fde8 <+52>: b.eq 0x18708ffe8 ; <+564>
0x18708fdec <+56>: ldr x21, [x20, #8]
0x18708fdf0 <+60>: mov x0, x19
0x18708fdf4 <+64>: bl 0x1870f2f58 ; symbol stub for: +[NSOrderedSet orderedSetWithOrderedSet:]
0x18708fdf8 <+68>: mov x23, x0
0x18708fdfc <+72>: bl 0x1870f2db4 ; symbol stub for: __destroy_helper_block_167
0x18708fe00 <+76>: mov x24, x0
0x18708fe04 <+80>: adrp x8, 74051
0x18708fe08 <+84>: nop
0x18708fe0c <+88>: ldr x25, [x8, #384]
0x18708fe10 <+92>: mov x0, x23
0x18708fe14 <+96>: mov x1, x25
0x18708fe18 <+100>: bl 0x1870f2dd8 ; symbol stub for: __destroy_helper_block_171
0x18708fe1c <+104>: cbz w0, 0x18708fe58 ; <+164>
0x18708fe20 <+108>: mov x0, x19
0x18708fe24 <+112>: mov x1, x25
0x18708fe28 <+116>: mov x2, x21
0x18708fe2c <+120>: bl 0x1870f2ec8 ; symbol stub for: -[NSOrderedSet initWithObject:]
0x18708fe30 <+124>: cmp x0, #0
0x18708fe34 <+128>: ccmp x0, x19, #4, ne
0x18708fe38 <+132>: b.eq 0x18708fe58 ; <+164>
0x18708fe3c <+136>: and x8, x0, #0x7000000000000000
0x18708fe40 <+140>: cmp x0, #0
0x18708fe44 <+144>: ccmp x8, #0, #0, lt
0x18708fe48 <+148>: b.eq 0x18708ffe4 ; <+560>
0x18708fe4c <+152>: str x0, [x20]
0x18708fe50 <+156>: movz x20, #0
0x18708fe54 <+160>: b 0x187090024 ; <+624>
0x18708fe58 <+164>: adrp x1, 514
0x18708fe5c <+168>: add x1, x1, #2751
0x18708fe60 <+172>: movz x2, #0xa
0x18708fe64 <+176>: mov x0, x24
0x18708fe68 <+180>: bl 0x1870f3dec ; symbol stub for: __destroy_helper_block_467
0x18708fe6c <+184>: cbz w0, 0x187090044 ; <+656>
0x18708fe70 <+188>: adrp x8, 74051
0x18708fe74 <+192>: nop
0x18708fe78 <+196>: ldr x24, [x8, #328]
0x18708fe7c <+200>: mov x0, x23
0x18708fe80 <+204>: mov x1, x24
0x18708fe84 <+208>: bl 0x1870f2dd8 ; symbol stub for: __destroy_helper_block_171
0x18708fe88 <+212>: tbz w0, #0, 0x187090094 ; <+736>
0x18708fe8c <+216>: mov x0, x19
0x18708fe90 <+220>: mov x1, x24
0x18708fe94 <+224>: mov x2, x21
0x18708fe98 <+228>: bl 0x1870f2ec8 ; symbol stub for: -[NSOrderedSet initWithObject:]
0x18708fe9c <+232>: mov x24, x0
0x18708fea0 <+236>: cbz x24, 0x1870900e8 ; <+820>
0x18708fea4 <+240>: adrp x8, 74051
0x18708fea8 <+244>: nop
0x18708feac <+248>: ldr x1, [x8, #280]
0x18708feb0 <+252>: mov x0, x24
0x18708feb4 <+256>: bl 0x1870f2ec8 ; symbol stub for: -[NSOrderedSet initWithObject:]
0x18708feb8 <+260>: mov x23, x0
0x18708febc <+264>: ldr x8, [x23]
0x18708fec0 <+268>: ldrh w8, [x8, #34]
0x18708fec4 <+272>: ubfx x8, x8, #6, #1
0x18708fec8 <+276>: cmp x8, x22
0x18708fecc <+280>: b.eq 0x18708ff18 ; <+356>
0x18708fed0 <+284>: mov x0, x21
0x18708fed4 <+288>: bl 0x1870f2fa0 ; symbol stub for: -[NSMutableOrderedSet setObject:atIndex:]
0x18708fed8 <+292>: ldr x8, [x23]
0x18708fedc <+296>: ldrh w8, [x8, #34]
0x18708fee0 <+300>: adrp x9, 535
0x18708fee4 <+304>: add x9, x9, #4044
0x18708fee8 <+308>: tst w8, #0x40
0x18708feec <+312>: adrp x8, 506
0x18708fef0 <+316>: add x8, x8, #1640
0x18708fef4 <+320>: csel x10, x8, x9, ne
0x18708fef8 <+324>: cmp x22, #0
0x18708fefc <+328>: csel x8, x8, x9, ne
0x18708ff00 <+332>: str x8, [sp, #16]
0x18708ff04 <+336>: stp x0, x10, [sp]
0x18708ff08 <+340>: adrp x1, 74021
0x18708ff0c <+344>: add x1, x1, #3760
0x18708ff10 <+348>: orr w0, wzr, #0x4
0x18708ff14 <+352>: bl 0x187071f88 ; CFLog
0x18708ff18 <+356>: adrp x8, 74051
0x18708ff1c <+360>: ldr x0, [x8, #2360]
0x18708ff20 <+364>: nop
0x18708ff24 <+368>: nop
0x18708ff28 <+372>: ldr x1, [x8, #344]
0x18708ff2c <+376>: mov x2, x24
0x18708ff30 <+380>: mov x3, x20
0x18708ff34 <+384>: bl 0x1870f2ec8 ; symbol stub for: -[NSOrderedSet initWithObject:]
0x18708ff38 <+388>: mov x21, x0
0x18708ff3c <+392>: mov x0, x19
0x18708ff40 <+396>: bl 0x1870f2f58 ; symbol stub for: +[NSOrderedSet orderedSetWithOrderedSet:]
0x18708ff44 <+400>: adrp x8, 74051
0x18708ff48 <+404>: nop
0x18708ff4c <+408>: ldr x22, [x8, #392]
0x18708ff50 <+412>: mov x1, x22
0x18708ff54 <+416>: bl 0x1870f2dd8 ; symbol stub for: __destroy_helper_block_171
0x18708ff58 <+420>: cbz w0, 0x18708ff70 ; <+444>
0x18708ff5c <+424>: mov x0, x19
0x18708ff60 <+428>: mov x1, x22
0x18708ff64 <+432>: mov x2, x21
0x18708ff68 <+436>: bl 0x1870f2ec8 ; symbol stub for: -[NSOrderedSet initWithObject:]
0x18708ff6c <+440>: b 0x18708ff8c ; <+472>
0x18708ff70 <+444>: mov x0, x19
0x18708ff74 <+448>: bl 0x1870f2f64 ; symbol stub for: +[NSOrderedSet orderedSetWithSet:copyItems:]
0x18708ff78 <+452>: stp x19, x0, [sp]
0x18708ff7c <+456>: adrp x1, 74021
0x18708ff80 <+460>: add x1, x1, #3792
0x18708ff84 <+464>: orr w0, wzr, #0x4
0x18708ff88 <+468>: bl 0x187071f88 ; CFLog
0x18708ff8c <+472>: adrp x8, 74051
0x18708ff90 <+476>: ldrsw x8, [x8, #3972]
0x18708ff94 <+480>: ldrb w8, [x21, x8]
0x18708ff98 <+484>: cbz w8, 0x18708ffd4 ; <+544>
0x18708ff9c <+488>: ldr x8, [x23]
0x18708ffa0 <+492>: ldrb w9, [x8, #34]
0x18708ffa4 <+496>: tbz w9, #7, 0x18708ffd4 ; <+544>
0x18708ffa8 <+500>: adrp x9, 74051
0x18708ffac <+504>: ldrsw x9, [x9, #3964]
0x18708ffb0 <+508>: ldr x9, [x21, x9]
0x18708ffb4 <+512>: ldr w10, [x8, #28]
0x18708ffb8 <+516>: ldrb w11, [x8, #32]
0x18708ffbc <+520>: add x10, x11, x10
0x18708ffc0 <+524>: ldr x0, [x20, x10]
0x18708ffc4 <+528>: ldr x1, [x9, x10]
0x18708ffc8 <+532>: ldr x8, [x8]
0x18708ffcc <+536>: ldr w2, [x8, #16]
0x18708ffd0 <+540>: bl 0x1870f39fc ; symbol stub for: __NSOrderedSetEnumerate
0x18708ffd4 <+544>: adrp x8, 74051
0x18708ffd8 <+548>: ldrsw x8, [x8, #3960]
0x18708ffdc <+552>: ldr x20, [x21, x8]
0x18708ffe0 <+556>: b 0x187090024 ; <+624>
0x18708ffe4 <+560>: mov x19, x0
0x18708ffe8 <+564>: mov x0, x19
0x18708ffec <+568>: bl 0x18709399c ; getAtomTarget
0x18708fff0 <+572>: mov x21, x0
0x18708fff4 <+576>: str x21, [x20]
0x18708fff8 <+580>: adrp x0, 73983
0x18708fffc <+584>: ldr x0, [x0, #384]
0x187090000 <+588>: orr x3, xzr, #0x400
0x187090004 <+592>: mov x1, x20
0x187090008 <+596>: mov x2, x20
0x18709000c <+600>: movz w4, #0
0x187090010 <+604>: bl 0x187092070 ; __invoking___
0x187090014 <+608>: ldr x8, [x20]
0x187090018 <+612>: cmp x8, x21
0x18709001c <+616>: b.ne 0x187090024 ; <+624>
0x187090020 <+620>: str x19, [x20]
0x187090024 <+624>: mov x0, x20
0x187090028 <+628>: sub sp, x29, #64
0x18709002c <+632>: ldp x29, x30, [sp, #64]
0x187090030 <+636>: ldp x20, x19, [sp, #48]
0x187090034 <+640>: ldp x22, x21, [sp, #32]
0x187090038 <+644>: ldp x24, x23, [sp, #16]
0x18709003c <+648>: ldp x26, x25, [sp], #80
0x187090040 <+652>: ret
0x187090044 <+656>: adrp x8, 74066
0x187090048 <+660>: add x8, x8, #288
0x18709004c <+664>: ldrb w8, [x8]
0x187090050 <+668>: cbz w8, 0x18709006c ; <+696>
0x187090054 <+672>: movz x2, #0
0x187090058 <+676>: movz w0, #0x15
0x18709005c <+680>: mov x1, x19
0x187090060 <+684>: movz x3, #0
0x187090064 <+688>: movz x4, #0
0x187090068 <+692>: bl 0x187045204 ; __CFRecordAllocationEvent
0x18709006c <+696>: add x20, x24, #10
0x187090070 <+700>: mov x0, x21
0x187090074 <+704>: bl 0x1870f2fa0 ; symbol stub for: -[NSMutableOrderedSet setObject:atIndex:]
0x187090078 <+708>: mov x8, x0
0x18709007c <+712>: stp x8, x19, [sp, #8]
0x187090080 <+716>: str x20, [sp]
0x187090084 <+720>: adrp x8, 74020
0x187090088 <+724>: add x8, x8, #3600
0x18709008c <+728>: orr w0, wzr, #0x3
0x187090090 <+732>: b 0x187090174 ; <+960>
0x187090094 <+736>: mov x0, x23
0x187090098 <+740>: bl 0x1870f2dc0 ; symbol stub for: ___CFPreferencesRemoveSuitePreferencesFromAppWithContainer_block_invoke169
0x18709009c <+744>: mov x22, x0
0x1870900a0 <+748>: mov x0, x19
0x1870900a4 <+752>: bl 0x1870f2f64 ; symbol stub for: +[NSOrderedSet orderedSetWithSet:copyItems:]
0x1870900a8 <+756>: mov x20, x0
0x1870900ac <+760>: cbnz x22, 0x1870900d0 ; <+796>
0x1870900b0 <+764>: mov x0, x19
0x1870900b4 <+768>: bl 0x1870f2f64 ; symbol stub for: +[NSOrderedSet orderedSetWithSet:copyItems:]
0x1870900b8 <+772>: mov x8, x0
0x1870900bc <+776>: stp x20, x8, [sp, #8]
0x1870900c0 <+780>: str x19, [sp]
0x1870900c4 <+784>: adrp x8, 74020
0x1870900c8 <+788>: add x8, x8, #3632
0x1870900cc <+792>: b 0x1870900dc ; <+808>
0x1870900d0 <+796>: stp x19, x20, [sp]
0x1870900d4 <+800>: adrp x8, 74020
0x1870900d8 <+804>: add x8, x8, #3664
0x1870900dc <+808>: orr w0, wzr, #0x4
0x1870900e0 <+812>: mov x1, x8
0x1870900e4 <+816>: bl 0x187071f88 ; CFLog
0x1870900e8 <+820>: mov x0, x21
0x1870900ec <+824>: bl 0x1870f2fa0 ; symbol stub for: -[NSMutableOrderedSet setObject:atIndex:]
0x1870900f0 <+828>: mov x20, x0
0x1870900f4 <+832>: bl 0x1870f2fac ; symbol stub for: -[NSMutableOrderedSet setObject:atIndexedSubscript:]
0x1870900f8 <+836>: mov x8, x0
0x1870900fc <+840>: cmp x8, x21
0x187090100 <+844>: b.eq 0x187090120 ; <+876>
0x187090104 <+848>: stp x20, x8, [sp, #8]
0x187090108 <+852>: str x21, [sp]
0x18709010c <+856>: adrp x8, 74020
0x187090110 <+860>: add x8, x8, #3696
0x187090114 <+864>: orr w0, wzr, #0x4
0x187090118 <+868>: mov x1, x8
0x18709011c <+872>: bl 0x187071f88 ; CFLog
0x187090120 <+876>: mov x0, x19
0x187090124 <+880>: bl 0x1870f2f58 ; symbol stub for: +[NSOrderedSet orderedSetWithOrderedSet:]
0x187090128 <+884>: adrp x8, 74049
0x18709012c <+888>: nop
0x187090130 <+892>: ldr x20, [x8, #3456]
0x187090134 <+896>: mov x1, x20
0x187090138 <+900>: bl 0x1870f2dd8 ; symbol stub for: __destroy_helper_block_171
0x18709013c <+904>: mov x8, x0
0x187090140 <+908>: cbz w8, 0x187090158 ; <+932>
0x187090144 <+912>: mov x0, x19
0x187090148 <+916>: mov x1, x20
0x18709014c <+920>: mov x2, x21
0x187090150 <+924>: bl 0x1870f2ec8 ; symbol stub for: -[NSOrderedSet initWithObject:]
0x187090154 <+928>: brk #0x1
0x187090158 <+932>: mov x0, x19
0x18709015c <+936>: bl 0x1870f2f64 ; symbol stub for: +[NSOrderedSet orderedSetWithSet:copyItems:]
0x187090160 <+940>: mov x8, x0
0x187090164 <+944>: stp x19, x8, [sp]
0x187090168 <+948>: adrp x8, 74020
0x18709016c <+952>: add x8, x8, #3728
0x187090170 <+956>: orr w0, wzr, #0x4
0x187090174 <+960>: mov x1, x8
0x187090178 <+964>: bl 0x187071f88 ; CFLog
-> 0x18709017c <+968>: brk #0x1
Sometimes the app will build fine, and I can run it without issue. But other times it just crashes after pressing Run in XCode. I'm using the latest XCode on OS X Yosemite. Building for an iPad mini retina running 8.3
Edit
Stack trace from lldb:
* thread #9: tid = 0x14e8ec, 0x000000018709017c CoreFoundation`___forwarding___ + 968, name = 'WebThread', stop reason = EXC_BREAKPOINT (code=1, subcode=0x18709017c)
* frame #0: 0x000000018709017c CoreFoundation`___forwarding___ + 968
frame #1: 0x0000000186f92ccc CoreFoundation`_CF_forwarding_prep_0 + 92
frame #2: 0x0000000186f69458 CoreFoundation`CFRelease + 524
frame #3: 0x000000018b410b3c QuartzCore`CA::release_objects(X::List<void const*>*) + 32
frame #4: 0x000000018b416b50 QuartzCore`-[CAAnimation dealloc] + 84
frame #5: 0x0000000198551724 libobjc.A.dylib`(anonymous namespace)::AutoreleasePoolPage::pop(void*) + 564
frame #6: 0x0000000186f6d074 CoreFoundation`_CFAutoreleasePoolPop + 28
frame #7: 0x0000000187eacffc Foundation`-[NSAutoreleasePool drain] + 152
frame #8: 0x0000000186acdd80 CFNetwork`AutoAutoreleasePool::~AutoAutoreleasePool() + 36
frame #9: 0x0000000186aa9588 CFNetwork`___ZN27URLConnectionClient_Classic18_withDelegateAsyncEPKcU13block_pointerFvP16_CFURLConnectionPK33CFURLConnectionClientCurrent_VMaxE_block_invoke_2 + 228
frame #10: 0x00000001869cbac8 CFNetwork`RunloopBlockContext::_invoke_block(void const*, void*) + 76
frame #11: 0x0000000186f6ccdc CoreFoundation`CFArrayApplyFunction + 68
frame #12: 0x00000001869cb974 CFNetwork`RunloopBlockContext::perform() + 136
frame #13: 0x00000001869cb828 CFNetwork`MultiplexerSource::perform() + 312
frame #14: 0x00000001869cb654 CFNetwork`MultiplexerSource::_perform(void*) + 68
frame #15: 0x0000000187044240 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
frame #16: 0x00000001870434e4 CoreFoundation`__CFRunLoopDoSources0 + 264
frame #17: 0x0000000187041594 CoreFoundation`__CFRunLoopRun + 712
frame #18: 0x0000000186f6d2d4 CoreFoundation`CFRunLoopRunSpecific + 396
frame #19: 0x0000000195618894 WebCore`RunWebThread(void*) + 468
frame #20: 0x0000000198d6bdc8 libsystem_pthread.dylib`_pthread_body + 164
frame #21: 0x0000000198d6bd24 libsystem_pthread.dylib`_pthread_start + 160