New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keka 1.1.8 crashes on startup (VirtualBox Virtual Machine) #347

Open
automatedbugreportingfacility opened this Issue Dec 26, 2018 · 21 comments

Comments

3 participants
@automatedbugreportingfacility
Copy link

automatedbugreportingfacility commented Dec 26, 2018

Coming from a fresh installation. Log below:

Process:               Keka [416]
Path:                  /Applications/Keka.app/Contents/MacOS/Keka
Identifier:            com.aone.keka
Version:               1.1.8 (3160)
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           Keka [416]
User ID:               501

Date/Time:             2018-12-26 04:58:02.035 -0800
OS Version:            Mac OS X 10.13 (17A264c)
Report Version:        12
Anonymous UUID:        C781B96C-6A66-4685-9E1E-D5166DF7D91B


Time Awake Since Boot: 200 seconds

System Integrity Protection: enabled

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

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

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

VM Regions Near 0:
--> 
    __TEXT                 0000000101a12000-0000000101a4a000 [  224K] r-x/rwx SM=COW  /Applications/Keka.app/Contents/MacOS/Keka

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   com.aone.keka                 	0x0000000101a15b86 0x101a12000 + 15238
1   com.apple.AppKit              	0x000000010277491b -[NSIBObjectData nibInstantiateWithOwner:options:topLevelObjects:] + 1415
2   com.apple.AppKit              	0x000000010276bb94 loadNib + 435
3   com.apple.AppKit              	0x000000010276b089 +[NSBundle(NSNibLoading) _loadNibFile:nameTable:options:withZone:ownerBundle:] + 350
4   com.apple.AppKit              	0x000000010276ae28 -[NSBundle(NSNibLoading) loadNibNamed:owner:topLevelObjects:] + 204
5   com.apple.AppKit              	0x000000010276abe9 +[NSBundle(NSNibLoading) loadNibNamed:owner:] + 447
6   com.aone.keka                 	0x0000000101a151fa 0x101a12000 + 12794
7   com.aone.keka                 	0x0000000101a1adef 0x101a12000 + 36335
8   com.aone.keka                 	0x0000000101a1abbe 0x101a12000 + 35774
9   com.apple.CoreFoundation      	0x0000000104085c3c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
10  com.apple.CoreFoundation      	0x0000000104085b2a _CFXRegistrationPost + 442
11  com.apple.CoreFoundation      	0x0000000104085872 ___CFXNotificationPost_block_invoke + 50
12  com.apple.CoreFoundation      	0x00000001040451a2 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1826
13  com.apple.CoreFoundation      	0x000000010404423c _CFXNotificationPost + 652
14  com.apple.Foundation          	0x0000000101afd8c3 -[NSNotificationCenter postNotificationName:object:userInfo:] + 66
15  com.apple.AppKit              	0x00000001028d62f3 -[NSApplication _postDidFinishNotification] + 313
16  com.apple.AppKit              	0x00000001028d603c -[NSApplication _sendFinishLaunchingNotification] + 208
17  com.apple.AppKit              	0x00000001027a9d74 -[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:] + 562
18  com.apple.AppKit              	0x00000001027a99ac -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 690
19  com.apple.Foundation          	0x0000000101b41d6c -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 287
20  com.apple.Foundation          	0x0000000101b41bea _NSAppleEventManagerGenericHandler + 102
21  com.apple.AE                  	0x0000000109bd67a8 aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned int, unsigned char*) + 1788
22  com.apple.AE                  	0x0000000109bd604f dispatchEventAndSendReply(AEDesc const*, AEDesc*) + 41
23  com.apple.AE                  	0x0000000109bd5f3d aeProcessAppleEvent + 383
24  com.apple.HIToolbox           	0x00000001061f9558 AEProcessAppleEvent + 55
25  com.apple.AppKit              	0x00000001027a50d2 _DPSNextEvent + 2788
26  com.apple.AppKit              	0x0000000102f2b39e -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2930
27  com.apple.AppKit              	0x000000010279999d -[NSApplication run] + 764
28  com.apple.AppKit              	0x0000000102768d7d NSApplicationMain + 854
29  libdyld.dylib                 	0x0000000108c78515 start + 1

...

@aonez

This comment has been minimized.

Copy link
Owner

aonez commented Dec 26, 2018

Try this one: #314 (comment)

