Search Unity

Attempt to set pitch to infinite value from script ignored!

Discussion in 'Editor & General Support' started by joni-giuro, Mar 4, 2014.

  1. joni-giuro

    joni-giuro

    Joined:
    Nov 21, 2013
    Posts:
    435
    Hi All!
    I'm creating a little car game with using unitycar. Everything was working fine until I decided to change the main menu a little bit. Now it still runs fine inside the unity editor, but when I deploy it to my iPhone I see an error in the xcode console after the main menu, when I actually start a level:

    "(Filename: Line: 306)

    Attempt to set pitch to infinite value from script ignored!"

    I have no idea what is going on here. I have a normal camera and a couple of touch events in the main menu.
    The funny thing is that it doesn't always happen, only sometimes. Any idea?
     
  2. exerion

    exerion

    Joined:
    Jun 29, 2011
    Posts:
    54
    We have the same problem and haven't found a solution. Did you end up solving it?
     
  3. Zergling103

    Zergling103

    Joined:
    Aug 16, 2011
    Posts:
    392
    Sounds like division by zero. Search for the property .pitch in your project and see what values you are feeding into it.
     
  4. SYRSA

    SYRSA

    Joined:
    Jul 10, 2013
    Posts:
    18
    It would be nice for someone who knows a thing or 2 to spot this issue. I'm having the same problem aswell, my game freezes and shows a blank screen when this happens. I wonder what the filename is because it is not showing: (Filename: Line: 306)... Yes, the line is 306. But what is the bloody filename? So we can figure out this problem.