Skip to content
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

Crash Please Fix or Tell #22

Open
TheEngineerz opened this issue Jul 14, 2015 · 3 comments
Open

Crash Please Fix or Tell #22

TheEngineerz opened this issue Jul 14, 2015 · 3 comments

Comments

@TheEngineerz
Copy link

This is my code which i am using for downloading

[[TWRDownloadManager sharedManager] downloadFileForURL:thumbURL.description withName:thumbURL.lastPathComponent inDirectoryNamed:@"Documents" progressBlock:^(CGFloat progress) {
NSLog(@"progress %f",progress);
} completionBlock:^(BOOL completed) {
NSLog(@"completed : %d",completed);
} enableBackgroundMode:YES];

But it is crashing on this line

    destinationLocation = [[self cachesDirectoryUrlPath] URLByAppendingPathComponent:download.fileName];

because i am getting nil "downloads" variable

TWRDownloadObject *download = [self.downloads objectForKey:fileIdentifier];

Following is the crash report

Download finisehd! file:///private/var/mobile/Containers/Data/Application/9B7CF0E4-B780-4EA4-A58F-456DA4C46165/Library/Caches/com.apple.nsurlsessiond/Downloads/com.company.aaaaa/CFNetworkDownload_oKSwT0.tmp
2015-07-14 16:56:12.730 aaaaa[331:32734] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* -[NSURL URLByAppendingPathComponent:]: component, components, or pathExtension cannot be nil.'
*** First throw call stack:
(0x24802137 0x32b58c77 0x2480207d 0x254b3259 0x1d8263 0x2430d8c9 0x2552b439 0x254960a1 0x25488b0d 0x2552dd93 0x462d89 0x45cac5 0x464b1b 0x465e21 0x3326ada9 0x3326aafc)
libc++abi.dylib: terminating with uncaught exception of type NSException

@eni9889
Copy link

eni9889 commented Aug 24, 2015

I am experiencing the same crash

@john916zhang
Copy link

same crash here.

@sunil-zalavadiya
Copy link

same crash here. Any update? It's happening while i am trying to download multiple files at a time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants