Error - Space state is inaccesible right now, wait for iteration or fixed process notification

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By swipis
:warning: Old Version Published before Godot 3 was released.

Hello,
I run into problem, when I unpause the game I getting this error:

Space state is inaccesible right now, wait for iteration or fixed process notification
Condition '!dss' is true, returned: Vector3()
Method/Function failed, returning: 0
Condition '!dss' is true, returned: Vector3()

And this problem is related with this (called from _fixed_process()):

var motion = parent.move_to(parent.get_global_transform().xform(Vector3(0, 0, -currentSpeed * delta)))
parent.move(motion)

Please can someone help me to fix this?

Thank you

EDIT: my mistake was to put pause code inside _fixed_process() as well, just paste code into _process() and there is no errors.

Where does this code get called from?

avencherus | 2017-02-19 12:06

this pat of code is on my player and this means player movement.

swipis | 2017-02-19 12:39

Is it being called in _fixed_process() or _integrate_forces()?

avencherus | 2017-02-19 12:43

omg sorry it is called in _fixed_process()

swipis | 2017-02-19 12:55

No problem. So it’s in a player class, in fixed processing, and it’s calling to move it’s parent node? Are both nodes inheriting pause mode?

avencherus | 2017-02-19 13:08

Yes both nodes pause mode - inherit

swipis | 2017-02-19 13:10

Sorry, I’m not able to reproduce this error. =(

avencherus | 2017-02-19 13:28

thank you avencherus for trying but I got it! my mistake was to put pause code inside _fixed_process(), just paste pause code into _process() and problem is gone!

swipis | 2017-02-19 13:31