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
Related
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
I am trying to split a data set into 2 groups such that both groups have all unique ids present at least once. The data set is something like
01 02 03 04 05 06 07
07 05 08 09 10 11 12
01 04 07 13 08 14 15
06 10 11 12 08 01 02
13 14 10 01 07 03 02
15 01 03 04 10 13 11
11 12 03 05 07 14 15
06 05 10 13 01 09 14
I am trying to use Matlab to split it in 2 roughly equal groups such that both groups have at least one row where the unique ids (in this case 01 - 15) are present at least once. Will appreciate any help in getting this done.
The data has to be divided in a way that entire row has to belong to either group 1 or group 2. I am looking at my output to be 2 matrices such that
01 02 03 04 05 06 07
07 05 08 09 10 11 12
01 04 07 13 08 14 15
06 10 11 12 08 01 02
and
13 14 10 01 07 03 02
15 01 03 04 10 13 11
11 12 03 05 07 14 15
06 05 10 13 01 09 14
are the 2 output groups.
01 02 03 04 05 06 07 is row 1. 07 05 08 09 10 11 12 is row 2 and so on. Each row has 7 ids. There are 8 different rows. I want to divide it in 2 groups such that both groups will have 5/4 rows each (minor variations dont matter). Position of ids in each row cant be changed. Each row has to be sent as whole into group 1 or 2 but the row structure (position of each id in that row) has to remain intact. All unique ids need to be present in both groups.
script
clear;clc
A = [01 02 03 04 05 06 07;
07 05 08 09 10 11 12;
01 04 07 13 08 14 15;
06 10 11 12 08 01 02;
13 14 10 01 07 03 02;
15 01 03 04 10 13 11;
11 12 03 05 07 14 15;
06 05 10 13 01 09 14];
% find unique elements and rows containing them
UniqElem = unique(A);
NUniqElem = length(UniqElem);
UniqIndex = struct('UniqElem', cell(NUniqElem,1), ...
'UniqRows', cell(NUniqElem, 1), 'RowCount', cell(NUniqElem, 1));
for ii = 1:NUniqElem
t1 = UniqElem(ii);
t2 = find(any(A==t1,2));
UniqIndex(ii).UniqRows = t2;
UniqIndex(ii).UniqElem = t1;
UniqIndex(ii).RowCount = length(t2);
end
clear('t1','t2')
% find all possible combinations to make the first group
Combs1 = testf(UniqIndex);
Combs2 = struct('Combination', Combs1, ...
'Unique', {true});
for ii = 1:(length(Combs2)-1)
if Combs2(ii).Unique
CurrentComb = Combs2(ii).Combination;
for jj = (ii+1):length(Combs2)
if Combs2(jj).Unique && ...
all(ismember(CurrentComb,Combs2(jj).Combination))
Combs2(jj).Unique = false;
end
end
end
end
Combs3 = Combs2([Combs2.Unique]);
Combs4 = struct('Grp1', {Combs3.Combination}, 'Grp2', []);
AllRows = 1:size(A,1);
for ii = 1:length(Combs4)
Combs4(ii).Grp2 = AllRows(~ismember(AllRows, Combs4(ii).Grp1));
end
Combs5 = struct('Grp1', [], 'Grp2', []);
for ii = 1:length(Combs4)
if all(ismember(UniqElem, unique(A([Combs4(ii).Grp2], :))))
Combs5(end+1) = Combs4(ii);
end
end
Combinations = Combs5;
for ii = 1:length(Combinations)
fprintf('Solution %d of %d \n', ii, length(Combinations))
CurrentComb = Combinations(ii);
fprintf('Group 1 \n')
for jj = 1:length(CurrentComb.Grp1)
fprintf('R%2d: %s \n', CurrentComb.Grp1(jj), ...
num2str(A(CurrentComb.Grp1(jj), :), '%-4d') )
end
fprintf('Group 2 \n')
for jj = 1:length(CurrentComb.Grp2)
fprintf('R%2d: %s \n', CurrentComb.Grp2(jj), ...
num2str(A(CurrentComb.Grp2(jj), :), '%-4d') )
end
fprintf('\n')
end
function
function Comb = testf(UniqRowIn)
if length(UniqRowIn) == 1
Comb = num2cell(UniqRowIn.UniqRows)';
else
t2 = testf(UniqRowIn(2:end));
t1 = UniqRowIn(1).UniqRows;
Comb = cell(0);
for ii = 1:length(t2)
CurrentComb = t2{ii};
if isempty(intersect(CurrentComb, t1))
for jj = 1:length(t1)
Comb{end+1,1} = sort([CurrentComb, t1(jj)]);
end
else
Comb{end+1,1} = CurrentComb;
end
end
end
end
output
Solution 1 of 12
Group 1
Group 2
Solution 2 of 12
Group 1
R 1: 1 2 3 4 5 6 7
R 2: 7 5 8 9 10 11 12
R 3: 1 4 7 13 8 14 15
Group 2
R 4: 6 10 11 12 8 1 2
R 5: 13 14 10 1 7 3 2
R 6: 15 1 3 4 10 13 11
R 7: 11 12 3 5 7 14 15
R 8: 6 5 10 13 1 9 14
Solution 3 of 12
Group 1
R 3: 1 4 7 13 8 14 15
R 4: 6 10 11 12 8 1 2
R 5: 13 14 10 1 7 3 2
R 8: 6 5 10 13 1 9 14
Group 2
R 1: 1 2 3 4 5 6 7
R 2: 7 5 8 9 10 11 12
R 6: 15 1 3 4 10 13 11
R 7: 11 12 3 5 7 14 15
Solution 4 of 12
Group 1
R 3: 1 4 7 13 8 14 15
R 4: 6 10 11 12 8 1 2
R 6: 15 1 3 4 10 13 11
R 8: 6 5 10 13 1 9 14
Group 2
R 1: 1 2 3 4 5 6 7
R 2: 7 5 8 9 10 11 12
R 5: 13 14 10 1 7 3 2
R 7: 11 12 3 5 7 14 15
Solution 5 of 12
Group 1
R 3: 1 4 7 13 8 14 15
R 4: 6 10 11 12 8 1 2
R 7: 11 12 3 5 7 14 15
R 8: 6 5 10 13 1 9 14
Group 2
R 1: 1 2 3 4 5 6 7
R 2: 7 5 8 9 10 11 12
R 5: 13 14 10 1 7 3 2
R 6: 15 1 3 4 10 13 11
Solution 6 of 12
Group 1
R 1: 1 2 3 4 5 6 7
R 3: 1 4 7 13 8 14 15
R 7: 11 12 3 5 7 14 15
R 8: 6 5 10 13 1 9 14
Group 2
R 2: 7 5 8 9 10 11 12
R 4: 6 10 11 12 8 1 2
R 5: 13 14 10 1 7 3 2
R 6: 15 1 3 4 10 13 11
Solution 7 of 12
Group 1
R 1: 1 2 3 4 5 6 7
R 2: 7 5 8 9 10 11 12
R 5: 13 14 10 1 7 3 2
R 6: 15 1 3 4 10 13 11
Group 2
R 3: 1 4 7 13 8 14 15
R 4: 6 10 11 12 8 1 2
R 7: 11 12 3 5 7 14 15
R 8: 6 5 10 13 1 9 14
Solution 8 of 12
Group 1
R 2: 7 5 8 9 10 11 12
R 4: 6 10 11 12 8 1 2
R 5: 13 14 10 1 7 3 2
R 6: 15 1 3 4 10 13 11
Group 2
R 1: 1 2 3 4 5 6 7
R 3: 1 4 7 13 8 14 15
R 7: 11 12 3 5 7 14 15
R 8: 6 5 10 13 1 9 14
Solution 9 of 12
Group 1
R 4: 6 10 11 12 8 1 2
R 5: 13 14 10 1 7 3 2
R 6: 15 1 3 4 10 13 11
R 8: 6 5 10 13 1 9 14
Group 2
R 1: 1 2 3 4 5 6 7
R 2: 7 5 8 9 10 11 12
R 3: 1 4 7 13 8 14 15
R 7: 11 12 3 5 7 14 15
Solution 10 of 12
Group 1
R 1: 1 2 3 4 5 6 7
R 2: 7 5 8 9 10 11 12
R 6: 15 1 3 4 10 13 11
R 7: 11 12 3 5 7 14 15
Group 2
R 3: 1 4 7 13 8 14 15
R 4: 6 10 11 12 8 1 2
R 5: 13 14 10 1 7 3 2
R 8: 6 5 10 13 1 9 14
Solution 11 of 12
Group 1
R 4: 6 10 11 12 8 1 2
R 6: 15 1 3 4 10 13 11
R 7: 11 12 3 5 7 14 15
R 8: 6 5 10 13 1 9 14
Group 2
R 1: 1 2 3 4 5 6 7
R 2: 7 5 8 9 10 11 12
R 3: 1 4 7 13 8 14 15
R 5: 13 14 10 1 7 3 2
Solution 12 of 12
Group 1
R 1: 1 2 3 4 5 6 7
R 2: 7 5 8 9 10 11 12
R 5: 13 14 10 1 7 3 2
R 7: 11 12 3 5 7 14 15
Group 2
R 3: 1 4 7 13 8 14 15
R 4: 6 10 11 12 8 1 2
R 6: 15 1 3 4 10 13 11
R 8: 6 5 10 13 1 9 14
>>
I generate a sequence of bytecode after inline multiple method invocation. At the beginning of inline, I first poped existing variable indexes to a new local variable numbers in case of any exception in the inlined method. This operation results to a number of xLOAD and xStore sequence in the final bytecodes. The sample is:
GETFIELD DYNGuardWithTestHandle1456194204777.guard : Ljava/lang/invoke/MethodHandle;
INVOKEVIRTUAL java/lang/invoke/MethodHandle.invokeExact ()Z
IFEQ L0
ALOAD 0
ALOAD 1
ALOAD 2
ALOAD 3
ALOAD 4
ASTORE 5
ASTORE 6
ASTORE 7
ASTORE 8
ASTORE 9
ALOAD 9
ALOAD 8
ALOAD 7
ALOAD 6
ALOAD 5
ASTORE 10
ASTORE 11
ASTORE 12
ASTORE 13
ASTORE 14
ALOAD 14
GETFIELD DYNGuardWithTestHandle1456194204777.trueTarget_guard_next : Ljava/lang/invoke/MethodHandle;
LDC "fd1a2fc6-03ef-4fd8-a2ae-ebbaa274fa97"
INVOKESTATIC java/lang/invoke/ObjectTransfer.peek (Ljava/lang/String;)Ljava/lang/Object;
CHECKCAST org/jruby/RubyClass
ALOAD 11
INVOKEVIRTUAL java/lang/invoke/MethodHandle.invokeExact (Lorg/jruby/RubyClass;Lorg/jruby/runtime/builtin/IRubyObject;)Z
GOTO L1
L1
IFEQ L2
ALOAD 9
ALOAD 8
ALOAD 7
ALOAD 6
ALOAD 5
ASTORE 15
ASTORE 16
ASTORE 17
ASTORE 18
ASTORE 19
ALOAD 19
ALOAD 16
ALOAD 18
ALOAD 15
ASTORE 20
ASTORE 21
ASTORE 22
ASTORE 23
ALOAD 23
ALOAD 22
CHECKCAST org/jruby/RubyString
ALOAD 21
ALOAD 20
ASTORE 24
ASTORE 25
ASTORE 26
ASTORE 27
ALOAD 27
ALOAD 26
ALOAD 25
ALOAD 24
ASTORE 28
ASTORE 29
ASTORE 30
ASTORE 31
I am wondering whether there are some well-known optimization to eliminate these xLoad/xStore sequence.
Thanks
Don't worry about it. If the method is executed a lot, the JVM will probably optimize it anyway, at which point the extra loads and stores get optimized away.
Try profiling it to see if it's even worth micro-optimizing.
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.
Frame Image Function Offset
0 coredll.dll xxx_RaiseException 19
1 mscoree3_7.dll 436488
2 mscoree3_7.dll 386545
3 mscoree3_7.dll 540936
4 TransitionStub 0
5 System.Data.SqlServerCe.ConStringUtil.ReplaceDataDirectory 0
6 System.Data.SqlServerCe.SqlCeConnection.RemoveCachedMemoryUsage 64
7 System.Data.SqlServerCe.SqlCeConnection.ReleaseNativeInterfaces 488
8 System.Data.SqlServerCe.SqlCeConnection.Dispose 372
9 System.Data.SqlServerCe.SqlCeConnection.Finalize 64
10 mscoree3_7.dll 429164
11 mscoree3_7.dll 143533
12 mscoree3_7.dll 143225
13 mscoree3_7.dll 236605
14 mscoree3_7.dll 305995
15 coredll.dll ThreadBaseFunc 144
All calls to the SQL CE db are wrapped in Usings to ensure the object disposes properly. I've found nothing on the web that exlains what is happening.
Can anyone explain what is going on here?