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 /
  • Help Room /
avatar image
0
Question by kanaron · Jul 19, 2016 at 10:49 AM · uierrorcrash

UI not working after build

HI, I have problem with UI. When I play game in Unity everything works properly, but after I build game and turn on camera with UI everything breaks down. Canvas in some frames turns off, it bekomes invisible, Raw Image with RenderTexture change into broken texture (black texture with some numbers, i think), buttons texture in some framse becomes invisible, objects with text crashes (i don't know how, i just can see in some frames that i couldn't read that text). And finaly (in random frame when UI is on screen) game crashes with error 0xc0000005 (Read from location 45cb4f9c caused an access violation.) That location was never the same.

I read something about that error and i find solution which don't help me. In GraphicsSettings i must have some "Always Included Shaders" but i have 6 of them which must be included. Then i tried include some shaders which i think could help, but i was wrong and all canvas after build changed into pink texture. So can you help me which shaders should i include for UI? Because i'm sure the problem is in UI because game crashes only when some UI is on.

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 JamesLawrenceMyQVO · Jul 19, 2016 at 07:29 PM

It sounds like you are having some memory problems. Is the build for a mobile device? Also how are you using the RenderTexture? What does the UI that it crashes during have attached to it, including scripts?

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 kanaron · Jul 19, 2016 at 08:18 PM 0
Share

I'm not sure about memory problems because in error log i have 20-40% memory used. I thing it must be nearly 100% to memory problem? I tried to find a problem, and i think it colud be too many buttons, because when i turn some of them off everything works fine. But... i have just about 30 buttons, one raw image, one image, 10 texts. It's not a lot. In other devices are same problem, so i think there must be something with UI. And this is for PC, Windows. Not mobile device. The UI do... nothing. I tried turn off script so UI do nothing but game still crashes. I use RenderTexture properly... i think. Camera to RenderTexture (500x500), in canvas i have raw image with that texture. But i tried turn off everything from canvas and i left just only background and rawImage with RenderTexture and it works. In fact i think that is not just shader problem so i post about this problem here: link text

There is all what i have done in 8 hours for finding problem and i attached there error logs.

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

95 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 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

Unity Editor Crashes on Loading a Project, Elementary OS Loki 1 Answer

Unity Crash When i click play 0 Answers

Unity Keeps Destroying My Projects. Please help! (Urgent) 1 Answer

Why Does Unity Crash on Play? 0 Answers

unity crash when running on mobile - Access Violation (0xc0000005) 0 Answers


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