Also removing and re-dowloading Keka again may help.

Let me know if it helps :)

@automatedbugreportingfacility

This comment has been minimized.

Copy link

automatedbugreportingfacility commented Dec 27, 2018

It didn't -- it still crashes the same way. Please note that Keka had not been installed on this system before, so it's a fresh installation, and the settings are default.

@aonez

This comment has been minimized.

Copy link
Owner

aonez commented Dec 27, 2018

Digging more on the log, it seems it's the web version. @automatedbugreportingfacility please try an earlier version (you can get any here) and update from there with the bundled auto-update system.

It seems like Keka is checking for some bookmarks (file access), it's strange it crashing there if it is a fresh install that never has been used.

Let me know if using an earlier version helps!

@aonez aonez added this to the 1.1.9 milestone Dec 27, 2018

@automatedbugreportingfacility

This comment has been minimized.

Copy link

automatedbugreportingfacility commented Dec 27, 2018

I started going backwards, with each version between 1.1.7 and 1.1.5 RC2 producing the same result, until I reached 1.1.5 RC1, which showed the file access permission prompt. I gave the permission, but then it crashed with:

VM Regions Near 0:
--> 
    __TEXT                 000000010ed03000-000000010ed39000 [  216K] r-x/rwx SM=COW  /Applications/Keka.app/Contents/MacOS/Keka

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   com.aone.keka                 	0x000000010ed27e8a 0x10ed03000 + 151178
1   com.apple.AppKit              	0x00007fff94c03caf -[NSCustomView nibInstantiateWithObjectInstantiator:] + 654
2   com.apple.AppKit              	0x00007fff94b52d6c -[NSIBObjectData instantiateObject:] + 244
3   com.apple.AppKit              	0x00007fff94b525a3 -[NSIBObjectData nibInstantiateWithOwner:options:topLevelObjects:] + 527
4   com.apple.AppKit              	0x00007fff94b49b94 loadNib + 435
5   com.apple.AppKit              	0x00007fff94b49089 +[NSBundle(NSNibLoading) _loadNibFile:nameTable:options:withZone:ownerBundle:] + 350
6   com.apple.AppKit              	0x00007fff94b48e28 -[NSBundle(NSNibLoading) loadNibNamed:owner:topLevelObjects:] + 204
7   com.apple.AppKit              	0x00007fff94b48be9 +[NSBundle(NSNibLoading) loadNibNamed:owner:] + 447
8   com.aone.keka                 	0x000000010ed23949 0x10ed03000 + 133449
9   com.aone.keka                 	0x000000010ed0bf6b 0x10ed03000 + 36715
10  com.apple.Foundation          	0x00007fff9963402a __NSFireDelayedPerform + 409
11  com.apple.CoreFoundation      	0x00007fff9753d014 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20
12  com.apple.CoreFoundation      	0x00007fff9753ccd2 __CFRunLoopDoTimer + 1026
13  com.apple.CoreFoundation      	0x00007fff9753c84a __CFRunLoopDoTimers + 298
14  com.apple.CoreFoundation      	0x00007fff97534154 __CFRunLoopRun + 2084
15  com.apple.CoreFoundation      	0x00007fff975336b9 CFRunLoopRunSpecific + 409
16  com.apple.HIToolbox           	0x00007fff96886f0b RunCurrentEventLoopInMode + 227
17  com.apple.HIToolbox           	0x00007fff96886bb7 ReceiveNextEventCommon + 366
18  com.apple.HIToolbox           	0x00007fff96886a2c _BlockUntilNextEventMatchingListInModeWithFilter + 64
19  com.apple.AppKit              	0x00007fff94b82e13 _DPSNextEvent + 2085
20  com.apple.AppKit              	0x00007fff9530939e -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2930
21  com.apple.AppKit              	0x00007fff94b7799d -[NSApplication run] + 764
22  com.apple.AppKit              	0x00007fff94b46d7d NSApplicationMain + 854
23  libdyld.dylib                 	0x00007fffbe56d515 start + 1

Then I loaded 1.1.1, which shows the UI, updated it to 1.1.8, and the same crash occurs as in the initial report.

@no-response no-response bot removed the more info needed label Dec 27, 2018

@gingerbeardman

This comment has been minimized.

Copy link
Contributor

gingerbeardman commented Dec 27, 2018

Are there any peculiarities about your MacOS install? What language are you using?

