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 frsddeasfsdadas · Aug 04, 2017 at 11:19 AM · buildcrashbuild-errorunity 4.6directx 11

Out of memory when building with DX11 disabled on Unity 4

Every time I build a certain scene I get one of two errors when it's at the "building level" stage

This one is the most common: alt text

The other one is this alt text

I've narrowed the problem down to one specific GameObject with scripts attached that have a lot of serialized properties. I tried building a scene with only that GO and it failed. Tried selectively deleting the scripts on it and had some results. I can build extra scenes into the game that hold GOs with only part of the scripts and it works, but I need all of them on the original one. Also, there were some textures that caused the error but I seem to have corrected that issue by reimporting them. I reimported all the assets referenced in the messed up scripts too, to no avail.

My first instinct was to split up the asset references into different scenes so that the sharedAssets files don't get too big (what with the RAM limitations of Unity 4), since that is the way I had solved that error before. This time though the only thing that works is activating DirectX 11, weirdly enough. The errors seem to have started after I had activated and deactivated DirectX 11 in the player settings. Reversing the few other things I did that might have caused it did nothing.

I also tried reinstalling Unity, reimporting all the assets, deleting the folders inside the Library folder of the project, and finally upgrading to Unity 2017, which solves that particular problem but creates a crazy amount of other problems with the project; perhaps the worst of which is the script compilation time which has increased tenfold. Of course I could just release a game that requires DX11 but I could not think of a dumber reason to have to do that. Then again steam survey says only 2.56% of users don't have a DX11 compatible GPU, so it might not be that bad.

fatal-error.jpg (44.9 kB)
checkdisallowallocation.jpg (44.4 kB)
Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by frsddeasfsdadas · Aug 05, 2017 at 01:48 AM

Alright, I have a new theory: There's nothing wrong with my project and it has been teetering on the edge of fatal error before. Now DX11 might just be using less memory and that's why it still works.

In the offending scene I have references to basically all assets in the game (procedural generation). From my understanding they all get loaded into memory when the scene is loaded and then get unloaded until they're used. I might try putting some of my asset references into prefabs in the resources folder and load them at points in the game where they are needed.

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 frsddeasfsdadas · Aug 11, 2017 at 12:52 AM 0
Share

Uhm, I just managed to get a build to go through in DX9. All I did was create an empty scene and make that the last one in the list.

I do not understand Unity.

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

75 People are following this question.

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

Related Questions

Making a unity build fails every attempt. 0 Answers

Distribute terrain in zones 3 Answers

Build Crashes Trying To Load Level 0 Answers

Jenkins android build launcher:mergeReleaseResources FAILED 0 Answers

Blue screen when build for android 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