UIWebView error with statement: (addr! = MAP_FAILED), function _open_and_mmap_for_reading

I have an application with a built-in UIWebView. When I load a specific page into it, it disables the simulator without exception, but I see the following message in the Xcode console:

Assertion failed: (addr! = MAP_FAILED), function _open_and_mmap_for_reading, file / SourceCache / LanguageIdentifier _Sim / LanguageIdentifier-114 / LanguageIdentifier.c, line 593.

Sometimes I see the following message on the console:

malloc: * mmap (size = 2097152) failed (error code = 12)

This crash occurs in the background thread:

Thread 20, Queue : com.apple.root.default-priority
#0  0x93c4ea6a in __pthread_kill ()
#21 0x92138e72 in _pthread_wqthread ()

I do not think this is a memory leak. This leads to crashes in iOS6, iOS6.1 and iOS7 both in the simulator and in the device. I never see messages on the console when a device crashes.

Any ideas?

+4
1

HTML :

width="393025px"

:

CGSize fitsSize = [self.webView sizeThatFits:CGSizeMake(CGRectGetWidth(self.view.bounds), CGFLOAT_MAX)];

: (width = 393158, height = 2763), UIWebView:

self.webView.frame = CGRectMake(0, 0, fitsSize.width, fitsSize.height)

, . UIWebView , .

self.webView.frame = CGRectMake(0, 0, CGRectGetWidth(self.view.bounds), fitsSize.height)

​​.

+3

All Articles