Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Voting for the Unity Awards are OPEN! We’re looking to celebrate creators across games, industry, film, and many more categories. Cast your vote now for all categories
    Dismiss Notice
  3. Dismiss Notice

PC shuts down when baking lights

Discussion in 'Editor & General Support' started by skinwalker, Mar 28, 2018.

  1. skinwalker

    skinwalker

    Joined:
    Apr 10, 2015
    Posts:
    505
    Hey guys,

    I built a new pc a month ago (Ryzen 5 1600x, GTX 1060 6GB, 8GB Ram). I have had overheating issues with it and I wasn't able to run prime95 for more than 30mins or build in Unity, but then I changed the thermal paste (and I bought a third case fan) and I'm able to run prime95 for 5+ hours now (don't know how much exactly, I stopped it after 5 hours in) and I can build in Unity, but the problem is when I start baking lights.

    Even a simple scene with 4 walls and 2 floors and 1 point light with a big radius causes my PC to shut down 2-3 mins in the baking process. At first it freezes and after about 20-30 seconds it shuts down. I have to use my laptop to bake the lights for my project.

    Anyone knows what might be causing this?
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,822
    Try checking the windows event viewer, maybe it has some clues. Also its likely that something is still overheating so run some temperature monitoring software while it runs, something that logs to disk so you can check the temp before the shutdown. This is quite good http://www.almico.com/sfarticle.php?id=5
    Im guessing its the CPU still overheating
     
    skinwalker likes this.
  3. orb

    orb

    Joined:
    Nov 24, 2010
    Posts:
    3,033
    Run FurMark. Prime95 only stress tests the CPU.
     
    skinwalker and karl_jones like this.
  4. skinwalker

    skinwalker

    Joined:
    Apr 10, 2015
    Posts:
    505
    I tried running FurMark for about 40 mins and didn't have any problems. I also tried baking the same scene as yesterday and it worked without shut downs.

    I also remember that when I was baking the old scene and the PC shut down I tried to rebake immediately and it printed out some errors and I ended up going to Edit/Preferences/GI and deleting some cache folder (it was 4 GBs out of 10GB).

    I am not really sure but as far as I remember the main project with about 20 lights took 10mins to shut down and a simple scene with only 1 light and 4 walls took about 2 minutes to cause a shut down, so I am not really sure but I suppose the time doesn't really matter, but what matters is the current % of the light baking (say 80% finished).

    EDIT :
    -Tried rebaking a similar (simple) scene with 4 walls and 1 point light - went successfully.
    -Added more walls and about 90 lights - PC shut down after about 20-25 mins.
     
    Last edited: Mar 28, 2018
  5. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,822
    You need to monitor the actual temperature of the hardware components. There is software that can do this while the pc is running normally. Then check what was hot when the shutdown occured, CPU, gpu, etc.
     
  6. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    Other than an overheat issue, shutting off could be a power supply issue, as in not large enough for the load.
     
    Lu4e likes this.
  7. skinwalker

    skinwalker

    Joined:
    Apr 10, 2015
    Posts:
    505
    My PSU is Seasonic 550w gold plus. I am going to monitor the temps while baking lights and see what happens.
     
  8. skinwalker

    skinwalker

    Joined:
    Apr 10, 2015
    Posts:
    505
    Hello,

    I just ran a test with SpeedFan and here's the log
    It's about 600 rows and it's been running for ~20mins, I started it after I got a PC shut down (this time not by baking lights but by refactoring code with Resharper -- renaming fields). I don't see any difference in the last rows before the reset.

    Auxtin0 and Auxtin1 are always burning even when running other temp monitoring software (maybe the stats are wrong?). The CPU was at ~40 before the reset and during the whole process of baking lights.

    Screenshot of the program while not doing anything in Unity. As I said the only difference while baking lights is that the CPU temps jump at 40.



    I have played Fortnite and PUBG that also stress the CPU and GPU and the PC was running fine. Side note - I haven't overclocked anything.
     
    Last edited: Mar 30, 2018
  9. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    Your CPU and GPU aren't reporting numbers I'd worry about. AUXTIN0 and 1 are supposed to be PSU temp sensors. If they are reporting accurately I'd think they are way too hot. Check that your PSU fan is operating properly and is not overheating. I'd also check what their values are right after cold starting the machine (literally let it get cold, start it up) and see if they start at a normal value and actually heat up to that, or are just always reporting erroneously high values.

    550w is on the low end for a modern game computer by the way.
     
    karl_jones likes this.
  10. skinwalker

    skinwalker

    Joined:
    Apr 10, 2015
    Posts:
    505
    I built the exact same PC but with a different case. Both use the same components and the AUXTIN0 and 1 are with similar values, other shows 70-95 mine is a bit hotter with ~5 degrees. The other PC is able to bake the same room while the one I have in this apartment fails..

    I think Auxtin0 and 1 are always reporting high values on both machines. The other PC never had overheating issues so I didnt have to change it's thermal paste to run a CPU stress test, it has been performing good since day one.
     
  11. Lu4e

    Lu4e

    Joined:
    Mar 23, 2018
    Posts:
    276
    Another possibility may from the motherboard with failed transistor(usually near the usb power)...which will increase the current draw from the power supply and lead to shut down.

    Try disable turboboost from your cpu, it may survive if you have the above problem.

    If not, problem may come from power supply, try exchange them and see result.
     
    skinwalker likes this.
  12. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    Yeah, I had no idea you had 2 identical machines. Swap parts between them until you find the culprit. Start with the power supply.
     
  13. skinwalker

    skinwalker

    Joined:
    Apr 10, 2015
    Posts:
    505
    I used a third fan (on top) for basically no reason I thought it would solve the first overheating issue but changing the thermal paste did it. So I decided to disconnect that fan and I have been baking lights for 3 hours now without experiencing a shut down. I am not sure if the PC will survive this I put so many lights and I shouldn't have done that, but is there a reason why a fan would cause a shut down? Tomorrow I will prepare a scene with less lighting and see if it can fully bake it.

    I also noticed that my memory is at 80-90% sometimes even 99% and I only have 8GBs.

    EDIT : I just finished baking a smaller scene - 250mb lighting and my PC didnt shut down, I dont know if I got lucky, have to experiment more. But I have the top fan disconnected.
     
    Last edited: Mar 31, 2018
  14. skinwalker

    skinwalker

    Joined:
    Apr 10, 2015
    Posts:
    505
    I tried baking again with the top fan disconnected and the PC didn't shut down, I really have no idea why a fan would cause this or maybe it was a coincidence.
     
    Last edited: Mar 31, 2018
  15. orb

    orb

    Joined:
    Nov 24, 2010
    Posts:
    3,033
    Airflow is a tricky thing. Sometimes blowing hot air into a hot object makes things worse ;)

    Check if sucking the air out makes things any better.
     
    Lu4e and skinwalker like this.
  16. Lu4e

    Lu4e

    Joined:
    Mar 23, 2018
    Posts:
    276
    is your fan usb-powered? where do you plug your fan? to the power supply or to main board?
    does your fan has same issues with another PC?

    As Mac user, can't agree any more :)
     
  17. skinwalker

    skinwalker

    Joined:
    Apr 10, 2015
    Posts:
    505
    It's connected to the PSU. I also noticed that when the fan was connected and baking lights the PC freezes and shuts down. Now the PC freezes and after 10-20 seconds it's back to normal and continues baking without a shut down.
     
  18. Lu4e

    Lu4e

    Joined:
    Mar 23, 2018
    Posts:
    276
    Its likely your psu has problem.
    If your psu is still under warranty, let them do a diagnosis for you.
     
    skinwalker likes this.
  19. skinwalker

    skinwalker

    Joined:
    Apr 10, 2015
    Posts:
    505
    This problem still happens when Im baking lights, I will return the PSU and see if they can tell where the problem is or replace it.
     
  20. the_perpetual_dev

    the_perpetual_dev

    Joined:
    Sep 6, 2021
    Posts:
    1
    I do not often write in forums but for anyone who runs into this problem I hope this can help a little. My computer kept shutting down with in seconds (20-30secs) of starting a bake. My computer would whirl up and start crunching numbers then boom it would power off. After searching for solutions the easiest workable solution I could find was to limit the cores the unity editor was allowed to use.

    So on a windows 10 machine (I believe you can do something similar on a mac) if you open up your task manager click on the details tab (if you do not see details press the dropdown that says more details) and look for unity.exe. Right click it and press set affinity. This will allow you to limit the amount of cores unity is allowed to use simultaneously. So just untick a few cores and try baking. If it works great if not untick a few more, hope this helps someone.

    As I said this was the easiest workable solution I could find. I did not want to get bogged down in the hardware specifics of why my CPU was overheating or what was causing my computer to switch off.
     
    Pollo_Loc0 likes this.