Godzil / theunarchiver

Automatically exported from code.google.com/p/theunarchiver
Other
0 stars 0 forks source link

Cannot extract after click on 'Extract' when The Unarchiver 'can not write to this folder' due to sandbox #598

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I'm using MBP mid 2010 (MC371), with Mac OS X 10.7.4, and language set to 
simplified chinese. When I want extract an rar file into ~/Documents, The 
Unarchiver prompts me to click 'Extract', to allow sandbox to allow The 
Unarciver to write to this folder. However, after I click it, The Unarchiver 
just freezes and cannot extract properly. I experienced this with Mac App Store 
version 3.5.1. I also tried legacy version 3.5.1, and the program worked 
perfectly.

Original issue reported on code.google.com by zym1...@gmail.com on 5 Dec 2012 at 4:35

GoogleCodeExporter commented 8 years ago
Are any messages printed to Console.app?

Original comment by paracel...@gmail.com on 5 Dec 2012 at 11:43

GoogleCodeExporter commented 8 years ago
Hello, the console printed out these things as follows.

12-12-6 AM 12:52:55.515 [0x0-0x55055].cx.c3.theunarchiver: XPC couldn't look up 
the Mach service for scoped bookmarks agent
12-12-6 AM 12:52:55.516 The Unarchiver: -[__NSCFDictionary setObject:forKey:]: 
attempt to insert nil value (key: /Users/zym/Documents)

12-12-6 AM 12:52:55.528 The Unarchiver: (
    0   CoreFoundation                      0x00007fff8f036f56 __exceptionPreprocess + 198
    1   libobjc.A.dylib                     0x00007fff8f219d5e objc_exception_throw + 43
    2   CoreFoundation                      0x00007fff8f036d8a +[NSException raise:format:arguments:] + 106
    3   CoreFoundation                      0x00007fff8f036d14 +[NSException raise:format:] + 116
    4   CoreFoundation                      0x00007fff8eff3c4b -[__NSCFDictionary setObject:forKey:] + 219
    5   The Unarchiver                      0x000000010000a32e The Unarchiver + 41774
    6   The Unarchiver                      0x000000010000303b The Unarchiver + 12347
    7   RemoteViewServices                  0x00007fff87547b7a -[NSRemoteSavePanel sheetDidEnd:returnCode:contextInfo:] + 223
    8   AppKit                              0x00007fff90b803df -[NSApplication endSheet:returnCode:] + 275
    9   RemoteViewServices                  0x00007fff8754ace5 -[NSRemoteSavePanel _handlePanelComplete:] + 386
    10  RemoteViewServices                  0x00007fff875454d3 __45-[NSRemoteServiceConnection _setupConnection]_block_invoke_0141 + 69
    11  CoreFoundation                      0x00007fff8efebdfc __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
    12  CoreFoundation                      0x00007fff8efa3f02 __CFRunLoopDoBlocks + 322
    13  CoreFoundation                      0x00007fff8efcbfa7 __CFRunLoopRun + 2023
    14  CoreFoundation                      0x00007fff8efcb486 CFRunLoopRunSpecific + 230
    15  HIToolbox                           0x00007fff9366a4d3 RunCurrentEventLoopInMode + 277
    16  HIToolbox                           0x00007fff93671781 ReceiveNextEventCommon + 355
    17  HIToolbox                           0x00007fff9367160e BlockUntilNextEventMatchingListInMode + 62
    18  AppKit                              0x00007fff908cce31 _DPSNextEvent + 659
    19  AppKit                              0x00007fff908cc735 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 135
    20  AppKit                              0x00007fff908c9071 -[NSApplication run] + 470
    21  AppKit                              0x00007fff90b45244 NSApplicationMain + 867
    22  The Unarchiver                      0x0000000100001ad8 The Unarchiver + 6872
    23  The Unarchiver                      0x0000000100001904 The Unarchiver + 6404
)

12-12-6 AM12:53:27.169 The Unarchiver: kCGErrorIllegalArgument: 
CGSRemoveWindowFromWindowMovementGroup: Invalid window
12-12-6 AM12:53:27.169 The Unarchiver: kCGErrorFailure: Set a breakpoint @ 
CGErrorBreakpoint() to catch errors as they are logged.

Original comment by zym1...@gmail.com on 5 Dec 2012 at 4:55

GoogleCodeExporter commented 8 years ago
That sounds like some kind of very strange problem in OS X itself. Have you 
rebooted your system since you got this problem?

Original comment by paracel...@gmail.com on 5 Dec 2012 at 5:11

GoogleCodeExporter commented 8 years ago
Yes, and rebooting didn't work.

Original comment by zym1...@gmail.com on 6 Dec 2012 at 2:30

GoogleCodeExporter commented 8 years ago
That's very strange.

I could fix this bug so that it will actually extract the files, but it will 
still not work quite right: The Unarchiver won't be able to remember sandbox 
permissions, and will keep nagging you every single time.

The problem seems to be that saving the permissions for later use is not 
working, and The Unarchiver crashes because it didn't expect that to happen. So 
basically I can fix that crash, but I can't make the permission saving work 
because that is up to OS X, and somehow it seems to have broken on your machine.

Do you have any programs installed that change the behaviors of other programs? 
Maybe some third-party program is causing things to break.

Original comment by paracel...@gmail.com on 6 Dec 2012 at 2:52

GoogleCodeExporter commented 8 years ago
So you think that this is due to OS X 10.7.4's own bugs? I will let my friends 
who use 10.7.4 to test it too.

Nagging from sandbox is OK, as long as the unarchiver is usable in those 
folders that require permissions.

Original comment by zym1...@gmail.com on 6 Dec 2012 at 6:14

GoogleCodeExporter commented 8 years ago
I don't think I have installed some programs that change the machine a lot. 
Potential programs are: 1. Trim enabler; 2. Parallels 7; 3. Acrobat XI Pro; 

Original comment by zym1...@gmail.com on 6 Dec 2012 at 6:16

GoogleCodeExporter commented 8 years ago
Hi, I just asked a friend who used English version of 10.7.4 to test. and the 
same problem happened.

Original comment by zym1...@gmail.com on 6 Dec 2012 at 6:43

GoogleCodeExporter commented 8 years ago
HI, I have exactly the same problem and I am running it with English. I 
uninstalled Acrobat XI Pro yet I still face the same issue. 

I absolutely love this program though 

Original comment by dipesh.n...@gmail.com on 8 Dec 2012 at 5:11

GoogleCodeExporter commented 8 years ago
There has to be something that triggers this. The problem is just figuring out 
what.

Do either of you have a spare machine to test on, to see if it happens there 
too?

Original comment by paracel...@gmail.com on 8 Dec 2012 at 5:29

GoogleCodeExporter commented 8 years ago
I really wish I had a spare machine. I can test this on Monday with my 
colleague - I am sure he hasn't installed as much as me ... 

Original comment by dipesh.n...@gmail.com on 8 Dec 2012 at 9:41

GoogleCodeExporter commented 8 years ago
Well, I made some updates to this code. It should no longer crash now, but the 
problem that saving the permissions fails is still there. Well, it will be 
annoying but still work.

I'll close this for now, but feel free to post more information here if you 
come up with anything, in case there is a way to solve this properly.

Original comment by paracel...@gmail.com on 13 Dec 2012 at 12:47