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 DRProductions · Jul 24, 2014 at 04:58 AM · errorphysicsrigidbodycrash

Unity Script causing crash

I have been going over this code again and again and cant find what would cause a crash like this, In the script after pressing a key a rigidbody is added too each goo object and pressing it again will cause them to lerp back into position, however, the game crashes sometimes right in the middle of this action, the error log shows the eroor: Unity.exe caused an Access Violation (0xc0000005). I just have no damn clue how this could happen

EDIT: Unity has recognized this as a bug and is working towards a resolution apparently, I just got this email

"Hello,

Thank you for your submission, We have been able to reproduce this bug and have sent it for resolution with our developers. We cannot say when the resolution will be publicly available.

We highly appreciate your contribution. If you have further questions, feel free to contact us.

Regards, Jonas Unity QA Team"

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 thevraptor · Jul 24, 2014 at 11:01 AM 0
Share

I have a similar problem in one of my games, where if you shoot your 5th bullet out of the pistol (the bullets did have rigidbodies applied to them), the character controller deletes itself from the gameworld, even though nowhere in the script does it do that. The physics engine is very complicated, and I decided that it was a glitch. This was on Unity 4.2, and I have been to lazy to update it, so it might help to download the newest version if you are not using that already. Otherwise, I would report it via the bug reporter.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by ironblock · Jul 24, 2014 at 07:36 AM

  IEnumerator lerp(){
             foreach(GameObject i in RigidGoobjects)
             {
                 i.transform.position = Vector3.MoveTowards(i.transform.position, i.transform.parent.position, 0.5f);
             }
         yield return new WaitForSeconds(0.01f);
     }

your co routine was way to fast this wil fix it

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 DRProductions · Jul 24, 2014 at 02:00 PM 0
Share

Nope, It doesn't matter, I have tested it without a WaitForSeconds there and still get the same crash, I also tested it with WaitForSeconds(0.01f), same crash

In fact, I just replaced it with a void method, still have the same crash

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

24 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

Related Questions

Advice for Intersecting Colliders 0 Answers

Addforce - bug with jump 2 Answers

Rigidbody2D won't stop moving. 2 Answers

Unity 4.0 Crashes without reason 1 Answer

A node in a childnode? 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