Discussion Forums  >  Uncategorized

Replies: 7    Views: 343

giandolmen
Aspiring developer
Profile
Posts: 14
Reg: Dec 19, 2011
Padua
2,290
01/05/12 05:59 PM (12 years ago)

__dyld_dyld_fatal_error with pdf file

ios 1.5 __dyld_dyld_fatal_error when I try to open a pdf file. The file is 455 kb, and I'm tryng to open froma an external link Thanks Gianluca
 
Parker @ buzztouch
buzztouch Evangelist
Profile
Posts: 1395
Reg: May 09, 2011
Pacific Grove, ...
24,500
like
01/05/12 07:10 PM (12 years ago)
Hi Gianluca, That's a new one to me. I found this on stackoverflow: http://stackoverflow.com/questions/7977063/app-gives-off-dyld-dyld-fatal-error-on-simulator-working-and-fine-on-device See if that advice helps you out at all. If not I would check out the .pdf file itself. Did it save properly without errors? Is the file named correctly without spaces in the name or special ( @3%$^&*) characters, etc? Is there any other error messages relayed through LogCat? Setup instructions for LogCat are in your project download folder in the README.txt file.
 
giandolmen
Aspiring developer
Profile
Posts: 14
Reg: Dec 19, 2011
Padua
2,290
like
01/06/12 11:20 AM (12 years ago)
Thank's Parker! I checked out the pdf file, I tried with heavy, light, old, new and so on pdf file, but It works only with sample.pdf file. LogCat? I'm using XCode... (I'm sorry, I'm a beginners... LogCat works also with Xcode?) Thank you again, bye!
 
Parker @ buzztouch
buzztouch Evangelist
Profile
Posts: 1395
Reg: May 09, 2011
Pacific Grove, ...
24,500
like
01/06/12 03:21 PM (12 years ago)
Oops! Sorry, I must have been looking at too many forum posts and I thought you were using eclipse. There is an output console in xcode usually down at the bottom that will display various runtime posts. Clear that just before you tap the button to access a .pdf file when running your app in the simulator. See if that gives us any clues. Did you check the file names? Any spaces or special characters in them?
 
giandolmen
Aspiring developer
Profile
Posts: 14
Reg: Dec 19, 2011
Padua
2,290
like
01/07/12 03:21 AM (12 years ago)
Hi Parker, I did what you suggested and this is the result: 1) with file sample.pdf (It works) 2012-01-07 02:04:42.668 sifaabrasivi[2822:17303] BT_fileManager: File does exist in Xcode bundle: sample.pdf 2012-01-07 02:04:42.668 sifaabrasivi[2822:17303] BT_screen_webView: Loading file from Xcode bundle: sample.pdf 2012-01-07 02:04:42.674 sifaabrasivi[2822:17303] BT_screen_webView: shouldStartLoadWithRequest: URL: file:///Users/user306/Library/Application%20Support/iPhone%20Simulator/5.0/Applications/321A4D7D-194D-472E-A238-AFBAF75D5C74/sifaabrasivi.app/sample.pdf 2012-01-07 02:04:42.675 sifaabrasivi[2822:17303] BT_screen_webView: shouldStartLoadWithRequest: SCHEME: file 2012-01-07 02:04:42.675 sifaabrasivi[2822:17303] BT_screen_webView: webViewDidStartLoad 2012-01-07 02:04:42.676 sifaabrasivi[2822:17303] BT_screen_webView: showProgress 2012-01-07 02:04:42.676 sifaabrasivi[2822:17303] BT_viewUtilities: getProgressView 2012-01-07 02:04:43.078 sifaabrasivi[2822:17303] BT_screen_webView: webViewDidFinishLoad 2012-01-07 02:04:43.078 sifaabrasivi[2822:17303] BT_screen_webView: hideProgress [Switching to process 2822 thread 0x1fd03] 2) with file 13UMDASR.pdf (It doesn't work) 2012-01-07 01:48:49.608 sifaabrasivi[2528:17303] BT_fileManager: File does exist in Xcode bundle: 13UMDASR.pdf 2012-01-07 01:48:49.608 sifaabrasivi[2528:17303] BT_screen_webView: Loading file from Xcode bundle: 13UMDASR.pdf 2012-01-07 01:48:49.614 sifaabrasivi[2528:17303] BT_screen_webView: shouldStartLoadWithRequest: URL: file:///Users/user306/Library/Application%20Support/iPhone%20Simulator/5.0/Applications/321A4D7D-194D-472E-A238-AFBAF75D5C74/sifaabrasivi.app/13UMDASR.pdf 2012-01-07 01:48:49.614 sifaabrasivi[2528:17303] BT_screen_webView: shouldStartLoadWithRequest: SCHEME: file 2012-01-07 01:48:49.615 sifaabrasivi[2528:17303] BT_screen_webView: webViewDidStartLoad 2012-01-07 01:48:49.615 sifaabrasivi[2528:17303] BT_screen_webView: showProgress 2012-01-07 01:48:49.615 sifaabrasivi[2528:17303] BT_viewUtilities: getProgressView 2012-01-07 01:48:50.032 sifaabrasivi[2528:17303] BT_screen_webView: webViewDidFinishLoad 2012-01-07 01:48:50.033 sifaabrasivi[2528:17303] BT_screen_webView: hideProgress dyld: fast lazy binding from unknown image dyld: fast lazy binding from unknown image [Switching to process 2528 thread 0x1fd03] [Switching to process 2528 thread 0x1fd03] sharedlibrary apply-load-rules all Thank you.
 
giandolmen
Aspiring developer
Profile
Posts: 14
Reg: Dec 19, 2011
Padua
2,290
like
01/09/12 01:39 PM (12 years ago)
On http://opensource.apple.com/source/dyld/dyld-132.13/src/dyld.cpp I find: uintptr_t fastBindLazySymbol(ImageLoader** imageLoaderCache, uintptr_t lazyBindingInfoOffset) { uintptr_t result = 0; // get image if ( *imageLoaderCache == NULL ) { // save in cache *imageLoaderCache = dyld::findMappedRange((uintptr_t)imageLoaderCache); if ( *imageLoaderCache == NULL ) { const char* message = fast lazy binding from unknown image; dyld::log(dyld: %s\n, message); halt(message); } } What mean imageLoaderCache == NULL???
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
01/10/12 01:10 AM (12 years ago)
I have never seen these errors before - ever. But, it doesn't look like they are uncommon. Sounds like maybe resetting the simulator (restarting?) could do this trick? See this... http://stackoverflow.com/questions/7977063/app-gives-off-dyld-dyld-fatal-error-on-simulator-working-and-fine-on-device Also, are you running Xcode 4 with iOS 5 SDK? If not, be sure to get the latest release for iOS Dev.
 
giandolmen
Aspiring developer
Profile
Posts: 14
Reg: Dec 19, 2011
Padua
2,290
like
01/10/12 02:11 PM (12 years ago)
Thanks David, I'm working with MacinCloud, Xcode version 4.2, but I'm not able to know if I'm working with ios 5 sdk. How can I check it? Thanks!
 

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.