@automatedbugreportingfacility

This comment has been minimized.

Copy link

automatedbugreportingfacility commented Dec 27, 2018

It's installed within a VM running in VirtualBox 6.0. Language is English (US).

@aonez

This comment has been minimized.

Copy link
Owner

aonez commented Dec 27, 2018

Thanks @gingerbeardman for the tip! @automatedbugreportingfacility I'll make a VM to test that one. Is the host a non-Mac system?

@automatedbugreportingfacility

This comment has been minimized.

Copy link

automatedbugreportingfacility commented Dec 27, 2018

Yes, it is: Windows 10 64-bit (1809).

@aonez

This comment has been minimized.

Copy link
Owner

aonez commented Dec 27, 2018

You followed any guide to create that VM?

@automatedbugreportingfacility

This comment has been minimized.

Copy link

automatedbugreportingfacility commented Dec 27, 2018

Yes, but it was quite a while ago, so I don't remember which one exactly. Could be this one. In particular, you need to run some command line instructions before booting, they're listed in the linked tutorial.

Btw, if you have some idea about the root cause of the crash, but need more data to investigate, then I could run a test version with the required logging and send you the output.

@aonez

This comment has been minimized.

Copy link
Owner

aonez commented Dec 27, 2018

Thanks @automatedbugreportingfacility! I really don't have any clue what the problem is here. The crash just makes no sense, so at this point replicating the issue will be the best way to understand it. I'll keep you updated.

@aonez

This comment has been minimized.

Copy link
Owner

aonez commented Dec 27, 2018

@automatedbugreportingfacility you can still run Keka with extended verbosity and take a look at the Console.app while you run it.

@aonez

This comment has been minimized.

Copy link
Owner

aonez commented Dec 27, 2018

By the way, try this RC, is the latest version of Keka not sandboxed. Maybe this one works:

https://github.com/aonez/Keka/releases/tag/v1.1.0-rc.1

@automatedbugreportingfacility

This comment has been minimized.

Copy link

automatedbugreportingfacility commented Dec 27, 2018

There are sandbox violations in the log:

SandboxViolation: Keka(2966) deny file-write-create /Users/fullname/Desktop/Keka-log.log
Violation:       deny file-write-create /Users/fullname/Desktop/Keka-log.log 
MetaData: {"build":"Mac OS X 10.13 (17A264c)","action":"deny","target":["Users","fullname","Desktop","Keka-log.log"],"hardware":"Mac","platform_binary":"no","profile":"unknown","process":"Keka","op":"file-write-create"}

Process:         Keka [2966]
Path:            /Applications/Keka.app/Contents/MacOS/Keka
Load Address:    0x108959000
Identifier:      com.aone.keka
Version:         3160 (1.1.8)
Code Type:       x86_64 (Native)
Parent Process:  launchd [1]
Responsible:     /Applications/Keka.app/Contents/MacOS/Keka [2966]
User ID:         501

Date/Time:       2018-12-27 08:32:26.324 PST
OS Version:      Mac OS X 10.13 (17A264c)
Report Version:  8

Thread 0 (id: 66546):
0   libsystem_kernel.dylib        	0x00007fffbe6b5182 __rename + 10
1   Foundation                    	0x00007fff9962022c _NSWriteDataToFileWithExtendedAttributes + 1059
2   Foundation                    	0x00007fff9965c4d9 -[NSFileManager createFileAtPath:contents:attributes:] + 160
3   Keka                          	0x0000000108973818
4   Keka                          	0x00000001089617b9
5   AppKit                        	0x00007fff94b52f65 -[NSCustomObject nibInstantiate] + 364
6   AppKit                        	0x00007fff94b52d98 -[NSIBObjectData instantiateObject:] + 288
7   AppKit                        	0x00007fff94b525a3 -[NSIBObjectData nibInstantiateWithOwner:options:topLevelObjects:] + 527
8   AppKit                        	0x00007fff94b49b94 loadNib + 435
9   AppKit                        	0x00007fff94b49089 +[NSBundle(NSNibLoading) _loadNibFile:nameTable:options:withZone:ownerBundle:] + 350
10  AppKit                        	0x00007fff94b48e28 -[NSBundle(NSNibLoading) loadNibNamed:owner:topLevelObjects:] + 204
11  AppKit                        	0x00007fff94b48be9 +[NSBundle(NSNibLoading) loadNibNamed:owner:] + 447
12  AppKit                        	0x00007fff94b46c18 NSApplicationMain + 497
13  libdyld.dylib                 	0x00007fffbe56d515 start + 1
14  Keka                          	0x0000000000000001

