Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by QuantumCalzone · Dec 11, 2015 at 01:54 PM · iosmobileiphonexcodeipad

What does Mprotect remapping failed mean and how do I fix it?

Hey guys!

I'm stumped with an error I found and from my searches, only a few have also received it a long time ago and I'm not quite sure if / how a solution was achieved.

The error I'm getting in xcode is

 Mprotect failed at 0xed50000 (length 212992) with errno 12
 Mprotect remapping failed

The game works fine in the editor and all other platforms. This error is iOS specific and happens every session that goes past the login process (loads another scene) for > 10 seconds. The exact time is inconsistent. I say inconsistently because it doesn't seem to happen right after an interaction. My game does download data and images so my hunch (and a lousy hunch at that) is threading / wait time is the cause of the inconsistently.

Here's some of my search results

  • http://forum.unity3d.com/threads/mprotect-failed-at-0x51fa000.15858/

  • -this is from all the way back from 2008 and it looked like it was a hotfixed by Unity

  • http://forum.unity3d.com/threads/mprotect-remapping-failed.15443/

  • -this is more of the same but a Unity dev did mention:

    Workaround: don't allocate mono objects too frequently, reuse them if possible (this would also improve your performance).

  • -This is a little embarrassing since I'm a self taught Unity user but what exactly does that mean and can I apply it to my problem?

My system info:

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 My game is 2d, it uses NGUI, it downloads data and images from the internet.

Thank you so much for your read and time. Hope you can help!

Comment
Add comment · Show 6
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image PDZ · Jan 14, 2016 at 04:21 PM 0
Share

Also having the same issue

avatar image QuantumCalzone PDZ · Jan 16, 2016 at 12:18 AM 0
Share

are you using ngui, parse, of the facebook sdk?

avatar image PDZ QuantumCalzone · Jan 18, 2016 at 07:55 AM 0
Share

I'm not. I'm using AWS S3 library though

Show more comments
avatar image Teravisor · Jan 25, 2016 at 11:11 AM 0
Share

I'm a self taught Unity user but what exactly does that mean and can I apply it to my problem?

Basically, ins$$anonymous$$d of calling Destroy(GameObject) you disable it and place it into some 'pool' (attach to GameObject "ObjectPool" for example) and then ins$$anonymous$$d of Instantiate(...) you get that object from 'pool', set it to state you need and activate. You can Google for "Unity object pooling", I think I've seen some code samples. As of what I see it's either Unity bug with permissions setting on iOS, or exactly what that workaround mentiones: iOS has problems with setting permissions to a lot of new memory allocated. Also, in theory, it's possible you just don't have enough memory (check profiler's memory usage and iOS memory limit for applications. Are you Destroying(or pooling and checking if you didn't pool too much as that will hog memory) objects you don't need?). It's also possible that unity allocates too often during download causing that exact problem you written workaround for - that would be Unity bug. Posted as comment as I've never tested that myself and might be horribly wrong.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by guoyuan · Apr 20, 2016 at 02:12 PM

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

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image KdRWaylander · Apr 20, 2016 at 02:12 PM 0
Share

Google translate: We usually look at us in English, Chinese and now you look at it. The reason is that a large-scale system with a large number of document destruction and creation tasks, such as simultaneous switching scenes. Solution: 1. 2. to asynchronous operation only to distribution operations. 2 person principle is almost a thing to be finished before I processed in batches to deal with. Hiap Seng combined to operate.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

7 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

iphone like date pickers 1 Answer

I can run the Unity3D Game through XCode, but can't run it directly through iPad. 3 Answers

Error linker IOS / Unity - XcODE 2 Answers

Xcode build crashes 0 Answers

Unity modules for iOS? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges