Search Unity

Mprotect remapping failed

Discussion in 'iOS and tvOS' started by grobm, Dec 1, 2008.

  1. grobm

    grobm

    Joined:
    Aug 15, 2005
    Posts:
    217
    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):
    1.  
    2. End Load File completely 393.444333
    3.  
    4. Resolution not supported on iPhone (Filename: /Users/joe/iphone-clean/Projects/../PlatformDependent/iPhonePlayer/ScreenManager.cpp Line: 49)
    5. stats: calls=5 tris=82 verts=108 draw=3806
    6. stats: calls=5 tris=82 verts=108 draw=4849
    7. Px actor destructor 84293632
    8. creating actor 18329424
    9. Static actor 18329424
    10. Object::FindAllDerivedObjects (ClassID (LevelGameManager), NULL) (Filename: /Users/joe/iphone-clean/Projects/../Runtime/Misc/SaveAndLoadHelper.cpp Line: 154)
    11.  
    12.  
    13. End Load File completely 394.029500
    14.  
    15. Resolution not supported on iPhone (Filename: /Users/joe/iphone-clean/Projects/../PlatformDependent/iPhonePlayer/ScreenManager.cpp Line: 49)
    16. stats: calls=5 tris=86 verts=124 draw=3857
    17. iPhone internal renderer profiler stats:
    18. plr> min: -48.929000   max: 744.700167   avg: 54.453833
    19. drw> min: 0.499167   max: 61.038333   avg: 4.638333
    20. fls> min: 0.000000   max: 0.000500   avg: 0.000333
    21. swp> min: 0.591333   max: 4.366500   avg: 1.119500
    22. frm> min: 30.502000   max: 768.238333   avg: 82.268833
    23. mono> used: 266240 heap: 479232
    24. ----------------------------------------
    25. stats: calls=5 tris=86 verts=124 draw=3742
    26. stats: calls=5 tris=86 verts=124 draw=3886
    27. stats: calls=5 tris=86 verts=124 draw=3911
    28. iPhone internal renderer profiler stats:
    29. plr> min: 6.646500   max: 15.737667   avg: 9.441667
    30. drw> min: 0.494167   max: 1.451000   avg: 0.691000
    31. fls> min: 0.000000   max: 0.000500   avg: 0.000333
    32. swp> min: 0.588667   max: 1.808500   avg: 0.728667
    33. frm> min: 31.983000   max: 34.525500   avg: 33.287167
    34. mono> used: 315392 heap: 479232
    35. ----------------------------------------
    36. Px actor destructor 18329424
    37. creating actor 84293632
    38. Static actor 84293632
    39. Object::FindAllDerivedObjects (ClassID (LevelGameManager), NULL) (Filename: /Users/joe/iphone-clean/Projects/../Runtime/Misc/SaveAndLoadHelper.cpp Line: 154)
    40.  
    41.  
    42. End Load File completely 360.727000
    43.  
    44. Resolution not supported on iPhone (Filename: /Users/joe/iphone-clean/Projects/../PlatformDependent/iPhonePlayer/ScreenManager.cpp Line: 49)
    45. Px actor destructor 84293632
    46. creating actor 18329424
    47. Static actor 18329424
    48. Object::FindAllDerivedObjects (ClassID (LevelGameManager), NULL) (Filename: /Users/joe/iphone-clean/Projects/../Runtime/Misc/SaveAndLoadHelper.cpp Line: 154)
    49. creating actor 26049540
    50. creating body 26049536
    51.   creating actor 99997664
    52. Static actor 99997664
    53. creating actor 100005184
    54. Static actor 100005184
    55. creating actor 100007616
    56. Static actor 100007616
    57. creating actor 100013936
    58. Static actor 100013936
    59. creating actor 100016800
    60. Static actor 100016800
    61. creating actor 100021232
    62. Static actor 100021232
    63. creating actor 100025008
    64. Static actor 100025008
    65. creating actor 100028608
    66. Static actor 100028608
    67. creating actor 100029888
    68. Static actor 100029888
    69. creating actor 100023376
    70. Static actor 100023376
    71.   creating actor 100066448
    72. Static actor 100066448
    73. creating actor 100069664
    74. Static actor 100069664
    75. creating actor 100087664
    76. Static actor 100087664
    77. creating actor 100090240
    78. Static actor 100090240
    79. creating actor 100086576
    80. Static actor 100086576
    81.  
    82.  
    83. End Load File completely 1602.906667
    84.  
    85.  creating actor 25642500
    86. creating body 25642496
    87.  stats: calls=39 tris=1713 verts=10484 draw=40257
    88. stats: calls=39 tris=1713 verts=10484 draw=30802
    89. stats: calls=48 tris=2329 verts=13438 draw=40424
    90. iPhone internal renderer profiler stats:
    91. plr> min: -484.722333   max: 3832.151000   avg: 167.390000
    92. drw> min: 0.492500   max: 577.990667   avg: 26.853500
    93. fls> min: 0.000000   max: 0.000667   avg: 0.000333
    94. swp> min: 0.596500   max: 3.432333   avg: 1.283333
    95. frm> min: 32.234833   max: 3943.210500   avg: 216.681167
    96. mono> used: 311296 heap: 479232
    97. ----------------------------------------
    98. Mprotect failed at 0x5324000 (length 53248) with errno 13
    99. Mprotect remapping failed
    100. (gdb)
     
  2. Bael

    Bael

    Joined:
    Jul 21, 2008
    Posts:
    106
    Texture resolution maybe? iPhone/iPod only supports textures up to 1024x1024 I think, do any of your textures go over that resolution?
     
  3. grobm

    grobm

    Joined:
    Aug 15, 2005
    Posts:
    217
    I my textures are actually 256x256 or 512x512.

    -Mark
     
  4. Mantas-Puida

    Mantas-Puida

    Joined:
    Nov 13, 2008
    Posts:
    1,864
    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).
     
  5. QuantumCalzone

    QuantumCalzone

    Joined:
    Jan 9, 2010
    Posts:
    262
    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):
    1. Mprotect failed at 0xed50000 (length 212992) with errno 12
    2. 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
     
  6. guoyuan

    guoyuan

    Joined:
    Nov 18, 2012
    Posts:
    3
    I have resolved this proble .平时都是我们看英文,现在你们看下中文吧。 出现的原因就是某个大型系统采用了大量的文件销毁和创建工作,比如同步切换场景。 解决方案: 1.改为异步才操作 2.改为分布来操作。2者原理差不多 就是以前一帧要处理完的事情 我分批次 去处理。结合协成来操作。