I am getting constant errors in runtime on the iphone and ipod touch (both versions) randomly as I am testing a lite version of my game. I am asking the forum for help. The project is set to 480x320 resolution so I do not know why I am getting the error. I would love to know what causes these errors? I have lowered the poly count on my project models to the point were they can not be lowered anymore. I have checked in the editor to makes sure the game is not drawing more then 7000 polys. My frame rate appears to be fine 20-15 fps on ipod and iphone. I am kinda going crazy at this point, so I would love some help. BUG already filed: (Case 55228) Mprotect remapping failed Here is the console error on the game if you are interested. Code (csharp): End Load File completely 393.444333 Resolution not supported on iPhone (Filename: /Users/joe/iphone-clean/Projects/../PlatformDependent/iPhonePlayer/ScreenManager.cpp Line: 49) stats: calls=5 tris=82 verts=108 draw=3806 stats: calls=5 tris=82 verts=108 draw=4849 Px actor destructor 84293632 creating actor 18329424 Static actor 18329424 Object::FindAllDerivedObjects (ClassID (LevelGameManager), NULL) (Filename: /Users/joe/iphone-clean/Projects/../Runtime/Misc/SaveAndLoadHelper.cpp Line: 154) End Load File completely 394.029500 Resolution not supported on iPhone (Filename: /Users/joe/iphone-clean/Projects/../PlatformDependent/iPhonePlayer/ScreenManager.cpp Line: 49) stats: calls=5 tris=86 verts=124 draw=3857 iPhone internal renderer profiler stats: plr> min: -48.929000 max: 744.700167 avg: 54.453833 drw> min: 0.499167 max: 61.038333 avg: 4.638333 fls> min: 0.000000 max: 0.000500 avg: 0.000333 swp> min: 0.591333 max: 4.366500 avg: 1.119500 frm> min: 30.502000 max: 768.238333 avg: 82.268833 mono> used: 266240 heap: 479232 ---------------------------------------- stats: calls=5 tris=86 verts=124 draw=3742 stats: calls=5 tris=86 verts=124 draw=3886 stats: calls=5 tris=86 verts=124 draw=3911 iPhone internal renderer profiler stats: plr> min: 6.646500 max: 15.737667 avg: 9.441667 drw> min: 0.494167 max: 1.451000 avg: 0.691000 fls> min: 0.000000 max: 0.000500 avg: 0.000333 swp> min: 0.588667 max: 1.808500 avg: 0.728667 frm> min: 31.983000 max: 34.525500 avg: 33.287167 mono> used: 315392 heap: 479232 ---------------------------------------- Px actor destructor 18329424 creating actor 84293632 Static actor 84293632 Object::FindAllDerivedObjects (ClassID (LevelGameManager), NULL) (Filename: /Users/joe/iphone-clean/Projects/../Runtime/Misc/SaveAndLoadHelper.cpp Line: 154) End Load File completely 360.727000 Resolution not supported on iPhone (Filename: /Users/joe/iphone-clean/Projects/../PlatformDependent/iPhonePlayer/ScreenManager.cpp Line: 49) Px actor destructor 84293632 creating actor 18329424 Static actor 18329424 Object::FindAllDerivedObjects (ClassID (LevelGameManager), NULL) (Filename: /Users/joe/iphone-clean/Projects/../Runtime/Misc/SaveAndLoadHelper.cpp Line: 154) creating actor 26049540 creating body 26049536 creating actor 99997664 Static actor 99997664 creating actor 100005184 Static actor 100005184 creating actor 100007616 Static actor 100007616 creating actor 100013936 Static actor 100013936 creating actor 100016800 Static actor 100016800 creating actor 100021232 Static actor 100021232 creating actor 100025008 Static actor 100025008 creating actor 100028608 Static actor 100028608 creating actor 100029888 Static actor 100029888 creating actor 100023376 Static actor 100023376 creating actor 100066448 Static actor 100066448 creating actor 100069664 Static actor 100069664 creating actor 100087664 Static actor 100087664 creating actor 100090240 Static actor 100090240 creating actor 100086576 Static actor 100086576 End Load File completely 1602.906667 creating actor 25642500 creating body 25642496 stats: calls=39 tris=1713 verts=10484 draw=40257 stats: calls=39 tris=1713 verts=10484 draw=30802 stats: calls=48 tris=2329 verts=13438 draw=40424 iPhone internal renderer profiler stats: plr> min: -484.722333 max: 3832.151000 avg: 167.390000 drw> min: 0.492500 max: 577.990667 avg: 26.853500 fls> min: 0.000000 max: 0.000667 avg: 0.000333 swp> min: 0.596500 max: 3.432333 avg: 1.283333 frm> min: 32.234833 max: 3943.210500 avg: 216.681167 mono> used: 311296 heap: 479232 ---------------------------------------- Mprotect failed at 0x5324000 (length 53248) with errno 13 Mprotect remapping failed (gdb)
Texture resolution maybe? iPhone/iPod only supports textures up to 1024x1024 I think, do any of your textures go over that resolution?
Similar issue is already fixed in upcoming hotfix, but to be sure please attach your project to the bug report. Workaround: don't allocate mono objects too frequently, reuse them if possible (this would also improve your performance).
I'm really sorry I know this is an old thread but I'm having the same issue. I posted about it here there error xcode is displaying is Code (CSharp): Mprotect failed at 0xed50000 (length 212992) with errno 12 Mprotect remapping failed and it causes a crash. Currently on Unity 5.3 but has been happening since 5.2 Xcode is version 7.2 but has been happening since 7.0 I think
I have resolved this proble .平时都是我们看英文,现在你们看下中文吧。 出现的原因就是某个大型系统采用了大量的文件销毁和创建工作,比如同步切换场景。 解决方案: 1.改为异步才操作 2.改为分布来操作。2者原理差不多 就是以前一帧要处理完的事情 我分批次 去处理。结合协成来操作。