No-overlapping edges with positioned nodes - graphviz

No-overlapping option (overlap=false) and positioned ("-n2" command-line parameter) are incompatible.
strict graph {
overlap=false;
1 [label="", xlabel=<<FONT POINT-SIZE="7">1</FONT>>, shape=circle, style=filled, width=0.05, pin=true, pos="120.4,31.1!"];
2 [label="", labelfontsize="5", xlabel=<<FONT POINT-SIZE="7">2</FONT>>, shape=circle, style=filled, width=0.05, pin=true, pos="73,35.5!"];
3 [label="", labelfontsize="5", xlabel=<<FONT POINT-SIZE="7">3</FONT>>, shape=circle, style=filled, width=0.05, pin=true, pos="236.2,35.2!"];
4 [label="", labelfontsize="5", xlabel=<<FONT POINT-SIZE="7">4</FONT>>, shape=circle, style=filled, width=0.05, pin=true, pos="350,100!"];
5 [label="", labelfontsize="5", xlabel=<<FONT POINT-SIZE="7">5</FONT>>, shape=circle, style=filled, width=0.05, pin=true, pos="350,90!"];
6 [label="", labelfontsize="5", xlabel=<<FONT POINT-SIZE="7">6</FONT>>, shape=circle, style=filled, width=0.05, pin=true, pos="350,80!"];
1 -- 4 [arrowhead=none, shape=none];
2 -- 5 [arrowhead=none, shape=none];
3 -- 6 [arrowhead=none, shape=none];
}
when a execute the folloing command-line:
neato -n2 -Tpng -ographviz-overlap-test.png graphviz-overlap-test.dotty
I got the following result:
Do you know alternative solution to produce graph of nodes connected with no-overlapping edge?
Thanks in advance,

As long as you tell graphviz the exact position of the nodes, no chance to avoid overlaps with the code you are using. I have manually exchanged the position of nodes 1 and 2 and this way re-ordered the nodes. I guess you produce the dotty file with some other software, that's the culprit.
strict graph {
overlap=false;
1 [label="", xlabel=<<FONT POINT-SIZE="7">1</FONT>>,
shape=circle, style=filled, width=0.05, pin=true, pos="73,35.5!"];
# ^^^^^^^^^^^^^^
2 [label="", labelfontsize="5", xlabel=<<FONT POINT-SIZE="7">2</FONT>>,
shape=circle, style=filled, width=0.05, pin=true, pos="120.4,31.1!"];
# ^^^^^^^^^^^^^^^^^
3 [label="", labelfontsize="5", xlabel=<<FONT POINT-SIZE="7">3</FONT>>, shape=circle, style=filled, width=0.05, pin=true, pos="236.2,35.2!"];
4 [label="", labelfontsize="5", xlabel=<<FONT POINT-SIZE="7">4</FONT>>, shape=circle, style=filled, width=0.05, pin=true, pos="350,100!"];
5 [label="", labelfontsize="5", xlabel=<<FONT POINT-SIZE="7">5</FONT>>, shape=circle, style=filled, width=0.05, pin=true, pos="350,90!"];
6 [label="", labelfontsize="5", xlabel=<<FONT POINT-SIZE="7">6</FONT>>, shape=circle, style=filled, width=0.05, pin=true, pos="350,80!"];
1 -- 4 [arrowhead=none, shape=none];
2 -- 5 [arrowhead=none, shape=none];
3 -- 6 [arrowhead=none, shape=none];
}
which produces

Related

How to report AppKit bug I can't reproduce but have dozens of reports (NSControlTrackMouse)

Since macOS Catalina I started to get report I can't reproduce but I know where is it crashing.
Register rsi has following selector in memory:
_controlStopTracking:at:inView:mouseIsUp:
SEGV_MAPERR has address 0x000059b575cd55f8 which is a result of 0x000059b575cd55e0+0x18
AppKit where it crashes:
if (*(int8_t *)(var_90 + 0x18) != 0x0) {
[r14 _controlStopTracking:r15 at:sign_extend_64(*(int8_t *)(var_70 + 0x18)) inView:r8 mouseIsUp:r9];
}
Reports are coming from multiple systems/languages and I can't simulate the crash.
How to report this or what can I do more (debugging)?
Exception Type: SIGSEGV
Exception Codes: SEGV_MAPERR at 0x59b575cd55f8
Crashed Thread: 0
Thread 0 Crashed:
0 libobjc.A.dylib 0x00007fff64e2501d objc_msgSend + 29
1 AppKit 0x00007fff2c098af0 NSControlTrackMouse + 1491
2 AppKit 0x00007fff2c0984f4 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 129
3 AppKit 0x00007fff2c5d92b5 -[NSStepperCell trackMouse:inRect:ofView:untilMouseUp:] + 161
4 AppKit 0x00007fff2c3c86c4 -[NSDatePickerCell(NSTextFieldWithStepperDatePickerInternal) _textFieldWithStepperTrackMouse:inRect:ofView:untilMouseUp:] + 391
5 AppKit 0x00007fff2c097733 -[NSControl mouseDown:] + 747
6 AppKit 0x00007fff2c095b0d -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 4906
7 AppKit 0x00007fff2bfffc5c -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 2611
8 AppKit 0x00007fff2bfff005 -[NSWindow(NSEventRouting) sendEvent:] + 348
9 AppKit 0x00007fff2bffd37c -[NSApplication(NSEvent) sendEvent:] + 351
10 AppKit 0x00007fff2be490cf -[NSApplication run] + 706
11 AppKit 0x00007fff2be1b465 NSApplicationMain + 776
12 Dynaper 0x00000001071d9199 main (receigen.h:5142)
13 libdyld.dylib 0x00007fff6619f7fd start + 0
Thread 0 crashed with x86_64 Thread State:
rflags: 0x0000000000010202 rax: 0x00007ffee8a765e8 rdi: 0x00006000018e55e0 r14: 0x00006000018e55e0
rsi: 0x00007fff2cadb39d r8: 0x0000000000000091 rdx: 0x00007f9e6cd39f10 r10: 0x000059b575cd55e0
cs: 0x000000000000002b fs: 0x0000000000000000 r9: 0x00000000000007fb r15: 0x00007f9e6cd39f10
rbx: 0x0000000000000000 r11: 0x00007fff2cadb39d rip: 0x00007fff64e2501d rbp: 0x00007ffee8a766b0
gs: 0x0000000000000000 rsp: 0x00007ffee8a76468 r12: 0x000060000088dd40 rcx: 0x0000000000000000
r13: 0x00006000018e45b0

Butchers algorithm in Jasmin

