Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Godot freeze computer, when shadow contact set to 1 #9740

Closed
djrm opened this issue Jul 20, 2017 · 8 comments
Closed

Godot freeze computer, when shadow contact set to 1 #9740

djrm opened this issue Jul 20, 2017 · 8 comments

Comments

@djrm
Copy link
Contributor

djrm commented Jul 20, 2017

Operating system or device - Godot version:
Fedora NVidia GTX 900 series, Driver 381.22 Godot version: 2a0c0db

Issue description:
Godots starts using a LOT of CPU, causing the entire OS to freeze, sometimes im even unable to close godot.

Steps to reproduce:
Open the attached project and move the camera towards the walls until you start to touch them (i was using the freelook mode). !WARNING DOING THIS MIGHT FREEZE YOUR COMPUTER, SO TRY TO CLOSE GODOT AS SOON AS POSSIBLE IF IT STARTS TO SLOW DOWN.

As far as i can tell this only happens when the Directional Light shadow contact is set to 1 (dont really know if lower values also work) but with contact set to 0 it does not happen, on 1 this will always happen.

Link to minimal example project:

computer_freeze_test.zip

@Calinou
Copy link
Member

Calinou commented Jul 21, 2017

I've been able to reproduce this once, with the NVIDIA driver on Linux. This can be caused if you progressively increase/decrease the value, especially (for example, if you drag the mouse cursor after selecting the Contact property).

When it happened, the computer froze entirely and I had to forcibly shut it down.

@Zylann
Copy link
Contributor

Zylann commented Jul 21, 2017

Last time I tested contact shadows a month ago they did something similar, they seemed to work at first, then Godot froze and it was difficult for me to close it due to general slowdown.
nVidia card too here, geForce 940M.

@reduz
Copy link
Member

reduz commented Jul 25, 2017

this kinda sounds like a driver bug, but i will give it a check... and add some tests to avoid too high values

@djrm djrm mentioned this issue Jul 25, 2017
@reduz
Copy link
Member

reduz commented Jul 26, 2017

AMD on linux cant reproduce :\

@djrm
Copy link
Contributor Author

djrm commented Jul 26, 2017

reduz: you are right, it could be a driver issue, since on intel does not happen, there is a slow down when doing the reported action (moving through the ground), but it does not freeze the computer.

@reduz
Copy link
Member

reduz commented Aug 7, 2017

i did some changes to the shaders to avoid a potential freeze, is it fixed for anyone with nvidia?

@djrm
Copy link
Contributor Author

djrm commented Aug 7, 2017

it is fixed for me.

@vnen
Copy link
Member

vnen commented Aug 7, 2017

Closing as fixed then.

@vnen vnen closed this as completed Aug 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants