Discussion Forums  >  Crashes, Memory Warnings

Replies: 7    Views: 97

lfeldmann
Apple Fan
Profile
Posts: 7
Reg: Jun 22, 2012
Pfungstadt
2,520
06/25/12 01:48 AM (12 years ago)

Unable to load PDF

"There was a problem saving some data to the devices Cache" Console Output solidworkscompetitivelandscape[58742:17303] BT_downloader: downloadFile: http://dl.dropbox.com/u/13477678/DS/PDFs/Alternative%2520Energy.pdf 2012-06-25 10:40:59.569 solidworkscompetitivelandscape[58742:17303] BT_screen_pdfDoc: downloadFileStarted: starting download... 2012-06-25 10:41:00.914 solidworkscompetitivelandscape[58742:17303] BT_screen_pdfDoc: downloadFileCompleted: ERROR-1968: URL returned 400 - location not available 2012-06-25 10:41:00.914 solidworkscompetitivelandscape[58742:17303] BT_screen_pdfDoc: hideProgress 2012-06-25 10:41:00.916 solidworkscompetitivelandscape[58742:17303] BT_fileManager: File does not exist in cached directory: 939586E4D6293BBE39E89B8_screenData.pdf 2012-06-25 10:41:00.916 solidworkscompetitivelandscape[58742:17303] BT_screen_pdfDoc: Data Save Error 1: There was a problem saving a document: 2012-06-25 10:41:06.355 solidworkscompetitivelandscape[58742:17303] BT_screen_pdfDoc: alertView:clickedButtonAtIndex: 0
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
06/25/12 02:35 AM (12 years ago)
"downloadFileCompleted: ERROR-1968: URL returned 400 - location not available " Looks to me like you are using a URL that doesn't exist. Have you tired to paste the URL in your browser bar? What do you get? Not all DropBox URL's are "public" so you may need to modify the settings on the file so it's downloadable by your app.
 
lfeldmann
Apple Fan
Profile
Posts: 7
Reg: Jun 22, 2012
Pfungstadt
2,520
like
06/25/12 03:38 AM (12 years ago)
The PDF is in the public folder and I simply copied the public URL from DB into Application?
 
lfeldmann
Apple Fan
Profile
Posts: 7
Reg: Jun 22, 2012
Pfungstadt
2,520
like
06/25/12 03:39 AM (12 years ago)
When I drag and drop to browser the PDF opens in preview (3.3 MB)
 
lfeldmann
Apple Fan
Profile
Posts: 7
Reg: Jun 22, 2012
Pfungstadt
2,520
like
06/25/12 04:20 AM (12 years ago)
I just choosed a different server of mine http://www.lrfeldmann.de/DS/PDFs/Alternative%20Energy.pdf and it opens fine as well. Same error in iOS Simulation???
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
06/25/12 09:39 AM (12 years ago)
OK, good work. So the URL is public, good. Are there other PDF's in the app that load OK and it's only this one that doesn't? It doesn't appear to be a timeout issue sometimes caused by huge file downloads (the error in the console output you posted is iOS saying "400, location not available"). If other PDF file's load, and this one does not, then for sure it's an issue with the PDF itself (too large, some other issue?) and not your project. Ah, this could be an issue, iOS does not like spaces in file names. You could try renaming the file without a space (internet URL's should not have spaces anyway) and see what happens. Not sure on this one but it's going to be something simply I think.
 
lfeldmann
Apple Fan
Profile
Posts: 7
Reg: Jun 22, 2012
Pfungstadt
2,520
like
06/26/12 08:55 AM (12 years ago)
I renamed all of them and it still happens to all of them ?????
 
lfeldmann
Apple Fan
Profile
Posts: 7
Reg: Jun 22, 2012
Pfungstadt
2,520
like
06/26/12 09:02 AM (12 years ago)
OOOPS Sorry you are right! It works now and it was the SPACE
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.