UIWebView CFStringCreateWithBytes EXC_BAD_ACCESS

In one of our in-house apps we are using a UIWebView to preview PDFs. Most of the time this works as it should, but the app crashes rarely. We get an EXC_BAD_ACCESS in CFStringCreateWithBytes.


As this crash never occured during development and we can't reproduce it, we just got a Crashlytics crash log:


Thread : Crashed: com.apple.root.default-qos

0 CoreFoundation 0x284d6eec __CFStringCreateImmutableFunnel3 + 543

1 ??? 0xbadbeefb

2 CoreFoundation 0x28404fc3 CFStringCreateWithBytes + 50

3 JavaScriptCore 0x29a24e7d ***::StringImpl::createCFString() + 84

4 JavaScriptCore 0x29a1280f ***::String::createCFString() const + 14

5 WebCore 0x3445e9af WebCore::fileSystemRepresentation(***::String const&) + 14

6 WebCore 0x3474fd0f WebCore::deleteFile(***::String const&) + 14

7 WebCore 0x34689217 ___ZN7WebCore14DiskImageCache10removeItemEj_block_invoke + 38

8 libdispatch.dylib 0x36faf2e3 _dispatch_call_block_and_release + 10

9 libdispatch.dylib 0x36fb9381 _dispatch_root_queue_drain + 1388

10 libdispatch.dylib 0x36fba3c3 _dispatch_worker_thread3 + 94

11 libsystem_pthread.dylib 0x37116dc1 _pthread_wqthread + 668

12 libsystem_pthread.dylib 0x37116b14 start_wqthread + 8


Has anyone ever seen anything like this? I am at a loss.


Thanks!

I got same random crash on ios7/8

UIWebView CFStringCreateWithBytes EXC_BAD_ACCESS
 
 
Q