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
0
Question by Tomer-Barkan · Jul 27, 2013 at 09:23 AM · errorbugtimedebugtimescale

Lots of !IsFinite() Errors and FPS crawling to a halt - How to debug?

Hello,

When I'm running my game, I'm getting tons of !IsFinite() errors, and this causes my game to really crawl (like under 0.5 FPS crawling).

Messages are very uninformative, and I have no idea how to debug. For example:

 !IsFinite(outDistanceForSort)
 UnityEditor.DockArea:OnGUI()

 !IsFinite(outDistanceAlongView)
 UnityEditor.DockArea:OnGUI()

Now these keep coming every second.

I know exactly which line of code I added to make this problem happen, but that line of code is essential, and I have no idea how to debug what is causing this. Any ideas on what could cause this or how to approach it for debugging, as the message doesn't point to any specific object?

The line I added to cause this is setting the Time.timeScale to 0:

 Time.timeScale = 0;

I do this because I want the game to start paused and only begin after the player clicks. This command happens in one of the Start() methods, but I also tried moving it to the first Update() call instead and it didn't help.

I should note: I have a pause button in game, and if I don't start the game paused, but the player manually pauses the game from that button, then it usually works fine. But pause it many times, and you might get this error again, though rarely. On the other hand when I pause at the beginning of the game, I ALWAYS get this error. Both pause mechanisms work the same.

Thanks!

Edit: Just making something clear - the errors and FPS issues continue even after I unpause the game and return the timescale to normal.

Edit 2: Ok, I managed to locate the problem object by removing them one by one until I stopped getting the errors. The problem object turned up being a Cloth object (with an interactive cloth component and cloth renderer). The cloth object doesn't have any script on it. Any ideas as to why setting timescale to 0 will cause these errors with the cloth object?

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
Best Answer

Answer by Tomer-Barkan · Oct 12, 2013 at 06:56 AM

Apparently this is a known unity bug, you can read about it here:

http://forum.unity3d.com/threads/63047-Cloth-timeScale

If you want it solved, vote for it in feedback:

http://feedback.unity3d.com/suggestions/fix-bug-with-interactive-cloth-when-you-set-time-dot-timescale-to-0

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

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

15 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

Related Questions

Screen position out of view frustum error on FOV change? 0 Answers

Clothes goes mad with a near-zero time scale? 0 Answers

TimeScale Slows down Unity editor 0 Answers

could not initialize home screen window ?? win 8.1 2 Answers

"Edit Collider" Button Gone 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