I keep getting errors and I have been trying to print this forever it seems. Ive looked for info on Jasmin and as far as I can tell there really isn't a lot of information. Any help with my code would be greatly appreciated. I'm supposed to use Butchers algorithm to print with Jasmin on the command line the next 10 years of Easter. Most of my problem is in the Printing of the Month and My code below.....
.class public example/Easterdeb
.super java/lang/Object
;
; standard initializer
.method public <init>()V
aload_0
invokenonvirtual java/lang/Object/<init>()V
return
.end method
.method public static main([Ljava/lang/String;)V
; set limits used by this method
.limit locals 20
.limit stack 6
; setup local variables:
; 1 - the PrintStream object held in java.lang.System.out
getstatic java/lang/System/out Ljava/io/PrintStream;
astore_1
; 2 - the integer 10 - the counter used in the loop
bipush 10
sipush 2016
istore_2 ;count is in 2
istore 4 ;year is in 4
; now loop 10 times printing out a number
Loop:
; compute 10 - <local variable 2> ...
iload 4 ;year
bipush 19
irem
istore 5 ; a is in 5
iload 4
bipush 100
idiv
istore 6 ; b is in 6
iload 4
bipush 100
irem
istore 7 ; c is in 7
iload 7
iload 6
bipush 4
idiv
istore 8 ; d is in 8
iload 6
bipush 4
irem
istore 9 ; e is in 9
iload 6
bipush 8
iadd
bipush 25
idiv
istore 10 ; f is in 10
iload 6
iload 10
isub
bipush 1
iadd
bipush 3
idiv
istore 11 ; g is in 11
bipush 19
iload 5
imul
iload 6
iadd
iload 8
isub
iload 11
isub
bipush 15
iadd
bipush 30
irem
istore 12 ; h is in 12
iload 7
bipush 4
idiv
istore 13 ; i is in 13
iload 7
bipush 4
irem
istore 14 ; k is in 14
bipush 32
bipush 2
iload 9 ;load e
imul
iadd
bipush 2
iadd
iload 13 ; load i
imul
iload 12 ; load h
isub
iload 14 ; load k
isub
bipush 7
irem
istore 15 ; x is in 15
iload 5
bipush 11
iload 12
imul
iadd
bipush 22
iload 15
imul
iadd
sipush 451
idiv
istore 16 ; m is in 16
iload 12
iload 15
iadd
bipush 7
iload 16
imul
isub
bipush 114
iadd
bipush 31
idiv
istore 17 ; easter month is in 17
iload 12
iload 15
iadd
bipush 7
iload 16
imul
isub
bipush 114
iadd
bipush 31
irem
bipush 1
iadd
istore 18 ; p is in 18
iload 17
bipush 4
isub
ifeq Print_April
aload_1
ldc "March"
swap
goto PRINT_IT
Print_April:
aload_1
ldc "April"
PRINT_IT:
invokestatic java/lang/String/valueOf(I)Ljava/lang/String;
astore_3
; ... and print it
aload_1 ; push the PrintStream object
aload_3 ; push the string we just created - then ...
invokevirtual java/io/PrintStream/println(Ljava/lang/String;)V
; decrement the counter and loop
iinc 4 1 ;increment year
iinc 2 -1
iload_2
ifne Loop
; done
return
.end method
SO I figured it out here it is
.class public Easter
.super java/lang/Object
.method public <init>()V
aload_0
invokespecial java/lang/Object/<init>()V
return
.end method
.method public static main([Ljava/lang/String;)V
.limit stack 100
.limit locals 50
getstatic java/lang/System/out Ljava/io/PrintStream;
astore_1
; 2 - the integer 10 - the counter used in the loop
sipush 2009
istore 4 ;year is in 4
bipush 10
istore_2 ;count is in 2
; now loop 10 times printing out a number
Loop:
iinc 4 1
iload 4
bipush 19
irem
istore 5 ; a is in 5
iload 4
bipush 100
idiv
istore 6 ; b is in 6
iload 4
bipush 100
irem
istore 7 ; c is in 7
iload 6
bipush 4
idiv
istore 8 ; d is in 8
iload 6
bipush 4
irem
istore 9 ; e is in 9
iload 6
bipush 8
iadd
bipush 25
idiv
istore 10 ; f is in 10
iload 6
iload 10
isub
bipush 1
iadd
bipush 3
idiv
istore 11 ; g is in 11
bipush 19
iload 5
imul
iload 6
bipush 15
iadd
iadd
iload 8
iload 11
iadd
isub
bipush 30
irem
istore 12 ; h is in 12
iload 7
bipush 4
idiv
istore 13 ; i is in 13
iload 7
bipush 4
irem
istore 14 ; k is in 14
bipush 2
iload 9 ;load e
imul
bipush 2
iload 13 ; load i
imul
bipush 32
iadd
iadd
iload 12 ; load h
iload 14 ; load k
iadd
isub
bipush 7
irem
istore 15 ; x is in 15
bipush 11
iload 12 ;load h
imul
bipush 22
iload 15
imul
iload 5 ;load a
iadd
iadd
sipush 451
idiv
istore 16 ; m is in 16
iload 12
iload 15
bipush 114
iadd
iadd
bipush 7
iload 16
imul
isub
istore 17
iload 17
bipush 31
idiv
istore 18 ; easter month is in 17
iload 17
bipush 31
irem
istore 19 ; p is in 19
iload 18
bipush 4
isub
ifeq Print_April
aload_1
ldc "March "
goto PRINT_IT
Print_April:
aload_1
ldc "April "
goto PRINT_IT
PRINT_IT:
invokevirtual java/io/PrintStream/print(Ljava/lang/String;)V
aload_1
iload 19
bipush 1
iadd
invokestatic java/lang/String/valueOf(I)Ljava/lang/String;
invokevirtual java/io/PrintStream/print(Ljava/lang/String;)V
aload_1
ldc ", "
invokevirtual java/io/PrintStream/print(Ljava/lang/String;)V
aload_1
iload 4
invokestatic java/lang/String/valueOf(I)Ljava/lang/String;
invokevirtual java/io/PrintStream/print(Ljava/lang/String;)V
aload_1
ldc "\n"
invokevirtual java/io/PrintStream/print(Ljava/lang/String;)V
iinc 2 -1 ; check loop
iload_2
ifne Loop
return
.end method

Error when building Xamarin.Forms for iOS in release mode

we developed a Xamarin Forms App for iOS and Android. The App was working for some months now and is available in the stores.
But since the last release cycle of our app, the app crashes at startup.
The occurs only in release mode and only on a real device. All other combinations are still working ( Release on Simulator / Debug on Device / ..).
We tried also a rollback of the version but still not possible to build a release version.
And also tried to change the Linker options.
At the moment it looks like there was a change in Xamarin or Xcode but this is just am assumption.
When I try to debug via Console output, everything is loaded until it calls the ApplicationLoad in Appdelegate of the iOS project. So it looks like the problem is in Forms code.
I attach the Stacktrace from the Device Log. Would be great if someone has an idea to narrow down the problem.
Thanks in advance.
Jul 6 10:30:38 Christians-iPhone SpringBoard[58] <Error>: SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
Jul 6 10:30:38 Christians-iPhone syslogd[25] <Notice>: ASL Sender Statistics
Jul 6 10:30:38 Christians-iPhone SpringBoard[58] <Error>: SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
Jul 6 10:30:39 Christians-iPhone kernel[0] <Notice>: xpcproxy[1511] Container: /private/var/mobile/Containers/Data/Application/600896D2-F214-44FA-86AE-246A07E303EB (sandbox)
Jul 6 10:30:39 Christians-iPhone EasierLife[1511] <Warning>: Found new TLS offset at 224
Jul 6 10:30:39 Christians-iPhone EasierLife[1511] <Warning>: The app delegate must implement the window property if it wants to use a main storyboard file.
Jul 6 10:30:39 Christians-iPhone EasierLife[1511] <Warning>: Xamarin.iOS: Unable to locate assembly 'Akavache.Mac' (culture: '')
Jul 6 10:30:39 Christians-iPhone EasierLife[1511] <Warning>: Xamarin.iOS: Unable to locate assembly 'Akavache.Mac' (culture: '')
Jul 6 10:30:39 Christians-iPhone EasierLife[1511] <Warning>: Xamarin.iOS: Unable to locate assembly 'Akavache.Deprecated' (culture: '')
Jul 6 10:30:39 Christians-iPhone EasierLife[1511] <Warning>: Xamarin.iOS: Unable to locate assembly 'Akavache.Deprecated' (culture: '')
Jul 6 10:30:39 Christians-iPhone EasierLife[1511] <Warning>: Xamarin.iOS: Unable to locate assembly 'Akavache.Mobile' (culture: '')
Jul 6 10:30:39 Christians-iPhone EasierLife[1511] <Warning>: Xamarin.iOS: Unable to locate assembly 'Akavache.Mobile' (culture: '')
Jul 6 10:30:39 Christians-iPhone SpringBoard[58] <Warning>: BSXPCMessage received error for message: Connection invalid
Jul 6 10:30:39 Christians-iPhone SpringBoard[58] <Warning>: BSXPCMessage received error for message: Connection invalid
Jul 6 10:30:39 Christians-iPhone SpringBoard[58] <Warning>: HW kbd: Failed to set (null) as keyboard focus
Jul 6 10:30:39 Christians-iPhone SpringBoard[58] <Warning>: UNNotificationRegistrarConnectionListener connection invalidated
Jul 6 10:30:39 Christians-iPhone com.apple.xpc.launchd[1] (UIKitApplication:de.easierlife.ambioassist[0x548][1511]) <Notice>: Service exited due to signal: Abort trap: 6
Jul 6 10:30:39 Christians-iPhone diagnosticd[86] <Error>: unable to find offset 0x8458b9a4 in shared cache for arch 'arm64'
Jul 6 10:30:39 Christians-iPhone ReportCrash[1512] <Notice>: platform_thread_get_unique_id matched 524823
Jul 6 10:30:39 Christians-iPhone ReportCrash[1512] <Notice>: Formulating report for corpse[1511] EasierLife
Incident Identifier: 0A3335E6-E745-4DCF-BFB7-311BB924E8E2
CrashReporter Key: cbb09f8a78d5056bd2a27c35a5ea66615507b95d
Hardware Model: iPhone7,2
Process: EasierLife [1472]
Path: /private/var/mobile/Containers/Bundle/Application/31C00A3A-7F57-41EE-9267-E796C7964815/EasierLife.app/EasierLife
Identifier: de.easierlife.new
Version: 25 (1.11)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
Date/Time: 2017-07-05 18:07:13.13 +0200
Launch Time: 2017-07-05 18:07:12.12 +0200
OS Version: iOS 9.2.1 (13D15)
Report Version: 105
Exception Type: EXC_BAD_ACCESS (SIGABRT)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000000
Triggered by Thread: 0
Filtered syslog:
None found
Last Exception Backtrace:
0 CoreFoundation 0x184b11900 __exceptionPreprocess + 124
1 libobjc.A.dylib 0x18417ff80 objc_exception_throw + 56
2 CoreFoundation 0x184b115c0 -[NSException raise] + 12
3 EasierLife 0x101ac3098 wrapper_managed_to_native_Xamarin_ObjCRuntime_Messaging_void_objc_msgSend_intptr_intptr (/<unknown>:1)
4 EasierLife 0x101ab20c0 HockeyApp_iOS_BITHockeyManager_ConvertToNsExceptionAndAbort_object (/<unknown>:1)
5 EasierLife 0x101ab1f0c HockeyApp_iOS_BITHockeyManager_ThrowExceptionAsNative_object (/<unknown>:1)
6 EasierLife 0x101ab3d68 HockeyApp_iOS_BITHockeyManager__StartManagerm__0_object_System_UnhandledExceptionEventArgs (/<unknown>:1)
7 EasierLife 0x1003efe94 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 244
8 EasierLife 0x101bdddf0 mono_jit_runtime_invoke (mini-runtime.c:2509)
9 EasierLife 0x101c56c4c do_runtime_invoke (object.c:2860)
10 EasierLife 0x101c59844 call_unhandled_exception_delegate (object.c:4483)
11 EasierLife 0x101c59398 mono_unhandled_exception (object.c:4577)
12 EasierLife 0x101bcebcc mono_handle_exception_internal (mini-exceptions.c:1831)
13 EasierLife 0x101bcdd38 mono_handle_exception (mini-exceptions.c:2126)
14 EasierLife 0x101bc5cc8 mono_arm_throw_exception (exceptions-arm64.c:408)
15 EasierLife 0x100425cb8 throw_exception + 168
16 EasierLife 0x101be020c mono_magic_trampoline (mini-trampolines.c:832)
17 EasierLife 0x100424d2c generic_trampoline_jit + 252
18 EasierLife 0x100d47944 EasierLife_EasierLifeApp_InitCache_string (EasierLifeApp.xaml.cs:114)
19 EasierLife 0x100d479f8 EasierLife_EasierLifeApp__ctor_string (EasierLifeApp.xaml.cs:128)
20 EasierLife 0x100138524 EasierLife_iOS_AppDelegate_FinishedLaunching_UIKit_UIApplication_Foundation_NSDictionary (/<unknown>:1)
21 EasierLife 0x1003efe94 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 244
22 EasierLife 0x101bdddf0 mono_jit_runtime_invoke (mini-runtime.c:2509)
23 EasierLife 0x101c56c4c do_runtime_invoke (object.c:2860)
24 EasierLife 0x101c56ba8 mono_runtime_invoke (object.c:3018)
25 EasierLife 0x101ad3674 native_to_managed_trampoline_24(objc_object*, objc_selector*, _MonoMethod**, UIApplication*, NSDictionary*, unsigned int) (registrar.m:997)
26 EasierLife 0x101ad3ecc -[AppDelegate application:didFinishLaunchingWithOptions:] (registrar.m:10219)
27 UIKit 0x189879704 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 400
28 UIKit 0x189aa8130 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 2904
29 UIKit 0x189aac4b8 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1672
30 UIKit 0x189aa95c0 -[UIApplication workspaceDidEndTransaction:] + 168
31 FrontBoardServices 0x1860c7790 -[FBSSerialQueue _performNext] + 184
32 FrontBoardServices 0x1860c7b10 -[FBSSerialQueue _performNextFromRunLoopSource] + 56
33 CoreFoundation 0x184ac8efc __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
34 CoreFoundation 0x184ac8990 __CFRunLoopDoSources0 + 540
35 CoreFoundation 0x184ac6690 __CFRunLoopRun + 724
36 CoreFoundation 0x1849f5680 CFRunLoopRunSpecific + 384
37 UIKit 0x189872580 -[UIApplication _run] + 460
38 UIKit 0x18986cd90 UIApplicationMain + 204
39 EasierLife 0x100c078a4 wrapper_managed_to_native_UIKit_UIApplication_UIApplicationMain_int_string___intptr_intptr (/<unknown>:1)
40 EasierLife 0x100b970ac UIKit_UIApplication_Main_string___intptr_intptr (UIApplication.cs:79)
41 EasierLife 0x100b9706c UIKit_UIApplication_Main_string___string_string (UIApplication.cs:63)
42 EasierLife 0x100138264 EasierLife_iOS_Application_Main_string__ (/<unknown>:1)
43 EasierLife 0x1003efe94 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 244
44 EasierLife 0x101bdddf0 mono_jit_runtime_invoke (mini-runtime.c:2509)
45 EasierLife 0x101c56c4c do_runtime_invoke (object.c:2860)
46 EasierLife 0x101c59e70 do_exec_main_checked (object.c:4680)
47 EasierLife 0x101bc264c mono_jit_exec (driver.g.c:1037)
48 EasierLife 0x101d09e70 xamarin_main (monotouch-main.m:480)
49 EasierLife 0x101af8aa0 main (main.m:181)
50 libdyld.dylib 0x1845968b8 start + 4
Thread 0 name: tid_b07 Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x00000001846b4140 __pthread_kill + 8
1 libsystem_pthread.dylib 0x000000018477cef8 pthread_kill + 112
2 libsystem_c.dylib 0x0000000184625dac abort + 140
3 EasierLife 0x0000000101b82248 -[BITPLCrashReporter generateLiveReportWithThread:] + 0
4 CoreFoundation 0x0000000184b11c88 __handleUncaughtException + 652
5 libobjc.A.dylib 0x000000018418023c _objc_terminate() + 112
6 EasierLife 0x0000000101b6a110 BITCrashUncaughtCXXTerminateHandler() (BITCrashCXXExceptionHandler.mm:181)
7 libc++abi.dylib 0x0000000184172f44 std::__terminate(void (*)()) + 16
8 libc++abi.dylib 0x000000018417285c __cxxabiv1::exception_cleanup_func(_Unwind_Reason_Code, _Unwind_Exception*) + 0
9 libobjc.A.dylib 0x0000000184180094 _objc_exception_destructor(void*) + 0
10 CoreFoundation 0x0000000184b115c0 -[NSException init] + 0
11 EasierLife 0x0000000101ac3098 wrapper_managed_to_native_Xamarin_ObjCRuntime_Messaging_void_objc_msgSend_intptr_intptr (/<unknown>:1)
12 EasierLife 0x0000000101ab20c0 HockeyApp_iOS_BITHockeyManager_ConvertToNsExceptionAndAbort_object (/<unknown>:1)
13 EasierLife 0x0000000101ab1f0c HockeyApp_iOS_BITHockeyManager_ThrowExceptionAsNative_object (/<unknown>:1)
14 EasierLife 0x0000000101ab3d68 HockeyApp_iOS_BITHockeyManager__StartManagerm__0_object_System_UnhandledExceptionEventArgs (/<unknown>:1)
15 EasierLife 0x00000001003efe94 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 244
16 EasierLife 0x0000000101bdddf0 mono_jit_runtime_invoke (mini-runtime.c:2510)
17 EasierLife 0x0000000101c56c4c do_runtime_invoke (object.c:2860)
18 EasierLife 0x0000000101c59844 call_unhandled_exception_delegate (object.c:4484)
19 EasierLife 0x0000000101c59398 mono_unhandled_exception (object.c:4577)
20 EasierLife 0x0000000101bcebcc mono_handle_exception_internal (mini-exceptions.c:1831)
21 EasierLife 0x0000000101bcdd38 mono_handle_exception (mini-exceptions.c:2126)
22 EasierLife 0x0000000101bc5cc8 mono_arm_throw_exception (exceptions-arm64.c:410)
23 EasierLife 0x0000000100425cb8 throw_exception + 168
24 EasierLife 0x0000000101be020c mono_magic_trampoline (mini-trampolines.c:834)
25 EasierLife 0x0000000100424d2c generic_trampoline_jit + 252
26 EasierLife 0x0000000100d47944 EasierLife_EasierLifeApp_InitCache_string (EasierLifeApp.xaml.cs:115)
27 EasierLife 0x0000000100d479f8 EasierLife_EasierLifeApp__ctor_string (EasierLifeApp.xaml.cs:130)
28 EasierLife 0x0000000100138524 EasierLife_iOS_AppDelegate_FinishedLaunching_UIKit_UIApplication_Foundation_NSDictionary (/<unknown>:1)
29 EasierLife 0x00000001003efe94 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 244
30 EasierLife 0x0000000101bdddf0 mono_jit_runtime_invoke (mini-runtime.c:2510)
31 EasierLife 0x0000000101c56c4c do_runtime_invoke (object.c:2860)
32 EasierLife 0x0000000101c56ba8 mono_runtime_invoke (object.c:3018)
33 EasierLife 0x0000000101ad3674 native_to_managed_trampoline_24(objc_object*, objc_selector*, _MonoMethod**, UIApplication*, NSDictionary*, unsigned int) (registrar.m:997)
34 EasierLife 0x0000000101ad3ecc -[AppDelegate application:didFinishLaunchingWithOptions:] (registrar.m:10219)
35 UIKit 0x0000000189879704 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 400
36 UIKit 0x0000000189aa8130 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 2904
37 UIKit 0x0000000189aac4b8 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1672
38 UIKit 0x0000000189aa95c0 -[UIApplication workspaceDidEndTransaction:] + 168
39 FrontBoardServices 0x00000001860c7790 -[FBSSerialQueue _performNext] + 184
40 FrontBoardServices 0x00000001860c7b10 -[FBSSerialQueue _performNextFromRunLoopSource] + 56
41 CoreFoundation 0x0000000184ac8efc __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
42 CoreFoundation 0x0000000184ac8990 __CFRunLoopDoSources0 + 540
43 CoreFoundation 0x0000000184ac6690 __CFRunLoopRun + 724
44 CoreFoundation 0x00000001849f5680 CFRunLoopRunSpecific + 384
45 UIKit 0x0000000189872580 -[UIApplication _run] + 460
46 UIKit 0x000000018986cd90 UIApplicationMain + 204
47 EasierLife 0x0000000100c078a4 wrapper_managed_to_native_UIKit_UIApplication_UIApplicationMain_int_string___intptr_intptr (/<unknown>:1)
48 EasierLife 0x0000000100b970ac UIKit_UIApplication_Main_string___intptr_intptr (UIApplication.cs:79)
49 EasierLife 0x0000000100b9706c UIKit_UIApplication_Main_string___string_string (UIApplication.cs:63)
50 EasierLife 0x0000000100138264 EasierLife_iOS_Application_Main_string__ (/<unknown>:1)
51 EasierLife 0x00000001003efe94 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 244
52 EasierLife 0x0000000101bdddf0 mono_jit_runtime_invoke (mini-runtime.c:2510)
53 EasierLife 0x0000000101c56c4c do_runtime_invoke (object.c:2860)
54 EasierLife 0x0000000101c59e70 do_exec_main_checked (object.c:4681)
55 EasierLife 0x0000000101bc264c mono_jit_exec (driver.g.c:1037)
56 EasierLife 0x0000000101d09e70 xamarin_main (monotouch-main.m:480)
57 EasierLife 0x0000000101af8aa0 main (main.m:181)
58 libdyld.dylib 0x00000001845968b8 start + 4
Thread 1:
0 libsystem_kernel.dylib 0x00000001846b4b6c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000184779530 _pthread_wqthread + 1284
2 libsystem_pthread.dylib 0x0000000184779020 start_wqthread + 4
Thread 2 name: Dispatch queue: com.apple.libdispatch-manager
Thread 2:
0 libsystem_kernel.dylib 0x00000001846b54fc kevent_qos + 8
1 libdispatch.dylib 0x000000018457894c _dispatch_mgr_invoke + 232
2 libdispatch.dylib 0x00000001845677bc _dispatch_source_invoke + 0
Thread 3:
0 libsystem_kernel.dylib 0x00000001846b4b6c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000184779530 _pthread_wqthread + 1284
2 libsystem_pthread.dylib 0x0000000184779020 start_wqthread + 4
Thread 4:
0 libsystem_kernel.dylib 0x00000001846b4b6c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000184779530 _pthread_wqthread + 1284
2 libsystem_pthread.dylib 0x0000000184779020 start_wqthread + 4
Thread 5:
0 libsystem_kernel.dylib 0x00000001846b4440 __semwait_signal + 8
1 libsystem_c.dylib 0x00000001845d122c nanosleep + 212
2 libc++.1.dylib 0x000000018414a314 std::__1::this_thread::sleep_for(std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > const&) + 84
3 JavaScriptCore 0x00000001882e5b74 bmalloc::Heap::scavenge(std::__1::unique_lock<bmalloc::StaticMutex>&, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000l> >) + 188
4 JavaScriptCore 0x00000001882e5824 bmalloc::Heap::concurrentScavenge() + 84
5 JavaScriptCore 0x00000001882e7d64 bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>::entryPoint() + 100
6 JavaScriptCore 0x00000001882e7cf4 bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>::pthreadEntryPoint(void*) + 12
7 libsystem_pthread.dylib 0x000000018477bb28 _pthread_body + 156
8 libsystem_pthread.dylib 0x000000018477ba8c _pthread_body + 0
9 libsystem_pthread.dylib 0x0000000184779028 thread_start + 4
Thread 6 name: WebThread
Thread 6:
0 libsystem_kernel.dylib 0x00000001846994bc mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000184699338 mach_msg + 72
2 CoreFoundation 0x0000000184ac8ac0 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x0000000184ac67c4 __CFRunLoopRun + 1032
4 CoreFoundation 0x00000001849f5680 CFRunLoopRunSpecific + 384
5 WebCore 0x00000001885a5998 RunWebThread(void*) + 456
6 libsystem_pthread.dylib 0x000000018477bb28 _pthread_body + 156
7 libsystem_pthread.dylib 0x000000018477ba8c _pthread_body + 0
8 libsystem_pthread.dylib 0x0000000184779028 thread_start + 4
Thread 7 name: SGen worker
Thread 7:
0 libsystem_kernel.dylib 0x00000001846b3f48 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x000000018477ace8 _pthread_cond_wait + 648
2 EasierLife 0x0000000101cd76a0 thread_func (mono-os-mutex.h:146)
3 libsystem_pthread.dylib 0x000000018477bb28 _pthread_body + 156
4 libsystem_pthread.dylib 0x000000018477ba8c _pthread_body + 0
5 libsystem_pthread.dylib 0x0000000184779028 thread_start + 4
Thread 8 name: Finalizer
Thread 8:
0 libsystem_kernel.dylib 0x00000001846994f8 semaphore_wait_trap + 8
1 EasierLife 0x0000000101c163d8 finalizer_thread (mono-os-semaphore.h:90)
2 EasierLife 0x0000000101c84994 start_wrapper (threads.c:837)
3 EasierLife 0x0000000101cec95c inner_start_thread (mono-threads.c:1172)
4 libsystem_pthread.dylib 0x000000018477bb28 _pthread_body + 156
5 libsystem_pthread.dylib 0x000000018477ba8c _pthread_body + 0
6 libsystem_pthread.dylib 0x0000000184779028 thread_start + 4
Thread 9:
0 libsystem_kernel.dylib 0x00000001846b4b6c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000184779530 _pthread_wqthread + 1284
2 libsystem_pthread.dylib 0x0000000184779020 start_wqthread + 4
Thread 10:
0 libsystem_kernel.dylib 0x00000001846b4b6c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000184779530 _pthread_wqthread + 1284
2 libsystem_pthread.dylib 0x0000000184779020 start_wqthread + 4
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0xffffffffffffffff
x4: 0x0000000000000010 x5: 0x0000000000000020 x6: 0x0000000000000000 x7: 0x0000000000000000
x8: 0x0000000008000000 x9: 0x0000000004000000 x10: 0x0000000000003c57 x11: 0x00000001a4714661
x12: 0x00000001a4714661 x13: 0x0000000000000018 x14: 0x000000008000001f x15: 0x0000000080000023
x16: 0x0000000000000148 x17: 0x0000000101e1c300 x18: 0x0000000000000000 x19: 0x0000000000000006
x20: 0x00000001a2269000 x21: 0x00000001545f77f0 x22: 0x000000015494ba00 x23: 0x00000001a2274b68
x24: 0x00000001a2278000 x25: 0x6e001b5475b35342 x26: 0x000000018a208cf3 x27: 0x0000000184d46b9a
x28: 0x00000001a130ed30 fp: 0x000000016fdbddf0 lr: 0x000000018477cef8
sp: 0x000000016fdbddd0 pc: 0x00000001846b4140 cpsr: 0x00000000
PS: In android everything is working fine.
edit: Added FinishedLaunching Method
public override bool FinishedLaunching(UIApplication app, NSDictionary options)
{
Locator.CurrentMutable.RegisterConstant(new IOSCookieStore(), typeof(IPlatformCookieStore));
InitXamarinForms();
Xamarin.FormsMaps.Init();
// check for a notification
if (options != null)
{
// check for a local notification
if (options.ContainsKey(UIApplication.LaunchOptionsLocalNotificationKey))
{
var localNotification = options[UIApplication.LaunchOptionsLocalNotificationKey] as UILocalNotification;
if (localNotification != null)
{
UIAlertController okayAlertController = UIAlertController.Create(localNotification.AlertAction, localNotification.AlertBody, UIAlertControllerStyle.Alert);
okayAlertController.AddAction(UIAlertAction.Create("OK", UIAlertActionStyle.Default, null));
GetWindow().RootViewController.PresentViewController(okayAlertController, true, null);
// reset our badge
UIApplication.SharedApplication.ApplicationIconBadgeNumber = 0;
}
}
}
InitTrackerAndExceptionHandling();
InitAndRegisterPushNotifications();
FFImageLoading.Forms.Touch.CachedImageRenderer.Init();
// Needed for loading the Lib!
var t = typeof(SignaturePad.Forms.iOS.SignaturePadRenderer);
var urls = NSFileManager.DefaultManager.GetUrls(NSSearchPathDirectory.CachesDirectory, NSSearchPathDomain.User);
var path = urls[0].Path;
string pathToCacheDbFile = System.IO.Path.Combine(path, "EasierLife/BlobCache/blobs.db");
LoadApplication(new EasierLifeApp(pathToCacheDbFile));
return base.FinishedLaunching(app, options);
}
I was also thinking about an error in caching with akavache.
But as I mentioned, actually we didn't changed anything here.
Edit 2:
OK now I figured out, that it's a problem with akavache / caching. Without initializing the cache, the app is starting again.
public void InitCache() {
BlobCache.ApplicationName = "EasierLife";
BlobCache.EnsureInitialized();
_cache = BlobCache.LocalMachine;
}
But I have still no answer why this is happening suddenly without any changes to the code.
I finally figured out, that the problem is related to my caching plugin called akavache. So I'm moving the discussion to there bug tracker.
link

Xcode crashes on selecting tab in color panel

I am facing this strange issue from few hours and it started suddenly. Whenever I try to select different tab in color panel in Xcode,the whole Xcode crashes with the error,
UNCAUGHT EXCEPTION (NSRangeException): Cannot remove an observer <NSColorPickerPageableNameListScrollView 0x7fb8f6ce0910> for the key path "contentLayoutRect" from <HighlightColorPanel 0x7fb8f6c94af0> because it is not registered as an observer.
Following is the full stack trace for error,
Process: Xcode [1958]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 6.3.2 (7718)
Build Info: IDEFrameworks-7718000000000000~2
App Item ID: 497799835
App External ID: 812404257
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Xcode [1958]
User ID: 501
Date/Time: 2015-06-20 13:50:18.080 +0530
OS Version: Mac OS X 10.10.3 (14D136)
Report Version: 11
Anonymous UUID: 1A8B5EF9-7E79-106C-D0F5-5648FF5FD699
Time Awake Since Boot: 6500 seconds
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
ProductBuildVersion: 6D2105
UNCAUGHT EXCEPTION (NSRangeException): Cannot remove an observer <NSColorPickerPageableNameListScrollView 0x7fb8f6ce0910> for the key path "contentLayoutRect" from <HighlightColorPanel 0x7fb8f6c94af0> because it is not registered as an observer.
UserInfo: (null)
Hints: None
Backtrace:
0 0x00007fff8a22e024 __exceptionPreprocess (in CoreFoundation)
1 0x0000000104b5abb4 DVTFailureHintExceptionPreprocessor (in DVTFoundation)
2 0x00007fff8839f76e objc_exception_throw (in libobjc.A.dylib)
3 0x00007fff8a22deed +[NSException raise:format:] (in CoreFoundation)
4 0x00007fff89de0896 -[NSObject(NSKeyValueObserverRegistration) _removeObserver:forProperty:] (in Foundation)
5 0x00007fff89de05d9 -[NSObject(NSKeyValueObserverRegistration) removeObserver:forKeyPath:] (in Foundation)
6 0x00007fff89de04a4 -[NSObject(NSKeyValueObserverRegistration) removeObserver:forKeyPath:context:] (in Foundation)
7 0x00007fff8ae8f09b -[NSScrollView _setWindow:] (in AppKit)
8 0x00007fff8a14d705 __53-[__NSArrayM enumerateObjectsWithOptions:usingBlock:]_block_invoke (in CoreFoundation)
9 0x00007fff8a14ce09 -[__NSArrayM enumerateObjectsWithOptions:usingBlock:] (in CoreFoundation)
10 0x00007fff8b535474 __21-[NSView _setWindow:]_block_invoke735 (in AppKit)
11 0x00007fff89e013be -[NSISEngine withBehaviors:performModifications:] (in Foundation)
12 0x00007fff8adb1c54 -[NSView _setWindow:] (in AppKit)
13 0x00007fff8ade9091 -[NSView removeFromSuperview] (in AppKit)
14 0x00007fff8b280034 -[NSColorPanel _switchToPicker:] (in AppKit)
15 0x00007fff8b0ee1b1 -[NSToolbarButton sendAction:to:] (in AppKit)
16 0x00007fff8afdef5a -[NSToolbarItemViewer mouseDown:] (in AppKit)
17 0x00007fff8b54f2fc -[NSWindow _reallySendEvent:isDelayedEvent:] (in AppKit)
18 0x00007fff8aeded76 -[NSWindow sendEvent:] (in AppKit)
19 0x00007fff8aedb312 -[NSApplication sendEvent:] (in AppKit)
20 0x0000000105bd8c14 -[IDEApplication sendEvent:] (in IDEKit)
21 0x00007fff8ae04c68 -[NSApplication run] (in AppKit)
22 0x00007fff8ad81354 NSApplicationMain (in AppKit)
23 0x00007fff952435c9 start (in libdyld.dylib)
24 0x0000000000000001
abort() called
Application Specific Signatures:
NSRangeException
Application Specific Backtrace 1:
0 CoreFoundation 0x00007fff8a22e03c __exceptionPreprocess + 172
1 DVTFoundation 0x0000000104b5abb4 DVTFailureHintExceptionPreprocessor + 194
2 libobjc.A.dylib 0x00007fff8839f76e objc_exception_throw + 43
3 CoreFoundation 0x00007fff8a22deed +[NSException raise:format:] + 205
4 Foundation 0x00007fff89de0896 -[NSObject(NSKeyValueObserverRegistration) _removeObserver:forProperty:] + 604
5 Foundation 0x00007fff89de05d9 -[NSObject(NSKeyValueObserverRegistration) removeObserver:forKeyPath:] + 114
6 Foundation 0x00007fff89de04a4 -[NSObject(NSKeyValueObserverRegistration) removeObserver:forKeyPath:context:] + 253
7 AppKit 0x00007fff8ae8f09b -[NSScrollView _setWindow:] + 342
8 CoreFoundation 0x00007fff8a14d705 __53-[__NSArrayM enumerateObjectsWithOptions:usingBlock:]_block_invoke + 133
9 CoreFoundation 0x00007fff8a14ce09 -[__NSArrayM enumerateObjectsWithOptions:usingBlock:] + 313
10 AppKit 0x00007fff8b535474 __21-[NSView _setWindow:]_block_invoke735 + 169
11 Foundation 0x00007fff89e013be -[NSISEngine withBehaviors:performModifications:] + 155
12 AppKit 0x00007fff8adb1c54 -[NSView _setWindow:] + 3191
13 AppKit 0x00007fff8ade9091 -[NSView removeFromSuperview] + 453
14 AppKit 0x00007fff8b280034 -[NSColorPanel _switchToPicker:] + 231
15 AppKit 0x00007fff8b0ee1b1 -[NSToolbarButton sendAction:to:] + 75
16 AppKit 0x00007fff8afdef5a -[NSToolbarItemViewer mouseDown:] + 4981
17 AppKit 0x00007fff8b54f2fc -[NSWindow _reallySendEvent:isDelayedEvent:] + 14125
18 AppKit 0x00007fff8aeded76 -[NSWindow sendEvent:] + 470
19 AppKit 0x00007fff8aedb312 -[NSApplication sendEvent:] + 2504
20 IDEKit 0x0000000105bd8c14 -[IDEApplication sendEvent:] + 924
21 AppKit 0x00007fff8ae04c68 -[NSApplication run] + 711
22 AppKit 0x00007fff8ad81354 NSApplicationMain + 1832
23 libdyld.dylib 0x00007fff952435c9 start + 1
24 ??? 0x0000000000000001 0x0 + 1
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff8f7c7286 __pthread_kill + 10
1 libsystem_c.dylib 0x00007fff85fb6b53 abort + 129
2 com.apple.dt.IDEKit 0x0000000105e09753 +[IDEAssertionHandler _handleAssertionWithLogString:assertionSignature:assertionReason:extraBacktrace:] + 1507
3 com.apple.dt.IDEKit 0x0000000105e0a9c8 -[IDEAssertionHandler handleUncaughtException:] + 1077
4 com.apple.dt.IDEKit 0x0000000105e0aa94 IDEHandleUncaughtException + 94
5 com.apple.AppKit 0x00007fff8ae04d1c -[NSApplication run] + 891
6 com.apple.AppKit 0x00007fff8ad81354 NSApplicationMain + 1832
7 libdyld.dylib 0x00007fff952435c9 start + 1
Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0 libsystem_kernel.dylib 0x00007fff8f7c8232 kevent64 + 10
1 libdispatch.dylib 0x00007fff92c90a6a _dispatch_mgr_thread + 52
Thread 2:
0 libsystem_kernel.dylib 0x00007fff8f7c794a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff8d7cb40d start_wqthread + 13
Thread 3:
0 libsystem_kernel.dylib 0x00007fff8f7c794a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff8d7cb40d start_wqthread + 13
Thread 4:
0 libsystem_kernel.dylib 0x00007fff8f7c794a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff8d7cb40d start_wqthread + 13
Thread 5:
0 libsystem_kernel.dylib 0x00007fff8f7c24de mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff8f7c164f mach_msg + 55
2 com.apple.CoreFoundation 0x00007fff8a13ceb4 __CFRunLoopServiceMachPort + 212
3 com.apple.CoreFoundation 0x00007fff8a13c37b __CFRunLoopRun + 1371
4 com.apple.CoreFoundation 0x00007fff8a13bbd8 CFRunLoopRunSpecific + 296
5 com.apple.Foundation 0x00007fff89e28a59 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 278
6 com.apple.DTDeviceKitBase 0x000000010f108f3c -[DTDKRemoteDeviceDataListener listenerThreadImplementation] + 974
7 com.apple.Foundation 0x00007fff89dd6dc2 __NSThread__main__ + 1345
8 libsystem_pthread.dylib 0x00007fff8d7cd268 _pthread_body + 131
9 libsystem_pthread.dylib 0x00007fff8d7cd1e5 _pthread_start + 176
10 libsystem_pthread.dylib 0x00007fff8d7cb41d thread_start + 13
Thread 6:: com.apple.CFSocket.private
0 libsystem_kernel.dylib 0x00007fff8f7c73fa __select + 10
1 libsystem_pthread.dylib 0x00007fff8d7cd268 _pthread_body + 131
2 libsystem_pthread.dylib 0x00007fff8d7cd1e5 _pthread_start + 176
3 libsystem_pthread.dylib 0x00007fff8d7cb41d thread_start + 13
Thread 7:: com.apple.NSURLConnectionLoader
0 libsystem_kernel.dylib 0x00007fff8f7c24de mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff8f7c164f mach_msg + 55
2 com.apple.CoreFoundation 0x00007fff8a13ceb4 __CFRunLoopServiceMachPort + 212
3 com.apple.CoreFoundation 0x00007fff8a13c37b __CFRunLoopRun + 1371
4 com.apple.CoreFoundation 0x00007fff8a13bbd8 CFRunLoopRunSpecific + 296
5 com.apple.CFNetwork 0x00007fff8600f220 +[NSURLConnection(Loader) _resourceLoadLoop:] + 434
6 com.apple.Foundation 0x00007fff89dd6dc2 __NSThread__main__ + 1345
7 libsystem_pthread.dylib 0x00007fff8d7cd268 _pthread_body + 131
8 libsystem_pthread.dylib 0x00007fff8d7cd1e5 _pthread_start + 176
9 libsystem_pthread.dylib 0x00007fff8d7cb41d thread_start + 13
Thread 8:
0 libsystem_kernel.dylib 0x00007fff8f7c24de mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff8f7c164f mach_msg + 55
2 com.apple.CoreFoundation 0x00007fff8a13ceb4 __CFRunLoopServiceMachPort + 212
3 com.apple.CoreFoundation 0x00007fff8a13c37b __CFRunLoopRun + 1371
4 com.apple.CoreFoundation 0x00007fff8a13bbd8 CFRunLoopRunSpecific + 296
5 com.apple.AppKit 0x00007fff8aed766b _NSEventThread + 137
6 libsystem_pthread.dylib 0x00007fff8d7cd268 _pthread_body + 131
7 libsystem_pthread.dylib 0x00007fff8d7cd1e5 _pthread_start + 176
8 libsystem_pthread.dylib 0x00007fff8d7cb41d thread_start + 13
Thread 9:: DYMobileDeviceManager
0 libsystem_kernel.dylib 0x00007fff8f7c24de mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff8f7c164f mach_msg + 55
2 com.apple.CoreFoundation 0x00007fff8a13ceb4 __CFRunLoopServiceMachPort + 212
3 com.apple.CoreFoundation 0x00007fff8a13c37b __CFRunLoopRun + 1371
4 com.apple.CoreFoundation 0x00007fff8a13bbd8 CFRunLoopRunSpecific + 296
5 com.apple.Foundation 0x00007fff89e28a59 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 278
6 com.apple.Foundation 0x00007fff89e9e17f -[NSRunLoop(NSRunLoop) run] + 74
7 com.apple.GPUToolsMobileFoundation 0x00000001175d789b -[DYMobileDeviceManager _deviceNotificationThread:] + 134
8 com.apple.Foundation 0x00007fff89dd6dc2 __NSThread__main__ + 1345
9 libsystem_pthread.dylib 0x00007fff8d7cd268 _pthread_body + 131
10 libsystem_pthread.dylib 0x00007fff8d7cd1e5 _pthread_start + 176
11 libsystem_pthread.dylib 0x00007fff8d7cb41d thread_start + 13
Thread 10:
0 libsystem_kernel.dylib 0x00007fff8f7c794a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff8d7cb40d start_wqthread + 13
Thread 11:
0 libsystem_kernel.dylib 0x00007fff8f7c794a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff8d7cb40d start_wqthread + 13
Thread 12:
0 libsystem_kernel.dylib 0x00007fff8f7c7136 __psynch_cvwait + 10
1 com.apple.Xcode.DevToolsCore 0x000000010eb59866 -[XCBlockQueue _processBlocksInThreadSlotNumber:] + 456
2 com.apple.Foundation 0x00007fff89dd6dc2 __NSThread__main__ + 1345
3 libsystem_pthread.dylib 0x00007fff8d7cd268 _pthread_body + 131
4 libsystem_pthread.dylib 0x00007fff8d7cd1e5 _pthread_start + 176
5 libsystem_pthread.dylib 0x00007fff8d7cb41d thread_start + 13
Thread 13:
0 libsystem_kernel.dylib 0x00007fff8f7c7136 __psynch_cvwait + 10
1 com.apple.Xcode.DevToolsCore 0x000000010eb59866 -[XCBlockQueue _processBlocksInThreadSlotNumber:] + 456
2 com.apple.Foundation 0x00007fff89dd6dc2 __NSThread__main__ + 1345
3 libsystem_pthread.dylib 0x00007fff8d7cd268 _pthread_body + 131
4 libsystem_pthread.dylib 0x00007fff8d7cd1e5 _pthread_start + 176
5 libsystem_pthread.dylib 0x00007fff8d7cb41d thread_start + 13
Thread 14:
0 libsystem_kernel.dylib 0x00007fff8f7c7136 __psynch_cvwait + 10
1 com.apple.Xcode.DevToolsCore 0x000000010eb59866 -[XCBlockQueue _processBlocksInThreadSlotNumber:] + 456
2 com.apple.Foundation 0x00007fff89dd6dc2 __NSThread__main__ + 1345
3 libsystem_pthread.dylib 0x00007fff8d7cd268 _pthread_body + 131
4 libsystem_pthread.dylib 0x00007fff8d7cd1e5 _pthread_start + 176
5 libsystem_pthread.dylib 0x00007fff8d7cb41d thread_start + 13
Thread 15:
0 libsystem_kernel.dylib 0x00007fff8f7c24de mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff8f7c164f mach_msg + 55
2 com.apple.CoreFoundation 0x00007fff8a13ceb4 __CFRunLoopServiceMachPort + 212
3 com.apple.CoreFoundation 0x00007fff8a13c37b __CFRunLoopRun + 1371
4 com.apple.CoreFoundation 0x00007fff8a13bbd8 CFRunLoopRunSpecific + 296
5 com.apple.CoreFoundation 0x00007fff8a1f3671 CFRunLoopRun + 97
6 com.apple.DebugSymbols 0x00007fff8ace1b8f SpotlightQueryThread(void*) + 463
7 libsystem_pthread.dylib 0x00007fff8d7cd268 _pthread_body + 131
8 libsystem_pthread.dylib 0x00007fff8d7cd1e5 _pthread_start + 176
9 libsystem_pthread.dylib 0x00007fff8d7cb41d thread_start + 13
Thread 16:
0 libsystem_kernel.dylib 0x00007fff8f7c748a __semwait_signal + 10
1 com.apple.CoreSymbolication 0x00007fff882dbe67 0x7fff882c9000 + 77415
2 libsystem_pthread.dylib 0x00007fff8d7cd268 _pthread_body + 131
3 libsystem_pthread.dylib 0x00007fff8d7cd1e5 _pthread_start + 176
4 libsystem_pthread.dylib 0x00007fff8d7cb41d thread_start + 13
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x0000000000000006 rcx: 0x00007fff5b27e948 rdx: 0x0000000000000000
rdi: 0x000000000000130f rsi: 0x0000000000000006 rbp: 0x00007fff5b27e970 rsp: 0x00007fff5b27e948
r8: 0x0000000000001fff r9: 0x00007fb8f3c38f60 r10: 0x0000000008000000 r11: 0x0000000000000206
r12: 0x00007fff8839a440 r13: 0x00007fb8f3eb68c0 r14: 0x00007fff77741300 r15: 0x00007fb8f3c23f00
rip: 0x00007fff8f7c7286 rfl: 0x0000000000000206 cr2: 0x00000001075f70e0
Logical CPU: 0
Error Code: 0x020000b8
Trap Number: 133
Thank you very much in advance.
In my case exactly the same issue was caused by ColorSenseRainbow plugin I installed via Alcatraz. As soon as I removed it, everything went back to normal.
This seems like an issue on Apple's part. Let me digest that log for you:
UNCAUGHT EXCEPTION: Cannot remove an observer <NSColorPickerPageableNameListScrollView 0x7fb8f6ce0910> for the key path "contentLayoutRect" from <HighlightColorPanel 0x7fb8f6c94af0> because it is not registered as an observer.
So, in the code for Xcode, what it's trying to do is remove the observer that is of type NSColorPickerPagableNameListScrollView (the up/down list that selects a dev's color preferences in IB) at memory address 0x7b7f6ce0910 from the HighlightColorPanel (possibly the dialog that's a color picker) at memory address 0x7fb8f6c94af0 before the scroll view registered as an observer of the color picker for the key path contentLayoutRect.
In layman's terms, the scrolling color view is an observer of the color picker, which makes seeing your color preferences easier. When the color picker selects a color, it sends a notification to its observer, the scrolling color box.
However, when the box is closed, the scroll view should remove itself from the observer tree, that is, the listing of items that are observers of the box, in an effort to get rid of (and deallocate resources for) the box.
The bug exists in just that part of the code, since, apparently, the scroll view never registered as an observer for the key path contentLayoutRect. It was an observer for everything else but that. Since it couldn't tell what the observer was when it tried to get rid of it, the system derped and crashed.

What could cause a deadlock in ImageProviderReleaseInfoCallback / __spin_lock

I have a Cocoa application that uses a number of NSOperationQueue instances to process images in the background. Each queue processes invocation operations that essentially turn NSImage objects into CGImageRef instances using:
CGImageRef ref = [image CGImageForProposedRect:NULL context:nil hints:nil];
A few users have complained that the app suddenly stops responding. I asked them to collect a process sample using ActivityMonitor.app. The reports are all very similar.
It looks like the main thread is going through an autorelease pool drain while the queues/threads are stuck at __spin_lock right after a call to ImageProviderReleaseInfoCallback.
The docs say that all parameters of CGImageForProposedRect: are optional. They don't say anything if it can be called from a background thread. Maybe that's the problem? I doubt it, because it works in pretty much all cases (I launched the app hundreds of times without problems...)
Any ideas why the queues could get stuck?
Full process sample:
OS Version: Mac OS X 10.6.8 (10K549)
Report Version: 6
Call graph:
1971 Thread_905 DispatchQueue_1: com.apple.main-thread (serial)
1971 0x2e6d
1971 NSApplicationMain
1971 -[NSApplication run]
1971 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:]
1971 _DPSNextEvent
1971 AEProcessAppleEvent
1971 aeProcessAppleEvent
1971 dispatchEventAndSendReply(AEDesc const*, AEDesc*)
1971 aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned long, unsigned char*)
1971 _NSAppleEventManagerGenericHandler
1971 -[NSAutoreleasePool drain]
1971 NSPopAutoreleasePool
1971 _CFAutoreleasePoolPop
1971 CFRelease
1971 -[NSImage dealloc]
1971 -[NSImage _deallocAuxiliaryStorage]
1971 -[NSCGImageSnapshotRep dealloc]
1971 _CFRelease
1971 image_finalize
1971 _CFRelease
1971 image_provider_finalize
1971 ImageProviderReleaseInfoCallback
1971 __spin_lock
1971 Thread_943 DispatchQueue_2: com.apple.libdispatch-manager (serial)
1971 start_wqthread
1971 _pthread_wqthread
1971 _dispatch_worker_thread2
1971 _dispatch_queue_invoke
1971 _dispatch_mgr_invoke
1971 kevent
1971 Thread_944 DispatchQueue_6: com.apple.root.default-priority (concurrent)
1971 start_wqthread
1971 _pthread_wqthread
1971 _dispatch_worker_thread2
1971 _dispatch_call_block_and_release
1971 ____NSOQSchedule_block_invoke_2
1971 -[__NSOperationInternal start]
1971 -[NSInvocationOperation main]
1971 -[NSInvocation invoke]
1971 __invoking___
1971 0x17a64
1971 0x244cf
1971 0x22a97
1971 -[NSImage CGImageForProposedRect:context:hints:]
1971 -[NSImage _usingBestRepresentationForRect:context:hints:body:]
1971 __-[NSImage CGImageForProposedRect:context:hints:]_block_invoke_1
1971 -[NSImage _snapshotRepForRep:rect:context:processedHints:]
1971 -[NSImage _createSnapshotRepForRep:rect:context:processedHints:]
1971 -[NSImageRep CGImageForProposedRect:context:hints:flipped:]
1971 -[NSIconRefImageRep CGImageForProposedRect:context:hints:]
1971 _ISCreateCGImageForType
1971 _ISGetCGImageRefForISImageRef
1971 _ISImageRefIterator(void*, unsigned char, short (*)(void*, void*), void*)
1971 _ISGoThruImageStorages
1971 _ISGoThruImageStorages
1971 MergeBestStorageIntoContext(void*, void*)
1971 _CFRelease
1971 image_finalize
1971 _CFRelease
1971 image_provider_finalize
1971 ImageProviderReleaseInfoCallback
1971 __spin_lock
1971 Thread_980 DispatchQueue_6: com.apple.root.default-priority (concurrent)
1971 start_wqthread
1971 _pthread_wqthread
1971 _dispatch_worker_thread2
1971 _dispatch_call_block_and_release
1971 ____NSOQSchedule_block_invoke_2
1971 -[__NSOperationInternal start]
1971 NSPopAutoreleasePool
1971 _CFAutoreleasePoolPop
1971 CFRelease
1971 -[NSImage dealloc]
1971 -[NSImage _deallocAuxiliaryStorage]
1971 -[NSCGImageSnapshotRep dealloc]
1971 _CFRelease
1971 image_finalize
1971 _CFRelease
1971 image_provider_finalize
1971 ImageProviderReleaseInfoCallback
1971 glueReleaseInfo
1971 JP2ReleaseInfoCallback
1971 _cg_JP2TearDownDecompressor
1971 _CFRelease
1971 __CFBasicHashDrain
1971 __CFDictionaryCallback
1971 _CFRelease
1971 _CGImageReadSessionFinalize
1971 _CFRelease
1971 _CGImageReadFinalize
1971 _CFRelease
1971 __CFDataDeallocate
1971 _ISReleaseStorageRef
1971 _CFRelease
1971 __CFArrayReleaseValues
1971 _CFRelease
1971 image_finalize
1971 _CFRelease
1971 image_provider_finalize
1971 ImageProviderReleaseInfoCallback
1971 __spin_lock
1971 Thread_1013 DispatchQueue_6: com.apple.root.default-priority (concurrent)
1971 start_wqthread
1971 _pthread_wqthread
1971 _dispatch_worker_thread2
1971 _dispatch_call_block_and_release
1971 ____NSOQSchedule_block_invoke_2
1971 -[__NSOperationInternal start]
1971 -[NSInvocationOperation main]
1971 -[NSInvocation invoke]
1971 __invoking___
1971 0x17a64
1971 0x244cf
1971 0x22a97
1971 -[NSImage CGImageForProposedRect:context:hints:]
1971 -[NSImage _usingBestRepresentationForRect:context:hints:body:]
1971 __-[NSImage CGImageForProposedRect:context:hints:]_block_invoke_1
1971 -[NSImage _snapshotRepForRep:rect:context:processedHints:]
1971 -[NSImage _createSnapshotRepForRep:rect:context:processedHints:]
1971 -[NSImageRep CGImageForProposedRect:context:hints:flipped:]
1971 -[NSIconRefImageRep CGImageForProposedRect:context:hints:]
1971 _ISCreateCGImageForType
1971 _ISGetCGImageRefForISImageRef
1971 _ISImageRefIterator(void*, unsigned char, short (*)(void*, void*), void*)
1971 _ISGoThruImageStorages
1971 MergeBestStorageIntoContext(void*, void*)
1971 _CFRelease
1971 image_finalize
1971 _CFRelease
1971 image_provider_finalize
1971 ImageProviderReleaseInfoCallback
1971 __spin_lock
1971 Thread_1019 DispatchQueue_6: com.apple.root.default-priority (concurrent)
1971 start_wqthread
1971 _pthread_wqthread
1971 _dispatch_worker_thread2
1971 _dispatch_call_block_and_release
1971 ____NSOQSchedule_block_invoke_2
1971 -[__NSOperationInternal start]
1971 NSPopAutoreleasePool
1971 _CFAutoreleasePoolPop
1971 CFRelease
1971 -[NSImage dealloc]
1971 -[NSImage _deallocAuxiliaryStorage]
1971 -[NSCGImageSnapshotRep dealloc]
1971 _CFRelease
1971 image_finalize
1971 _CFRelease
1971 image_provider_finalize
1971 ImageProviderReleaseInfoCallback
1971 __spin_lock
1971 Thread_1031
1971 thread_start
1971 _pthread_start
1971 startIOThread(void*)
1971 CVDisplayLink::runIOThread()
1971 pthread_cond_wait$UNIX2003
1971 _pthread_cond_wait
1971 __semwait_signal
Total number in stack (recursive counted multiple, when >=5):
17 _CFRelease
6 ImageProviderReleaseInfoCallback
6 image_finalize
6 image_provider_finalize
5 __spin_lock
5 _dispatch_worker_thread2
5 _pthread_wqthread
5 start_wqthread
Sort by top of stack, same collapsed (when >= 5):
__spin_lock 9855
__semwait_signal 1971
kevent 1971

Resources