Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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
1
Question by MOLB · Jun 20, 2012 at 02:28 PM · crashimportsound

Unity stops working when I play the game in editor

Hi

This happened not so long ago... I was importing audio files into my Unity project, just to realise that the files weren't either MP3 or OGG. I removed them from assets and converted them to MP3, then I imported them into the project again (this time as MP3). I had a script that was working pretty well, and that script was supposed to use the audio files. Then I selected the audio files in the inspector. This far everything seemed normal untill I started the game. The game ran for a while until I used an input command in the script that would activate the sound. Unity stopped working and I had to manually close the proces. I opened Unity again and saw a message in the debug log saying something similar to "FILENAME.m4a has been deleted because it has crashed". I didn't care too much about the message, because I had already deleted the M4A audio files. Now when I try to use the script (activating MP3 AudioClips) or try to run the game for more than 10 seconds Unity crashes. Is there a possibility that the files became corrupt? Or is there an other explenation to this? I would also like to have an answer on how to solve this problem as well. So if you have any knowledge of this, then you are welocme to leave an answer or a comment.

Comment
Add comment · Show 1
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 MOLB · Jun 20, 2012 at 04:04 PM 0
Share

This is really weird... it only crashes when I press the R button. The R button is only used to toggle a bool.

2 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by MOLB · Jun 20, 2012 at 04:28 PM

It turned out to be a script that had some problems, I rewrote the script and now everything works. Thanks for the help anyway!

Comment
Add comment · 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
0

Answer by Jason_DB · Jun 20, 2012 at 03:57 PM

If you suspect that something could be corrupted, try exporting all the assets out as a package and reimporting them into a new project. That's worked for me the couple times I've gotten a corrupted project.

Comment
Add comment · Show 2 · 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 MOLB · Jun 20, 2012 at 04:01 PM 0
Share

I was thinking about that as well, but now I found out was the source of the problem is. When I activate a ParticleEmitter then Unity crashes. Everything else seems to work...

avatar image Jason_DB · Jun 20, 2012 at 04:07 PM 0
Share

Just a standard particle emitter? that seems very strange... I'm pretty sure I've only every crashed Unity by making an infinite loop or running out of memory. Is it a very intensive effect or something?

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

How to use option setting Vibrate and Mute 1 Answer

Unity crashes because of script 2 Answers

What can cause Unity to crash? 3 Answers

A node in a childnode? 1 Answer

Active/Desactive Cameras 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