Thread 1 (id: 66576):
0   libsystem_kernel.dylib        	0x00007fffbe6b577a __workq_kernreturn + 10
1   libsystem_pthread.dylib       	0x00007fffbe7d9da9 start_wqthread + 13

Thread 2 (id: 66577):
0   libsystem_kernel.dylib        	0x00007fffbe6b577a __workq_kernreturn + 10
1   libsystem_pthread.dylib       	0x00007fffbe7d9da9 start_wqthread + 13
2   Keka                          	0x00000000756e6547

Thread 3 (id: 66578):
0   libsystem_kernel.dylib        	0x00007fffbe6b577a __workq_kernreturn + 10
1   libsystem_pthread.dylib       	0x00007fffbe7d9da9 start_wqthread + 13

Thread 4 (id: 66587):
0   libsystem_kernel.dylib        	0x00007fffbe6b577a __workq_kernreturn + 10
1   libsystem_pthread.dylib       	0x00007fffbe7d9da9 start_wqthread + 13

Binary Images:
       0x108959000 -        0x108990fff  com.aone.keka (1.1.8 - 3160) <b15825d1-eeee-3092-9657-4eb5ac0fe276> /Applications/Keka.app/Contents/MacOS/Keka
    0x7fff94b41000 -     0x7fff9597ffff  com.apple.AppKit (6.9 - 1537.22) <7082d4ff-21d5-3ecf-a57a-6c8c83e0f776> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
    0x7fff995ae000 -     0x7fff99969ff3  com.apple.Foundation (6.9 - 1429.22) <3b147a6f-ecfc-37eb-afb1-6653da79ef86> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
    0x7fffbe567000 -     0x7fffbe581ff7  libdyld.dylib (510.8.3) <787fe571-03ac-334c-b984-606f7f0fd61b> /usr/lib/system/libdyld.dylib
    0x7fffbe699000 -     0x7fffbe6beff7  libsystem_kernel.dylib (4397.0.0.1.13) <4a459d48-998c-3e09-b411-abccc54409d1> /usr/lib/system/libsystem_kernel.dylib
    0x7fffbe7d7000 -     0x7fffbe7e2ff7  libsystem_pthread.dylib (289) <54a9f95b-0320-364d-9826-bbe1db6624a6> /usr/lib/system/libsystem_pthread.dylib
@aonez

This comment has been minimized.

Copy link
Owner

aonez commented Dec 31, 2018

That sandbox violation is ok, should not be a crash reason. Tried to install macOS on VB but had no luck. Will try later today.

@aonez

This comment has been minimized.

Copy link
Owner

aonez commented Jan 3, 2019

I'm gonna try the VB installation again now. Had no luck last time.

@aonez

This comment has been minimized.

Copy link
Owner

aonez commented Jan 3, 2019

The VMWare image in the guide you posted is very unstable. I'll try to create a VM from scratch again.

@aonez aonez changed the title Keka 1.1.8 crashes on startup Keka 1.1.8 crashes on startup (VirtualBox Virtual Machine) Jan 4, 2019

@aonez

This comment has been minimized.

Copy link
Owner

aonez commented Jan 4, 2019

@automatedbugreportingfacility had to lower the CPU count on the machines, but they work (the VMWare and the scratch one) ok now and no problems with Keka... Note my host is macOS, not Windows.

screenshot 2019-01-04 at 10 49 38

@aonez

This comment has been minimized.

Copy link
Owner

aonez commented Jan 4, 2019

Just installed Windows 10 on Boot Camp, and same result...

capture

@aonez

This comment has been minimized.

Copy link
Owner

aonez commented Jan 4, 2019

@automatedbugreportingfacility Can you test it in another computer/VM?

@aonez aonez added the works for me label Jan 4, 2019

@aonez aonez modified the milestones: 1.1.9, Look at Jan 4, 2019

@automatedbugreportingfacility

This comment has been minimized.

Copy link

automatedbugreportingfacility commented Jan 4, 2019

I have an urgent project to finish right now, will re-check on Tuesday-Wednesday.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment