NVHTarGzip icon indicating copy to clipboard operation
NVHTarGzip copied to clipboard

Multithreading issue in unTarGzipFileAtPath

Open bk138 opened this issue 10 years ago • 3 comments

Getting a

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSProgress resignCurrent]: NSProgress was not the current progress on this thread <NSThread: 0x170263a40>{number = 1, name = main}'
*** First throw call stack:
(0x18328022c 0x194f4c0e4 0x18328016c 0x184274ae4 0x100083494 0x1000919fc 0x100144fd4 0x100144f94 0x100149c28 0x183237544 0x1832355ec 0x183160f74 0x18cbbb6fc 0x187d62d94 0x1000960fc 0x1955f6a08)
libc++abi.dylib: terminating with uncaught exception of type NSException

when running multiple instances in parallel. Commenting out NSProgress works around this.

Error is in NVHTarGzip.m:131, git master a few days ago.

bk138 avatar Aug 28 '15 19:08 bk138

+1

I have an application where I need to start a second instance before stopping the first, and I ran into this today.

jordaaash avatar Dec 01 '15 09:12 jordaaash

+1

jtmilne avatar Feb 25 '16 03:02 jtmilne

+1 Trying to unarchive large files on the main thread does not seem to be a good idea.

sumit-anantwar avatar Aug 03 '17 09:08 sumit-anantwar