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 is freezing #2409

Closed
draxdeveloper opened this issue Aug 31, 2015 · 31 comments
Closed

godot is freezing #2409

draxdeveloper opened this issue Aug 31, 2015 · 31 comments

Comments

@draxdeveloper
Copy link

godot is freezing, it's seems to freeze when i am typing a string as parameter in the modulate function (i don't even run the game)
Godot don't even consumes 5% of my cpu when using the script, but when freezes it's jumps to 25% and stays there.
If i kill godot the godot process hangs there (with 25%)

here is the gdb:

GNU gdb (Debian 7.7.1+dfsg-5) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from godot.x11.tools.64...done.
(gdb) attach 6415
Attaching to program: /home/passarinho/gameDesign/godot/bin/godot.x11.tools.64, process 6415
Reading symbols from /usr/lib/x86_64-linux-gnu/libX11.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libX11.so.6
Reading symbols from /usr/lib/x86_64-linux-gnu/libXinerama.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libXinerama.so.1
Reading symbols from /usr/lib/x86_64-linux-gnu/libXcursor.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libXcursor.so.1
Reading symbols from /usr/lib/x86_64-linux-gnu/libssl.so.1.0.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libssl.so.1.0.0
Reading symbols from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
Reading symbols from /usr/lib/x86_64-linux-gnu/libfreetype.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libfreetype.so.6
Reading symbols from /usr/lib/x86_64-linux-gnu/libGL.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libGL.so.1
Reading symbols from /usr/lib/x86_64-linux-gnu/libGLU.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libGLU.so.1
Reading symbols from /lib/x86_64-linux-gnu/libpthread.so.0...Reading symbols from /usr/lib/debug//lib/x86_64-linux-gnu/libpthread-2.19.so...done.
done.
[New LWP 6422]
[New LWP 6421]                                                                                                                                                                                  
[New LWP 6420]                                                                                                                                                                                  
[New LWP 6419]                                                                                                                                                                                  
[New LWP 6418]                                                                                                                                                                                  
[New LWP 6417]                                                                                                                                                                                  
[New LWP 6416]                                                                                                                                                                                  
[Thread debugging using libthread_db enabled]                                                                                                                                                   
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Loaded symbols for /lib/x86_64-linux-gnu/libpthread.so.0
Reading symbols from /usr/lib/x86_64-linux-gnu/libasound.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libasound.so.2
Reading symbols from /lib/x86_64-linux-gnu/libz.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/x86_64-linux-gnu/libz.so.1
Reading symbols from /usr/lib/x86_64-linux-gnu/libstdc++.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libstdc++.so.6
Reading symbols from /lib/x86_64-linux-gnu/libm.so.6...Reading symbols from /usr/lib/debug//lib/x86_64-linux-gnu/libm-2.19.so...done.
done.
Loaded symbols for /lib/x86_64-linux-gnu/libm.so.6
Reading symbols from /lib/x86_64-linux-gnu/libgcc_s.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/x86_64-linux-gnu/libgcc_s.so.1
Reading symbols from /lib/x86_64-linux-gnu/libc.so.6...Reading symbols from /usr/lib/debug//lib/x86_64-linux-gnu/libc-2.19.so...done.
done.
Loaded symbols for /lib/x86_64-linux-gnu/libc.so.6
Reading symbols from /usr/lib/x86_64-linux-gnu/libxcb.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libxcb.so.1
Reading symbols from /lib/x86_64-linux-gnu/libdl.so.2...Reading symbols from /usr/lib/debug//lib/x86_64-linux-gnu/libdl-2.19.so...done.
done.
Loaded symbols for /lib/x86_64-linux-gnu/libdl.so.2
Reading symbols from /usr/lib/x86_64-linux-gnu/libXext.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libXext.so.6
Reading symbols from /usr/lib/x86_64-linux-gnu/libXrender.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libXrender.so.1
Reading symbols from /usr/lib/x86_64-linux-gnu/libXfixes.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libXfixes.so.3
Reading symbols from /lib/x86_64-linux-gnu/libpng12.so.0...(no debugging symbols found)...done.
Loaded symbols for /lib/x86_64-linux-gnu/libpng12.so.0
Reading symbols from /lib/x86_64-linux-gnu/libexpat.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/x86_64-linux-gnu/libexpat.so.1
Reading symbols from /usr/lib/x86_64-linux-gnu/libglapi.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libglapi.so.0
Reading symbols from /usr/lib/x86_64-linux-gnu/libXdamage.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libXdamage.so.1
Reading symbols from /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1
Reading symbols from /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0
Reading symbols from /usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0
Reading symbols from /usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0
Reading symbols from /usr/lib/x86_64-linux-gnu/libxcb-present.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libxcb-present.so.0
Reading symbols from /usr/lib/x86_64-linux-gnu/libxcb-sync.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libxcb-sync.so.1
Reading symbols from /usr/lib/x86_64-linux-gnu/libxshmfence.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libxshmfence.so.1
Reading symbols from /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1
Reading symbols from /usr/lib/x86_64-linux-gnu/libdrm.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libdrm.so.2
Reading symbols from /lib64/ld-linux-x86-64.so.2...Reading symbols from /usr/lib/debug//lib/x86_64-linux-gnu/ld-2.19.so...done.
done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Reading symbols from /lib/x86_64-linux-gnu/librt.so.1...Reading symbols from /usr/lib/debug//lib/x86_64-linux-gnu/librt-2.19.so...done.
done.
Loaded symbols for /lib/x86_64-linux-gnu/librt.so.1
Reading symbols from /usr/lib/x86_64-linux-gnu/libXau.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libXau.so.6
Reading symbols from /usr/lib/x86_64-linux-gnu/libXdmcp.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libXdmcp.so.6
Reading symbols from /lib/x86_64-linux-gnu/libudev.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/x86_64-linux-gnu/libudev.so.1
Reading symbols from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
Reading symbols from /usr/lib/x86_64-linux-gnu/libdrm_intel.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libdrm_intel.so.1
Reading symbols from /usr/lib/x86_64-linux-gnu/libdrm_nouveau.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libdrm_nouveau.so.2
Reading symbols from /usr/lib/x86_64-linux-gnu/libdrm_radeon.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libdrm_radeon.so.1
Reading symbols from /usr/lib/x86_64-linux-gnu/libpciaccess.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libpciaccess.so.0
Reading symbols from /usr/lib/x86_64-linux-gnu/libtxc_dxtn.so...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libtxc_dxtn.so
Reading symbols from /usr/lib/x86_64-linux-gnu/libpulse.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libpulse.so.0
Reading symbols from /lib/x86_64-linux-gnu/libjson-c.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/x86_64-linux-gnu/libjson-c.so.2
Reading symbols from /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-5.0.so...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-5.0.so
Reading symbols from /lib/x86_64-linux-gnu/libdbus-1.so.3...(no debugging symbols found)...done.
Loaded symbols for /lib/x86_64-linux-gnu/libdbus-1.so.3
Reading symbols from /lib/x86_64-linux-gnu/libcap.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/x86_64-linux-gnu/libcap.so.2
Reading symbols from /usr/lib/x86_64-linux-gnu/libICE.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libICE.so.6
Reading symbols from /usr/lib/x86_64-linux-gnu/libSM.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libSM.so.6
Reading symbols from /usr/lib/x86_64-linux-gnu/libXtst.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libXtst.so.6
Reading symbols from /lib/x86_64-linux-gnu/libsystemd.so.0...(no debugging symbols found)...done.
Loaded symbols for /lib/x86_64-linux-gnu/libsystemd.so.0
Reading symbols from /lib/x86_64-linux-gnu/libwrap.so.0...(no debugging symbols found)...done.
Loaded symbols for /lib/x86_64-linux-gnu/libwrap.so.0
Reading symbols from /usr/lib/x86_64-linux-gnu/libsndfile.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libsndfile.so.1
Reading symbols from /usr/lib/x86_64-linux-gnu/libasyncns.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libasyncns.so.0
Reading symbols from /lib/x86_64-linux-gnu/libattr.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/x86_64-linux-gnu/libattr.so.1
Reading symbols from /lib/x86_64-linux-gnu/libuuid.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/x86_64-linux-gnu/libuuid.so.1
Reading symbols from /usr/lib/x86_64-linux-gnu/libXi.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libXi.so.6
Reading symbols from /lib/x86_64-linux-gnu/liblzma.so.5...(no debugging symbols found)...done.
Loaded symbols for /lib/x86_64-linux-gnu/liblzma.so.5
Reading symbols from /lib/x86_64-linux-gnu/libgcrypt.so.20...(no debugging symbols found)...done.
Loaded symbols for /lib/x86_64-linux-gnu/libgcrypt.so.20
Reading symbols from /lib/x86_64-linux-gnu/libresolv.so.2...Reading symbols from /usr/lib/debug//lib/x86_64-linux-gnu/libresolv-2.19.so...done.
done.
Loaded symbols for /lib/x86_64-linux-gnu/libresolv.so.2
Reading symbols from /lib/x86_64-linux-gnu/libnsl.so.1...Reading symbols from /usr/lib/debug//lib/x86_64-linux-gnu/libnsl-2.19.so...done.
done.
Loaded symbols for /lib/x86_64-linux-gnu/libnsl.so.1
Reading symbols from /usr/lib/x86_64-linux-gnu/libFLAC.so.8...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libFLAC.so.8
Reading symbols from /usr/lib/x86_64-linux-gnu/libvorbisenc.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libvorbisenc.so.2
Reading symbols from /lib/x86_64-linux-gnu/libgpg-error.so.0...(no debugging symbols found)...done.
Loaded symbols for /lib/x86_64-linux-gnu/libgpg-error.so.0
Reading symbols from /usr/lib/x86_64-linux-gnu/libogg.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libogg.so.0
Reading symbols from /usr/lib/x86_64-linux-gnu/libvorbis.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libvorbis.so.0
Reading symbols from /usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_pcm_pulse.so...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_pcm_pulse.so
atomic_decrement (pw=0x6f101e0) at core/safe_refcount.h:147
147     }
(gdb) info thread
  Id   Target Id         Frame 
  8    Thread 0x7f49a336f700 (LWP 6416) "threaded-ml" 0x00007f49b004e50d in poll () at ../sysdeps/unix/syscall-template.S:81
  7    Thread 0x7f49a2b6e700 (LWP 6417) "godot.x11.tools" 0x00007f49b004e50d in poll () at ../sysdeps/unix/syscall-template.S:81
  6    Thread 0x7f49a2b01700 (LWP 6418) "godot.x11.tools" 0x00007f49b00286fd in nanosleep () at ../sysdeps/unix/syscall-template.S:81
  5    Thread 0x7f49a28a8700 (LWP 6419) "godot.x11.tools" 0x00007f49b00286fd in nanosleep () at ../sysdeps/unix/syscall-template.S:81
  4    Thread 0x7f49a2865700 (LWP 6420) "godot.x11.tools" 0x00007f49b00286fd in nanosleep () at ../sysdeps/unix/syscall-template.S:81
  3    Thread 0x7f49a25b6700 (LWP 6421) "godot.x11.tools" sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85
  2    Thread 0x7f49a2574700 (LWP 6422) "godot.x11.tools" 0x00007f49b00286fd in nanosleep () at ../sysdeps/unix/syscall-template.S:81
* 1    Thread 0x7f49b29b0740 (LWP 6415) "godot.x11.tools" atomic_decrement (pw=0x6f101e0) at core/safe_refcount.h:147
(gdb) thread 8   
[Switching to thread 8 (Thread 0x7f49a336f700 (LWP 6416))]
#0  0x00007f49b004e50d in poll () at ../sysdeps/unix/syscall-template.S:81
81      ../sysdeps/unix/syscall-template.S: Arquivo ou diretório não encontrado.
(gdb) bt
#0  0x00007f49b004e50d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f49aa5bbcc1 in ?? () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#2  0x00007f49aa5ad2a1 in pa_mainloop_poll () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#3  0x00007f49aa5ad93e in pa_mainloop_iterate () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#4  0x00007f49aa5ad9f0 in pa_mainloop_run () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#5  0x00007f49aa5bbc56 in ?? () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#6  0x00007f49aa153a98 in ?? () from /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-5.0.so
#7  0x00007f49b10570a4 in start_thread (arg=0x7f49a336f700) at pthread_create.c:309
#8  0x00007f49b005704d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
(gdb) thread 7
[Switching to thread 7 (Thread 0x7f49a2b6e700 (LWP 6417))]
#0  0x00007f49b004e50d in poll () at ../sysdeps/unix/syscall-template.S:81
81      in ../sysdeps/unix/syscall-template.S
(gdb) bt
#0  0x00007f49b004e50d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f49b0da9d26 in ?? () from /usr/lib/x86_64-linux-gnu/libasound.so.2
#2  0x00007f49b0dae0ce in ?? () from /usr/lib/x86_64-linux-gnu/libasound.so.2
#3  0x00007f49b0deb125 in ?? () from /usr/lib/x86_64-linux-gnu/libasound.so.2
#4  0x0000000000517b33 in AudioDriverALSA::thread_func (p_udata=0x7fff0267e7a8) at drivers/alsa/audio_driver_alsa.cpp:180
#5  0x000000000051577f in ThreadPosix::thread_callback (userdata=0x31cc250) at drivers/unix/thread_posix.cpp:48
#6  0x00007f49b10570a4 in start_thread (arg=0x7f49a2b6e700) at pthread_create.c:309
#7  0x00007f49b005704d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
(gdb) thread 6
[Switching to thread 6 (Thread 0x7f49a2b01700 (LWP 6418))]
#0  0x00007f49b00286fd in nanosleep () at ../sysdeps/unix/syscall-template.S:81
81      ../sysdeps/unix/syscall-template.S: Arquivo ou diretório não encontrado.
(gdb) bt
#0  0x00007f49b00286fd in nanosleep () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f49b00509d4 in usleep (useconds=<optimized out>) at ../sysdeps/unix/sysv/linux/usleep.c:32
#2  0x000000000050b2a1 in OS_Unix::delay_usec (this=0x7fff0267e570, p_usec=5000) at drivers/unix/os_unix.cpp:295
#3  0x00000000012d3d09 in AudioServerSW::_thread_func (self=0x31e6230) at servers/audio/audio_server_sw.cpp:771
#4  0x000000000051577f in ThreadPosix::thread_callback (userdata=0x32580c0) at drivers/unix/thread_posix.cpp:48
#5  0x00007f49b10570a4 in start_thread (arg=0x7f49a2b01700) at pthread_create.c:309
#6  0x00007f49b005704d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
(gdb) thread 5
[Switching to thread 5 (Thread 0x7f49a28a8700 (LWP 6419))]
#0  0x00007f49b00286fd in nanosleep () at ../sysdeps/unix/syscall-template.S:81
81      in ../sysdeps/unix/syscall-template.S
(gdb) bt
#0  0x00007f49b00286fd in nanosleep () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f49b00509d4 in usleep (useconds=<optimized out>) at ../sysdeps/unix/sysv/linux/usleep.c:32
#2  0x000000000050b2a1 in OS_Unix::delay_usec (this=0x7fff0267e570, p_usec=3000000) at drivers/unix/os_unix.cpp:295
#3  0x00000000009ec90d in EditorExportPlatformAndroid::_device_poll_thread (ud=0x413f550) at platform/android/export/export.cpp:1371
#4  0x000000000051577f in ThreadPosix::thread_callback (userdata=0x415d670) at drivers/unix/thread_posix.cpp:48
#5  0x00007f49b10570a4 in start_thread (arg=0x7f49a28a8700) at pthread_create.c:309
#6  0x00007f49b005704d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
(gdb) thread 4
[Switching to thread 4 (Thread 0x7f49a2865700 (LWP 6420))]
#0  0x00007f49b00286fd in nanosleep () at ../sysdeps/unix/syscall-template.S:81
81      in ../sysdeps/unix/syscall-template.S
(gdb) bt
#0  0x00007f49b00286fd in nanosleep () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f49b00509d4 in usleep (useconds=<optimized out>) at ../sysdeps/unix/sysv/linux/usleep.c:32
#2  0x000000000050b2a1 in OS_Unix::delay_usec (this=0x7fff0267e570, p_usec=3000000) at drivers/unix/os_unix.cpp:295
#3  0x00000000009f6fbf in EditorExportPlatformBB10::_device_poll_thread (ud=0x3faea60) at platform/bb10/export/export.cpp:530
#4  0x000000000051577f in ThreadPosix::thread_callback (userdata=0x3f7f990) at drivers/unix/thread_posix.cpp:48
#5  0x00007f49b10570a4 in start_thread (arg=0x7f49a2865700) at pthread_create.c:309
#6  0x00007f49b005704d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
(gdb) thread 3
[Switching to thread 3 (Thread 0x7f49a25b6700 (LWP 6421))]
#0  sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85
85      ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Arquivo ou diretório não encontrado.
(gdb) bt
#0  sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85
#1  0x0000000000516d4e in SemaphorePosix::wait (this=0x423fd10) at drivers/unix/semaphore_posix.cpp:40
#2  0x0000000000a9ba09 in EditorResourcePreview::_thread (this=0x423f960) at tools/editor/editor_resource_preview.cpp:94
#3  0x0000000000a9b280 in EditorResourcePreview::_thread_func (ud=0x423f960) at tools/editor/editor_resource_preview.cpp:29
#4  0x000000000051577f in ThreadPosix::thread_callback (userdata=0x423fd70) at drivers/unix/thread_posix.cpp:48
#5  0x00007f49b10570a4 in start_thread (arg=0x7f49a25b6700) at pthread_create.c:309
#6  0x00007f49b005704d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
(gdb) thread 2
[Switching to thread 2 (Thread 0x7f49a2574700 (LWP 6422))]
#0  0x00007f49b00286fd in nanosleep () at ../sysdeps/unix/syscall-template.S:81
81      ../sysdeps/unix/syscall-template.S: Arquivo ou diretório não encontrado.
(gdb) bt
#0  0x00007f49b00286fd in nanosleep () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f49b00509d4 in usleep (useconds=<optimized out>) at ../sysdeps/unix/sysv/linux/usleep.c:32
#2  0x000000000050b2a1 in OS_Unix::delay_usec (this=0x7fff0267e570, p_usec=100000) at drivers/unix/os_unix.cpp:295
#3  0x000000000091f045 in EditorFileServer::_thread_start (s=0x51159c0) at tools/editor/fileserver/editor_file_server.cpp:286
#4  0x000000000051577f in ThreadPosix::thread_callback (userdata=0x5115e80) at drivers/unix/thread_posix.cpp:48
#5  0x00007f49b10570a4 in start_thread (arg=0x7f49a2574700) at pthread_create.c:309
#6  0x00007f49b005704d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
(gdb) thread 1
[Switching to thread 1 (Thread 0x7f49b29b0740 (LWP 6415))]
#0  atomic_decrement (pw=0x6f101e0) at core/safe_refcount.h:147
147     }
(gdb) bt
#0  atomic_decrement (pw=0x6f101e0) at core/safe_refcount.h:147
#1  0x0000000000409dd8 in SafeRefCount::unref (this=0x6f101e0) at core/safe_refcount.h:356
#2  0x0000000000409ee1 in Vector<wchar_t>::_unref (this=0x92c4e58, p_data=0x6f101e0) at core/vector.h:179
#3  0x0000000000409e46 in Vector<wchar_t>::~Vector (this=0x92c4e58, __in_chrg=<optimized out>) at core/vector.h:407
#4  0x0000000000409e22 in String::~String (this=0x92c4e58, __in_chrg=<optimized out>) at core/ustring.h:64
#5  0x0000000001408f56 in Variant::clear (this=0x92c4e50) at core/variant.cpp:1113
#6  0x000000000140847a in Variant::reference (this=0x92c4e50, p_variant=...) at core/variant.cpp:944
#7  0x000000000140e7fb in Variant::operator= (this=0x92c4e50, p_variant=...) at core/variant.cpp:2568
#8  0x0000000000498dd6 in GDTokenizerText::_make_error (this=0x92c4d00, p_error=...) at modules/gdscript/gd_tokenizer.cpp:208
#9  0x0000000000498f99 in GDTokenizerText::_advance (this=0x92c4d00) at modules/gdscript/gd_tokenizer.cpp:230
#10 0x000000000049c88a in GDTokenizerText::advance (this=0x92c4d00, p_amount=1) at modules/gdscript/gd_tokenizer.cpp:1034
#11 0x00000000004b9884 in GDParser::_recover_from_completion (this=0x7fff0267cde0) at modules/gdscript/gd_parser.cpp:1426
#12 0x00000000004bb3a5 in GDParser::_parse_block (this=0x7fff0267cde0, p_block=0x6f18aa0, p_static=false) at modules/gdscript/gd_parser.cpp:1851
#13 0x00000000004ba2ae in GDParser::_parse_block (this=0x7fff0267cde0, p_block=0x6f180d0, p_static=false) at modules/gdscript/gd_parser.cpp:1590
#14 0x00000000004bd401 in GDParser::_parse_class (this=0x7fff0267cde0, p_class=0x92c4a40) at modules/gdscript/gd_parser.cpp:2292
#15 0x00000000004c1676 in GDParser::_parse (this=0x7fff0267cde0, p_base_path=...) at modules/gdscript/gd_parser.cpp:2890
#16 0x00000000004c19c4 in GDParser::parse (this=0x7fff0267cde0, p_code=..., p_base_path=..., p_just_validate=false, p_self_path=..., p_for_completion=true)
    at modules/gdscript/gd_parser.cpp:2949
#17 0x00000000004d469d in GDScriptLanguage::complete_code (this=0x3aadf40, p_code=..., p_base_path=..., p_owner=0x0, r_options=0x7fff0267d670, r_call_hint=...)
    at modules/gdscript/gd_editor.cpp:2013
#18 0x000000000082cf51 in ScriptTextEditor::_code_complete_script (this=0x6ccfd90, p_code=..., r_options=0x7fff0267d670) at tools/editor/plugins/script_editor_plugin.cpp:503
#19 0x0000000000b15f63 in CodeTextEditor::_complete_request (this=0x6ccfd90) at tools/editor/code_editor.cpp:520
#20 0x000000000042ed46 in MethodBind0::call (this=0x6414630, p_object=0x6ccfd90, p_args=0x7fff0267d870, p_arg_count=0, r_error=...) at core/method_bind.inc:47
#21 0x00000000013caaf8 in Object::call (this=0x6ccfd90, p_method=..., p_args=0x7fff0267d870, p_argcount=0, r_error=...) at core/object.cpp:895
#22 0x00000000013ca63d in Object::call (this=0x6ccfd90, p_name=..., p_arg1=..., p_arg2=..., p_arg3=..., p_arg4=..., p_arg5=...) at core/object.cpp:771
#23 0x00000000013cc67a in Object::emit_signal (this=0x6cd1690, p_name=..., p_arg1=..., p_arg2=..., p_arg3=..., p_arg4=..., p_arg5=...) at core/object.cpp:1186
#24 0x0000000000cc03f1 in TextEdit::query_code_comple (this=0x6cd1690) at scene/gui/text_edit.cpp:3473
#25 0x0000000000b15f09 in CodeTextEditor::_code_complete_timer_timeout (this=0x6ccfd90) at tools/editor/code_editor.cpp:514
#26 0x000000000042ed46 in MethodBind0::call (this=0x64144d0, p_object=0x6ccfd90, p_args=0x7fff0267dd30, p_arg_count=0, r_error=...) at core/method_bind.inc:47
#27 0x00000000013caaf8 in Object::call (this=0x6ccfd90, p_method=..., p_args=0x7fff0267dd30, p_argcount=0, r_error=...) at core/object.cpp:895
#28 0x00000000013ca63d in Object::call (this=0x6ccfd90, p_name=..., p_arg1=..., p_arg2=..., p_arg3=..., p_arg4=..., p_arg5=...) at core/object.cpp:771
#29 0x00000000013cc67a in Object::emit_signal (this=0x6cd14a0, p_name=..., p_arg1=..., p_arg2=..., p_arg3=..., p_arg4=..., p_arg5=...) at core/object.cpp:1186
#30 0x0000000000b88c6d in Timer::_notification (this=0x6cd14a0, p_what=17) at scene/main/timer.cpp:59
#31 0x0000000000b8a77c in Timer::_notificationv (this=0x6cd14a0, p_notification=17, p_reversed=false) at scene/main/timer.h:36
#32 0x00000000013cac78 in Object::notification (this=0x6cd14a0, p_notification=17, p_reversed=false) at core/object.cpp:907
#33 0x0000000000bc422d in SceneTree::_notify_group_pause (this=0x3b1fb40, p_group=..., p_notification=17) at scene/main/scene_main_loop.cpp:718
#34 0x0000000000bc36d6 in SceneTree::idle (this=0x3b1fb40, p_time=0.0253609996) at scene/main/scene_main_loop.cpp:523
#35 0x000000000041b264 in Main::iteration () at main/main.cpp:1395
#36 0x00000000004101dc in OS_X11::run (this=0x7fff0267e570) at platform/x11/os_x11.cpp:1913
#37 0x0000000000409d70 in main (argc=5, argv=0x7fff0267ea38) at platform/x11/godot_x11.cpp:41
@reduz
Copy link
Member

reduz commented Aug 31, 2015

make a testcase and/or steps to reproduce

On Sun, Aug 30, 2015 at 9:44 PM, David Paiva notifications@github.com
wrote:

godot is freezing, it's seems to freeze when i am typing a string as
parameter in the modulate function (i don't even run the game)
Godot don't even consumes 5% of my cpu when using the script, but when
freezes it's jumps to 25% and stays there.
If i kill godot the godot process hangs there (with 25%)

here is the gdb:

GNU gdb (Debian 7.7.1+dfsg-5) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from godot.x11.tools.64...done.
(gdb) attach 6415
Attaching to program:
/home/passarinho/gameDesign/godot/bin/godot.x11.tools.64, process 6415
Reading symbols from /usr/lib/x86_64-linux-gnu/libX11.so.6...(no debugging
symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libX11.so.6
Reading symbols from /usr/lib/x86_64-linux-gnu/libXinerama.so.1...(no
debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libXinerama.so.1
Reading symbols from /usr/lib/x86_64-linux-gnu/libXcursor.so.1...(no
debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libXcursor.so.1
Reading symbols from /usr/lib/x86_64-linux-gnu/libssl.so.1.0.0...(no
debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libssl.so.1.0.0
Reading symbols from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0...(no
debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
Reading symbols from /usr/lib/x86_64-linux-gnu/libfreetype.so.6...(no
debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libfreetype.so.6
Reading symbols from /usr/lib/x86_64-linux-gnu/libGL.so.1...(no debugging
symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libGL.so.1
Reading symbols from /usr/lib/x86_64-linux-gnu/libGLU.so.1...(no debugging
symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libGLU.so.1
Reading symbols from /lib/x86_64-linux-gnu/libpthread.so.0...Reading
symbols from /usr/lib/debug//lib/x86_64-linux-gnu/libpthread-2.19.so...done.
done.
[New LWP 6422]
[New LWP 6421]

[New LWP 6420]

[New LWP 6419]

[New LWP 6418]

[New LWP 6417]

[New LWP 6416]

[Thread debugging using libthread_db enabled]

Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Loaded symbols for /lib/x86_64-linux-gnu/libpthread.so.0
Reading symbols from /usr/lib/x86_64-linux-gnu/libasound.so.2...(no
debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libasound.so.2
Reading symbols from /lib/x86_64-linux-gnu/libz.so.1...(no debugging
symbols found)...done.
Loaded symbols for /lib/x86_64-linux-gnu/libz.so.1
Reading symbols from /usr/lib/x86_64-linux-gnu/libstdc++.so.6...(no
debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libstdc++.so.6
Reading symbols from /lib/x86_64-linux-gnu/libm.so.6...Reading symbols
from /usr/lib/debug//lib/x86_64-linux-gnu/libm-2.19.so...done.
done.
Loaded symbols for /lib/x86_64-linux-gnu/libm.so.6
Reading symbols from /lib/x86_64-linux-gnu/libgcc_s.so.1...(no debugging
symbols found)...done.
Loaded symbols for /lib/x86_64-linux-gnu/libgcc_s.so.1
Reading symbols from /lib/x86_64-linux-gnu/libc.so.6...Reading symbols
from /usr/lib/debug//lib/x86_64-linux-gnu/libc-2.19.so...done.
done.
Loaded symbols for /lib/x86_64-linux-gnu/libc.so.6
Reading symbols from /usr/lib/x86_64-linux-gnu/libxcb.so.1...(no debugging
symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libxcb.so.1
Reading symbols from /lib/x86_64-linux-gnu/libdl.so.2...Reading symbols
from /usr/lib/debug//lib/x86_64-linux-gnu/libdl-2.19.so...done.
done.
Loaded symbols for /lib/x86_64-linux-gnu/libdl.so.2
Reading symbols from /usr/lib/x86_64-linux-gnu/libXext.so.6...(no
debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libXext.so.6
Reading symbols from /usr/lib/x86_64-linux-gnu/libXrender.so.1...(no
debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libXrender.so.1
Reading symbols from /usr/lib/x86_64-linux-gnu/libXfixes.so.3...(no
debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libXfixes.so.3
Reading symbols from /lib/x86_64-linux-gnu/libpng12.so.0...(no debugging
symbols found)...done.
Loaded symbols for /lib/x86_64-linux-gnu/libpng12.so.0
Reading symbols from /lib/x86_64-linux-gnu/libexpat.so.1...(no debugging
symbols found)...done.
Loaded symbols for /lib/x86_64-linux-gnu/libexpat.so.1
Reading symbols from /usr/lib/x86_64-linux-gnu/libglapi.so.0...(no
debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libglapi.so.0
Reading symbols from /usr/lib/x86_64-linux-gnu/libXdamage.so.1...(no
debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libXdamage.so.1
Reading symbols from /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1...(no
debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1
Reading symbols from /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0...(no
debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0
Reading symbols from /usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0...(no
debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0
Reading symbols from /usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0...(no
debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0
Reading symbols from /usr/lib/x86_64-linux-gnu/libxcb-present.so.0...(no
debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libxcb-present.so.0
Reading symbols from /usr/lib/x86_64-linux-gnu/libxcb-sync.so.1...(no
debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libxcb-sync.so.1
Reading symbols from /usr/lib/x86_64-linux-gnu/libxshmfence.so.1...(no
debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libxshmfence.so.1
Reading symbols from /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1...(no
debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1
Reading symbols from /usr/lib/x86_64-linux-gnu/libdrm.so.2...(no debugging
symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libdrm.so.2
Reading symbols from /lib64/ld-linux-x86-64.so.2...Reading symbols from
/usr/lib/debug//lib/x86_64-linux-gnu/ld-2.19.so...done.
done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Reading symbols from /lib/x86_64-linux-gnu/librt.so.1...Reading symbols
from /usr/lib/debug//lib/x86_64-linux-gnu/librt-2.19.so...done.
done.
Loaded symbols for /lib/x86_64-linux-gnu/librt.so.1
Reading symbols from /usr/lib/x86_64-linux-gnu/libXau.so.6...(no debugging
symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libXau.so.6
Reading symbols from /usr/lib/x86_64-linux-gnu/libXdmcp.so.6...(no
debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libXdmcp.so.6
Reading symbols from /lib/x86_64-linux-gnu/libudev.so.1...(no debugging
symbols found)...done.
Loaded symbols for /lib/x86_64-linux-gnu/libudev.so.1
Reading symbols from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so...(no
debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
Reading symbols from /usr/lib/x86_64-linux-gnu/libdrm_intel.so.1...(no
debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libdrm_intel.so.1
Reading symbols from /usr/lib/x86_64-linux-gnu/libdrm_nouveau.so.2...(no
debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libdrm_nouveau.so.2
Reading symbols from /usr/lib/x86_64-linux-gnu/libdrm_radeon.so.1...(no
debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libdrm_radeon.so.1
Reading symbols from /usr/lib/x86_64-linux-gnu/libpciaccess.so.0...(no
debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libpciaccess.so.0
Reading symbols from /usr/lib/x86_64-linux-gnu/libtxc_dxtn.so...(no
debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libtxc_dxtn.so
Reading symbols from /usr/lib/x86_64-linux-gnu/libpulse.so.0...(no
debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libpulse.so.0
Reading symbols from /lib/x86_64-linux-gnu/libjson-c.so.2...(no debugging
symbols found)...done.
Loaded symbols for /lib/x86_64-linux-gnu/libjson-c.so.2
Reading symbols from
/usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-5.0.so...(no debugging
symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/pulseaudio/
libpulsecommon-5.0.so
Reading symbols from /lib/x86_64-linux-gnu/libdbus-1.so.3...(no debugging
symbols found)...done.
Loaded symbols for /lib/x86_64-linux-gnu/libdbus-1.so.3
Reading symbols from /lib/x86_64-linux-gnu/libcap.so.2...(no debugging
symbols found)...done.
Loaded symbols for /lib/x86_64-linux-gnu/libcap.so.2
Reading symbols from /usr/lib/x86_64-linux-gnu/libICE.so.6...(no debugging
symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libICE.so.6
Reading symbols from /usr/lib/x86_64-linux-gnu/libSM.so.6...(no debugging
symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libSM.so.6
Reading symbols from /usr/lib/x86_64-linux-gnu/libXtst.so.6...(no
debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libXtst.so.6
Reading symbols from /lib/x86_64-linux-gnu/libsystemd.so.0...(no debugging
symbols found)...done.
Loaded symbols for /lib/x86_64-linux-gnu/libsystemd.so.0
Reading symbols from /lib/x86_64-linux-gnu/libwrap.so.0...(no debugging
symbols found)...done.
Loaded symbols for /lib/x86_64-linux-gnu/libwrap.so.0
Reading symbols from /usr/lib/x86_64-linux-gnu/libsndfile.so.1...(no
debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libsndfile.so.1
Reading symbols from /usr/lib/x86_64-linux-gnu/libasyncns.so.0...(no
debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libasyncns.so.0
Reading symbols from /lib/x86_64-linux-gnu/libattr.so.1...(no debugging
symbols found)...done.
Loaded symbols for /lib/x86_64-linux-gnu/libattr.so.1
Reading symbols from /lib/x86_64-linux-gnu/libuuid.so.1...(no debugging
symbols found)...done.
Loaded symbols for /lib/x86_64-linux-gnu/libuuid.so.1
Reading symbols from /usr/lib/x86_64-linux-gnu/libXi.so.6...(no debugging
symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libXi.so.6
Reading symbols from /lib/x86_64-linux-gnu/liblzma.so.5...(no debugging
symbols found)...done.
Loaded symbols for /lib/x86_64-linux-gnu/liblzma.so.5
Reading symbols from /lib/x86_64-linux-gnu/libgcrypt.so.20...(no debugging
symbols found)...done.
Loaded symbols for /lib/x86_64-linux-gnu/libgcrypt.so.20
Reading symbols from /lib/x86_64-linux-gnu/libresolv.so.2...Reading
symbols from /usr/lib/debug//lib/x86_64-linux-gnu/libresolv-2.19.so...done.
done.
Loaded symbols for /lib/x86_64-linux-gnu/libresolv.so.2
Reading symbols from /lib/x86_64-linux-gnu/libnsl.so.1...Reading symbols
from /usr/lib/debug//lib/x86_64-linux-gnu/libnsl-2.19.so...done.
done.
Loaded symbols for /lib/x86_64-linux-gnu/libnsl.so.1
Reading symbols from /usr/lib/x86_64-linux-gnu/libFLAC.so.8...(no
debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libFLAC.so.8
Reading symbols from /usr/lib/x86_64-linux-gnu/libvorbisenc.so.2...(no
debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libvorbisenc.so.2
Reading symbols from /lib/x86_64-linux-gnu/libgpg-error.so.0...(no
debugging symbols found)...done.
Loaded symbols for /lib/x86_64-linux-gnu/libgpg-error.so.0
Reading symbols from /usr/lib/x86_64-linux-gnu/libogg.so.0...(no debugging
symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libogg.so.0
Reading symbols from /usr/lib/x86_64-linux-gnu/libvorbis.so.0...(no
debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libvorbis.so.0
Reading symbols from
/usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_pcm_pulse.so...(no
debugging symbols found)...done.
Loaded symbols for
/usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_pcm_pulse.so
atomic_decrement (pw=0x6f101e0) at core/safe_refcount.h:147
147 }
(gdb) info thread
Id Target Id Frame
8 Thread 0x7f49a336f700 (LWP 6416) "threaded-ml" 0x00007f49b004e50d in
poll () at ../sysdeps/unix/syscall-template.S:81
7 Thread 0x7f49a2b6e700 (LWP 6417) "godot.x11.tools" 0x00007f49b004e50d in
poll () at ../sysdeps/unix/syscall-template.S:81
6 Thread 0x7f49a2b01700 (LWP 6418) "godot.x11.tools" 0x00007f49b00286fd in
nanosleep () at ../sysdeps/unix/syscall-template.S:81
5 Thread 0x7f49a28a8700 (LWP 6419) "godot.x11.tools" 0x00007f49b00286fd in
nanosleep () at ../sysdeps/unix/syscall-template.S:81
4 Thread 0x7f49a2865700 (LWP 6420) "godot.x11.tools" 0x00007f49b00286fd in
nanosleep () at ../sysdeps/unix/syscall-template.S:81
3 Thread 0x7f49a25b6700 (LWP 6421) "godot.x11.tools" sem_wait () at
../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85
2 Thread 0x7f49a2574700 (LWP 6422) "godot.x11.tools" 0x00007f49b00286fd in
nanosleep () at ../sysdeps/unix/syscall-template.S:81


Reply to this email directly or view it on GitHub
#2409.

@slapin
Copy link
Contributor

slapin commented Aug 31, 2015

Thanks of the report.
Please reformat using markdown. At lease use 3 backticks (```) to mark start and end of code (just put them at start and end of your trascript, on separate line). That will make it readable, and we'll be able to understand what is going on here.
Also write what you did in godot for the record (to be not forgotten).

@draxdeveloper
Copy link
Author

@reduz
You have to use the function set_modulate on a sprite. (maybe it will trigger in anything that uses Color())
If you try to set a string to it (as in Sprite.set_modulate("ffffff")) it will freeze Godot, you don't need to even run the game, it will freeze while you are typing.
It will freeze even if you type Sprite.set_modulate(Color("ffffff"))
When it's frezzes, the process hangs even if you kill Godot, and will take a lot of cpu (25% of mine, and i have a quadcore i5)

@slapin
Copy link
Contributor

slapin commented Aug 31, 2015

Try 2 things.

  1. Disable code completion. Check if problem still reproduces.
  2. If problem still persists, check on thread 0. do:
thread 0
bt
continue
^C (press ^C here)
bt
continue
^C
bt
continue
^C

and paste this here (in backticks).
Thst will add us some more information to think about.

@draxdeveloper
Copy link
Author

The problem now seems to trigger in any string, i am trying to change this string:
get_node("estamina/estaminaValor").set_text(var2str(estamina))
But it's keep freezing

@draxdeveloper
Copy link
Author

Also, it's seems always on the 3 character... The problem trigger if i copy and paste

@draxdeveloper
Copy link
Author

@slapin
there is not a thread 0:

(gdb) info thread
  Id   Target Id         Frame 
  8    Thread 0x7fc8d86f3700 (LWP 7608) "threaded-ml" 0x00007fc8e53d250d in poll () at ../sysdeps/unix/syscall-template.S:81
  7    Thread 0x7fc8d7ef2700 (LWP 7609) "godot.x11.tools" 0x00007fc8e53d250d in poll () at ../sysdeps/unix/syscall-template.S:81
  6    Thread 0x7fc8d7e85700 (LWP 7610) "godot.x11.tools" 0x00007fc8e53ac6fd in nanosleep () at ../sysdeps/unix/syscall-template.S:81
  5    Thread 0x7fc8d7c2c700 (LWP 7611) "godot.x11.tools" 0x00007fc8e53ac6fd in nanosleep () at ../sysdeps/unix/syscall-template.S:81
  4    Thread 0x7fc8d7be9700 (LWP 7612) "godot.x11.tools" 0x00007fc8e53ac6fd in nanosleep () at ../sysdeps/unix/syscall-template.S:81
  3    Thread 0x7fc8d793a700 (LWP 7613) "godot.x11.tools" sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85
  2    Thread 0x7fc8d78f8700 (LWP 7614) "godot.x11.tools" 0x00007fc8e53ac6fd in nanosleep () at ../sysdeps/unix/syscall-template.S:81
* 1    Thread 0x7fc8e7d34740 (LWP 7607) "godot.x11.tools" 0x0000000000498d74 in GDTokenizerText::_make_error (this=0x8cd52b0, p_error=...) at modules/gdscript/gd_tokenizer.cpp:206

@draxdeveloper
Copy link
Author

maybe this will help:

Process 7607 - godot.x11.tools.64

Summary

The process godot.x11.tools.64 (with pid 7607) is using approximately 216.6 MB of memory.
It is using 214.7 MB privately, and a further 13.3 MB that is, or could be, shared with other programs.
Dividing up the shared memory between all the processes sharing that memory we get a reduced shared memory usage of 1969.0 KB. Adding that to the private usage, we get the above mentioned total memory footprint of 216.6 MB.
Library Usage

The memory usage of a process is found by adding up the memory usage of each of its libraries, plus the process's own heap, stack and any other mappings, plus the stack of its 7 threads. 
Private
more
152724 KB   [heap]
45720 KB    /drm mm object (deleted)
19528 KB    /home/passarinho/gameDesign/godot/bin/godot.x11.tools.64
268 KB  [stack]
252 KB  /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
Shared
more
3680 KB /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
1380 KB /lib/x86_64-linux-gnu/libc-2.19.so
1264 KB /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
840 KB  /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0
740 KB  /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.20
Totals

Private 219828 KB   (= 19644 KB clean + 200184 KB dirty)
Shared  13620 KB    (= 13476 KB clean + 144 KB dirty)
Rss 233448 KB   (= Private + Shared)
Pss 221797 KB   (= Private + Shared/Number of Processes)
Swap    0 KB
Full Details

Information about the complete virtual space for the process is available, with sortable columns. An empty filename means that it is an anonymous mapping.
Both the MMU page size and the kernel page size are 4 KB.

@slapin
Copy link
Contributor

slapin commented Aug 31, 2015

Sorry, thread 1

@draxdeveloper
Copy link
Author

ok, i tried it but it's just hang on continue...

@draxdeveloper
Copy link
Author

362 if (!p_from._ptr)
result of step 1000 command

@draxdeveloper
Copy link
Author

@slapin

(gdb) thread 1
[Switching to thread 1 (Thread 0x7fde59ebb740 (LWP 7737))]
#0  0x0000000000409ec9 in Vector<wchar_t>::_unref (this=0x2e94290, p_data=0x2e95e20) at core/vector.h:174
174             if (!p_data)
(gdb) continue
Continuing.
^C
^C    
Program received signal SIGINT, Interrupt.
0x0000000000409eb5 in Vector<wchar_t>::_unref (this=0x7ffd11f36ba8, p_data=0x2e95e20) at core/vector.h:172
172     void Vector<T>::_unref(void *p_data) {
(gdb) thread 1   
[Switching to thread 1 (Thread 0x7fde59ebb740 (LWP 7737))]
#0  0x0000000000409eb5 in Vector<wchar_t>::_unref (this=0x7ffd11f36ba8, p_data=0x2e95e20) at core/vector.h:172
172     void Vector<T>::_unref(void *p_data) {
(gdb) step 1000
362             if (!p_from._ptr)
(gdb) step 1000
GDParser::_recover_from_completion (this=0x7ffd11f37ee0) at modules/gdscript/gd_parser.cpp:1426
1426                    tokenizer->advance();
(gdb) continue
Continuing.
^C
Program received signal SIGINT, Interrupt.
Variant::clear (this=0x2) at core/variant.cpp:1108
1108    void Variant::clear() {
(gdb) continue
Continuing.
^C
Program received signal SIGINT, Interrupt.
0x0000000000498d74 in GDTokenizerText::_make_error (this=0x2e94090, p_error=...) at modules/gdscript/gd_tokenizer.cpp:206
206             TokenData &tk=tk_rb[tk_rb_pos];
(gdb) continue
Continuing.
^C
Program received signal SIGINT, Interrupt.
0x0000000000410814 in String::String (this=0x7ffd11f36ba8) at core/ustring.h:64
64      class String : public Vector<CharType> {
(gdb) continue
Continuing.

^C
Program received signal SIGINT, Interrupt.
0x0000000000410c58 in Vector<wchar_t>::operator= (this=0x2e944e8, p_from=...) at core/vector.h:373
373             _copy_from(p_from);
(gdb) continue
Continuing.
^C
Program received signal SIGINT, Interrupt.
0x000000000040a9d2 in atomic_conditional_increment (pw=0x2e95e20) at core/safe_refcount.h:126
126             );
(gdb) continue
Continuing.
^C
Program received signal SIGINT, Interrupt.
0x0000000001408f44 in Variant::clear (this=0x2e940c8) at core/variant.cpp:1110
1110            switch(type) {
(gdb) continue
Continuing.
^C
Program received signal SIGINT, Interrupt.
0x0000000000409ce9 in atomic_decrement (pw=0x2e95e20) at core/safe_refcount.h:145
145             );
(gdb) continue
Continuing.
^C
Program received signal SIGINT, Interrupt.
GDTokenizerText::get_token (this=0x2e94090, p_offset=0) at modules/gdscript/gd_tokenizer.cpp:949
949     }
(gdb) continue
Continuing.
^C
Program received signal SIGINT, Interrupt.
0x0000000000409e37 in Vector<wchar_t>::~Vector (this=0x2e940d0, __in_chrg=<optimized out>) at core/vector.h:407
407             _unref(_ptr);
(gdb) continue
Continuing.
^C
Program received signal SIGINT, Interrupt.
0x0000000000498df7 in GDTokenizerText::_make_error (this=0x2e94090, p_error=...) at modules/gdscript/gd_tokenizer.cpp:210
210             tk.col=column;
(gdb) continue
Continuing.
^C
Program received signal SIGINT, Interrupt.
0x0000000000411973 in Vector<wchar_t>::_copy_from (this=0x7ffd11f36ba8, p_from=...) at core/vector.h:368
368     }
(gdb) continue
Continuing.
^C
Program received signal SIGINT, Interrupt.
0x0000000000409ec9 in Vector<wchar_t>::_unref (this=0x2e94178, p_data=0x2e95e20) at core/vector.h:174
174             if (!p_data)
(gdb) continue
Continuing.
^C
Program received signal SIGINT, Interrupt.
0x000000000049be7d in GDTokenizerText::get_token (this=0x2e94090, p_offset=0) at modules/gdscript/gd_tokenizer.cpp:947
947             int ofs = (TK_RB_SIZE + tk_rb_pos + p_offset - MAX_LOOKAHEAD -1)%TK_RB_SIZE;
(gdb) continue
Continuing.
^C
Program received signal SIGINT, Interrupt.
0x0000000000409e1a in String::~String (this=0x7ffd11f36ba8, __in_chrg=<optimized out>) at core/ustring.h:64
64      class String : public Vector<CharType> {
(gdb) continue
Continuing.
^C
Program received signal SIGINT, Interrupt.
Variant::Variant (this=0x7ffd11f36ba0, p_string=...) at core/variant.cpp:2209
2209            memnew_placement( _data._mem, String( p_string ) );
(gdb) continue
Continuing.
^C
Program received signal SIGINT, Interrupt.
Variant::~Variant (this=0x7ffd11f36ba0, __in_chrg=<optimized out>) at core/variant.h:434
434             _FORCE_INLINE_ ~Variant() { if (type!=Variant::NIL) clear(); }
(gdb) continue
Continuing.
^C
Program received signal SIGINT, Interrupt.
GDTokenizerText::get_token (this=0x2e94090, p_offset=0) at modules/gdscript/gd_tokenizer.cpp:949
949     }
(gdb) continue
Continuing.
^C
Program received signal SIGINT, Interrupt.
0x000000000049be86 in GDTokenizerText::get_token (this=0x2e94090, p_offset=0) at modules/gdscript/gd_tokenizer.cpp:947
947             int ofs = (TK_RB_SIZE + tk_rb_pos + p_offset - MAX_LOOKAHEAD -1)%TK_RB_SIZE;
(gdb) continue
Continuing.
^C
Program received signal SIGINT, Interrupt.
0x0000000000409ddd in SafeRefCount::unref (this=0x2e95e20) at core/safe_refcount.h:356
356                     if( atomic_decrement ( &count ) == 0 ) {
(gdb) continue
Continuing.
^C
Program received signal SIGINT, Interrupt.
0x0000000000409ec0 in Vector<wchar_t>::_unref (this=0x2e94220, p_data=0x2e95e20) at core/vector.h:172
172     void Vector<T>::_unref(void *p_data) {
(gdb) continue
Continuing.
^C
Program received signal SIGINT, Interrupt.
0x0000000000409ce9 in atomic_decrement (pw=0x2e95e20) at core/safe_refcount.h:145
145             );
(gdb) continue
Continuing.
^C
Program received signal SIGINT, Interrupt.
0x000000000140e7f0 in Variant::operator= (this=0x2e94250, p_variant=...) at core/variant.cpp:2568
2568            reference(p_variant);
(gdb) continue
Continuing.
^C
Program received signal SIGINT, Interrupt.
0x00000000004b988e in GDParser::_recover_from_completion (this=0x7ffd11f37ee0) at modules/gdscript/gd_parser.cpp:1425
1425            while(tokenizer->get_token()!=GDTokenizer::TK_NEWLINE && tokenizer->get_token()!=GDTokenizer::TK_EOF) {
(gdb) continue
Continuing.
^C
Program received signal SIGINT, Interrupt.
GDTokenizerText::get_token (this=0x2e94090, p_offset=0) at modules/gdscript/gd_tokenizer.cpp:949
949     }
(gdb) continue
Continuing.
^C
Program received signal SIGINT, Interrupt.
0x000000000040a9d7 in atomic_conditional_increment (pw=0x2e95e20) at core/safe_refcount.h:126
126             );
(gdb) continue
Continuing.
^C
Program received signal SIGINT, Interrupt.
0x00000000004b988b in GDParser::_recover_from_completion (this=0x7ffd11f37ee0) at modules/gdscript/gd_parser.cpp:1425
1425            while(tokenizer->get_token()!=GDTokenizer::TK_NEWLINE && tokenizer->get_token()!=GDTokenizer::TK_EOF) {
(gdb) continue
Continuing.
^C
Program received signal SIGINT, Interrupt.
0x0000000000409ce2 in atomic_decrement (pw=0x2e95e20) at core/safe_refcount.h:145
145             );
(gdb) continue
Continuing.
^C
Program received signal SIGINT, Interrupt.
GDParser::_recover_from_completion (this=0x7ffd11f37ee0) at modules/gdscript/gd_parser.cpp:1425
1425            while(tokenizer->get_token()!=GDTokenizer::TK_NEWLINE && tokenizer->get_token()!=GDTokenizer::TK_EOF) {
(gdb) continue
Continuing.
^C
Program received signal SIGINT, Interrupt.
0x0000000000498d54 in GDTokenizerText::_make_error (this=0x2e94090, p_error=...) at modules/gdscript/gd_tokenizer.cpp:204
204             last_error=p_error;
(gdb) continue
Continuing.
^C
Program received signal SIGINT, Interrupt.
Vector<wchar_t>::~Vector (this=0x7ffd11f36ba8, __in_chrg=<optimized out>) at core/vector.h:409
409     }
(gdb) continue
Continuing.
^C
Program received signal SIGINT, Interrupt.
0x000000000041190f in Vector<wchar_t>::_copy_from (this=0x2e940d0, p_from=...) at core/vector.h:356
356             if (_ptr == p_from._ptr)
(gdb) continue
Continuing.
^C
Program received signal SIGINT, Interrupt.
0x000000000041201d in Vector<wchar_t>::_get_refcount (this=0x2e944e8) at core/vector.h:51
51                      if (!_ptr)
(gdb) continue
Continuing.
^C
Program received signal SIGINT, Interrupt.
0x0000000001408f2c in Variant::clear (this=0x2e94288) at core/variant.cpp:1110
1110            switch(type) {
(gdb) 

@slapin
Copy link
Contributor

slapin commented Aug 31, 2015

Well, you did good job, thank you, but it is not informative, because you forgot backtraces.
Please add bt command before "continue"
it is obvious it is completion bug, but to have complete info we need backtrace.

@ninao-xyz
Copy link

I can reproduce this issue here, on latest master.
If I type:
var a = ""
and then try do put something inside the "" crash appends
if I don't type the second " before the rest, it doesn’t crash

Hope this info helps

@ninao-xyz
Copy link

by crash I mean, the editor freezes and I need to kill the process

@draxdeveloper
Copy link
Author

ni-code, it's make sense to me... since i was trying to edit a previous string and i have the costume to put "" and then typing inside.
@slapin what is a backtrace?

@AlexHolly
Copy link
Contributor

I'm on Windows, master branch
I have the same behavior as ni-code but var a = "" works

only print("sdsd") doesn't work i cant edit the string if the string is closed

I think the error appears since 319cc7e

Error message:

found bug?
hint: void print( |var what|, var ... )

@zoiba
Copy link

zoiba commented Sep 1, 2015

I'm having similar issue editing the strings inside methods.
for example if you write get_node("Camera") the editor works as expected, but, if you back to the string for deleting a character, for example, get_node("Camer") editor freezes.

@reduz
Copy link
Member

reduz commented Sep 1, 2015

i've never seen this, can you make a demo scene or script that causes this
to happen and steps to reproduce?

On Tue, Sep 1, 2015 at 1:27 PM, Lamberto Tedaldi notifications@github.com
wrote:

I'm having similar issue editing the strings inside methods.
for example if you write get_node("Camera") the editor works as expected,
but, if you back to the string for deleting a character, for example,
get_node("Camer") editor freezes.


Reply to this email directly or view it on GitHub
#2409 (comment).

@zoiba
Copy link

zoiba commented Sep 1, 2015

there is no need for a demo it happens in all projects here.
open one of the demo projects, for example the Simple Shooter one, edit the script, for example at line line 10:
get_node("score").set_text( "HIGH SCORE: "+str( get_node("/root/game_state").max_points ) )
delete one character from "score" string
frozen

I'm using last version from Github compiled on Linux, it happens in both 32 and 64 version.

@neikeq
Copy link
Contributor

neikeq commented Sep 1, 2015

It seems to happen with all string params. More ways to reproduce:

Freezes after deleting the first ":
opt1
Freezes after trying to type anything inside the string:
opt2
With auto braces completion, freezes after typing the first " (the second one is auto completed):
opt3

@draxdeveloper
Copy link
Author

yeahm exact my problem

2015-09-01 15:01 GMT-03:00 Ignacio Etcheverry notifications@github.com:

It seems to happen with all string params. More ways to reproduce:

Freezes after deleting the first ":
[image: opt1]
https://cloud.githubusercontent.com/assets/7718100/9611973/405979fe-50e3-11e5-8a0d-b3e18c994ab1.gif
Freezes after trying to type anything inside the string:
[image: opt2]
https://cloud.githubusercontent.com/assets/7718100/9611974/4060137c-50e3-11e5-9754-0148ea883154.gif
With auto braces completion, freezes after typing the first " (the
second one is auto completed):
[image: opt3]
https://cloud.githubusercontent.com/assets/7718100/9611975/40645d74-50e3-11e5-95f5-8555d3e40e62.gif


Reply to this email directly or view it on GitHub
#2409 (comment).

David Aguiar de Aquino Paiva
Dive sistemas

@crr0004
Copy link
Contributor

crr0004 commented Sep 2, 2015

I am having the same issue. It seems like the _recover_from_completition loop isn't accounting for GDTokenzier::TK_ERROR coming up and keeps trying to advance.

@crr0004
Copy link
Contributor

crr0004 commented Sep 2, 2015

Backtrace of the stack when my editor is frozen.

#0  0x000000000049e7a4 in GDTokenizerText::_make_error (this=0xa45ad60, p_error=...) at modules/gdscript/gd_tokenizer.cpp:204
#1  0x000000000049e9db in GDTokenizerText::_advance (this=0xa45ad60) at modules/gdscript/gd_tokenizer.cpp:230
#2  0x00000000004a230a in GDTokenizerText::advance (this=0xa45ad60, p_amount=1) at modules/gdscript/gd_tokenizer.cpp:1034
#3  0x00000000004cee28 in GDParser::_recover_from_completion (this=0x7ffc215a25a0) at modules/gdscript/gd_parser.cpp:1426
#4  0x00000000004d08e3 in GDParser::_parse_block (this=0x7ffc215a25a0, p_block=0xa635660, p_static=false) at modules/gdscript/gd_parser.cpp:1856
#5  0x00000000004d297a in GDParser::_parse_class (this=0x7ffc215a25a0, p_class=0xa655070) at modules/gdscript/gd_parser.cpp:2297
#6  0x00000000004d6c26 in GDParser::_parse (this=0x7ffc215a25a0, p_base_path=...) at modules/gdscript/gd_parser.cpp:2895
#7  0x00000000004d6f74 in GDParser::parse (this=0x7ffc215a25a0, p_code=..., p_base_path=..., p_just_validate=false, p_self_path=..., p_for_completion=true) at modules/gdscript/gd_parser.cpp:2954
#8  0x0000000000496e67 in GDScriptLanguage::complete_code (this=0x4c9e8a0, p_code=..., p_base_path=..., p_owner=0xa46ad90, r_options=0x7ffc215a2c30, r_call_hint=...) at modules/gdscript/gd_editor.cpp:2013
#9  0x00000000007e5d23 in ScriptTextEditor::_code_complete_script (this=0x7f10b70, p_code=..., r_options=0x7ffc215a2c30) at tools/editor/plugins/script_editor_plugin.cpp:503
#10 0x0000000000b199a1 in CodeTextEditor::_complete_request (this=0x7f10b70) at tools/editor/code_editor.cpp:520
#11 0x0000000000432066 in MethodBind0::call (this=0x7787090, p_object=0x7f10b70, p_args=0x7ffc215a2e40, p_arg_count=0, r_error=...) at core/method_bind.inc:47
#12 0x0000000001403796 in Object::call (this=0x7f10b70, p_method=..., p_args=0x7ffc215a2e40, p_argcount=0, r_error=...) at core/object.cpp:895
#13 0x00000000014032da in Object::call (this=0x7f10b70, p_name=..., p_arg1=..., p_arg2=..., p_arg3=..., p_arg4=..., p_arg5=...) at core/object.cpp:771
#14 0x000000000140531f in Object::emit_signal (this=0x7f07300, p_name=..., p_arg1=..., p_arg2=..., p_arg3=..., p_arg4=..., p_arg5=...) at core/object.cpp:1186
#15 0x0000000000c95993 in TextEdit::query_code_comple (this=0x7f07300) at scene/gui/text_edit.cpp:3473
#16 0x0000000000b19945 in CodeTextEditor::_code_complete_timer_timeout (this=0x7f10b70) at tools/editor/code_editor.cpp:514
#17 0x0000000000432066 in MethodBind0::call (this=0x7786f30, p_object=0x7f10b70, p_args=0x7ffc215a32f0, p_arg_count=0, r_error=...) at core/method_bind.inc:47
#18 0x0000000001403796 in Object::call (this=0x7f10b70, p_method=..., p_args=0x7ffc215a32f0, p_argcount=0, r_error=...) at core/object.cpp:895
#19 0x00000000014032da in Object::call (this=0x7f10b70, p_name=..., p_arg1=..., p_arg2=..., p_arg3=..., p_arg4=..., p_arg5=...) at core/object.cpp:771
#20 0x000000000140531f in Object::emit_signal (this=0x7f126f0, p_name=..., p_arg1=..., p_arg2=..., p_arg3=..., p_arg4=..., p_arg5=...) at core/object.cpp:1186
#21 0x0000000000ba9063 in Timer::_notification (this=0x7f126f0, p_what=17) at scene/main/timer.cpp:59
#22 0x0000000000baab74 in Timer::_notificationv (this=0x7f126f0, p_notification=17, p_reversed=false) at scene/main/timer.h:36
#23 0x0000000001403916 in Object::notification (this=0x7f126f0, p_notification=17, p_reversed=false) at core/object.cpp:907
#24 0x0000000000b91120 in SceneTree::_notify_group_pause (this=0x4d12bc0, p_group=..., p_notification=17) at scene/main/scene_main_loop.cpp:718
#25 0x0000000000b905bc in SceneTree::idle (this=0x4d12bc0, p_time=0.0252219997) at scene/main/scene_main_loop.cpp:523
#26 0x000000000041e4e4 in Main::iteration () at main/main.cpp:1440
#27 0x00000000004130ce in OS_X11::run (this=0x7ffc215a3b10) at platform/x11/os_x11.cpp:1925
#28 0x000000000040cd00 in main (argc=4, argv=0x7ffc215a4038) at platform/x11/godot_x11.cpp:41

Jumped to frame 3
Executed print tokenizer->get_token(0)
Got $3 = GDTokenizer::TK_ERROR

The current function that is stuck in a loop is

bool GDParser::_recover_from_completion() {

    if (!completion_found) {
        return false; //can't recover if no completion
    }
    //skip stuff until newline
    while(tokenizer->get_token()!=GDTokenizer::TK_NEWLINE && tokenizer->get_token()!=GDTokenizer::TK_EOF) {
        tokenizer->advance();
    }
    completion_found=false;
    error_set=false;

    return true;
}

The loop doesn't seem to exist when the error token pops up

reduz added a commit that referenced this issue Sep 2, 2015
@godotengine
Copy link
Collaborator

merged PR

On Wed, Sep 2, 2015 at 12:34 AM, Chris Rhodes notifications@github.com
wrote:

Backtrace of the stack when my editor is frozen.

#0 0x000000000049e7a4 in GDTokenizerText::_make_error (this=0xa45ad60, p_error=...) at modules/gdscript/gd_tokenizer.cpp:204
#1 0x000000000049e9db in GDTokenizerText::_advance (this=0xa45ad60) at modules/gdscript/gd_tokenizer.cpp:230
#2 0x00000000004a230a in GDTokenizerText::advance (this=0xa45ad60, p_amount=1) at modules/gdscript/gd_tokenizer.cpp:1034
#3 0x00000000004cee28 in GDParser::_recover_from_completion (this=0x7ffc215a25a0) at modules/gdscript/gd_parser.cpp:1426
#4 0x00000000004d08e3 in GDParser::_parse_block (this=0x7ffc215a25a0, p_block=0xa635660, p_static=false) at modules/gdscript/gd_parser.cpp:1856
#5 0x00000000004d297a in GDParser::_parse_class (this=0x7ffc215a25a0, p_class=0xa655070) at modules/gdscript/gd_parser.cpp:2297
#6 0x00000000004d6c26 in GDParser::_parse (this=0x7ffc215a25a0, p_base_path=...) at modules/gdscript/gd_parser.cpp:2895
#7 0x00000000004d6f74 in GDParser::parse (this=0x7ffc215a25a0, p_code=..., p_base_path=..., p_just_validate=false, p_self_path=..., p_for_completion=true) at modules/gdscript/gd_parser.cpp:2954
#8 0x0000000000496e67 in GDScriptLanguage::complete_code (this=0x4c9e8a0, p_code=..., p_base_path=..., p_owner=0xa46ad90, r_options=0x7ffc215a2c30, r_call_hint=...) at modules/gdscript/gd_editor.cpp:2013
#9 0x00000000007e5d23 in ScriptTextEditor::_code_complete_script (this=0x7f10b70, p_code=..., r_options=0x7ffc215a2c30) at tools/editor/plugins/script_editor_plugin.cpp:503
#10 0x0000000000b199a1 in CodeTextEditor::_complete_request (this=0x7f10b70) at tools/editor/code_editor.cpp:520
#11 0x0000000000432066 in MethodBind0::call (this=0x7787090, p_object=0x7f10b70, p_args=0x7ffc215a2e40, p_arg_count=0, r_error=...) at core/method_bind.inc:47
#12 0x0000000001403796 in Object::call (this=0x7f10b70, p_method=..., p_args=0x7ffc215a2e40, p_argcount=0, r_error=...) at core/object.cpp:895
#13 0x00000000014032da in Object::call (this=0x7f10b70, p_name=..., p_arg1=..., p_arg2=..., p_arg3=..., p_arg4=..., p_arg5=...) at core/object.cpp:771
#14 0x000000000140531f in Object::emit_signal (this=0x7f07300, p_name=..., p_arg1=..., p_arg2=..., p_arg3=..., p_arg4=..., p_arg5=...) at core/object.cpp:1186
#15 0x0000000000c95993 in TextEdit::query_code_comple (this=0x7f07300) at scene/gui/text_edit.cpp:3473
#16 0x0000000000b19945 in CodeTextEditor::_code_complete_timer_timeout (this=0x7f10b70) at tools/editor/code_editor.cpp:514
#17 0x0000000000432066 in MethodBind0::call (this=0x7786f30, p_object=0x7f10b70, p_args=0x7ffc215a32f0, p_arg_count=0, r_error=...) at core/method_bind.inc:47
#18 0x0000000001403796 in Object::call (this=0x7f10b70, p_method=..., p_args=0x7ffc215a32f0, p_argcount=0, r_error=...) at core/object.cpp:895
#19 0x00000000014032da in Object::call (this=0x7f10b70, p_name=..., p_arg1=..., p_arg2=..., p_arg3=..., p_arg4=..., p_arg5=...) at core/object.cpp:771
#20 0x000000000140531f in Object::emit_signal (this=0x7f126f0, p_name=..., p_arg1=..., p_arg2=..., p_arg3=..., p_arg4=..., p_arg5=...) at core/object.cpp:1186
#21 0x0000000000ba9063 in Timer::_notification (this=0x7f126f0, p_what=17) at scene/main/timer.cpp:59
#22 0x0000000000baab74 in Timer::_notificationv (this=0x7f126f0, p_notification=17, p_reversed=false) at scene/main/timer.h:36
#23 0x0000000001403916 in Object::notification (this=0x7f126f0, p_notification=17, p_reversed=false) at core/object.cpp:907
#24 0x0000000000b91120 in SceneTree::_notify_group_pause (this=0x4d12bc0, p_group=..., p_notification=17) at scene/main/scene_main_loop.cpp:718
#25 0x0000000000b905bc in SceneTree::idle (this=0x4d12bc0, p_time=0.0252219997) at scene/main/scene_main_loop.cpp:523
#26 0x000000000041e4e4 in Main::iteration () at main/main.cpp:1440
#27 0x00000000004130ce in OS_X11::run (this=0x7ffc215a3b10) at platform/x11/os_x11.cpp:1925
#28 0x000000000040cd00 in main (argc=4, argv=0x7ffc215a4038) at platform/x11/godot_x11.cpp:41

Jumped to frame 3
Executed print tokenizer->get_token(0)
Got $3 = GDTokenizer::TK_ERROR

The current function that is stuck in a loop is


if (!completion_found) {
    return false; //can't recover if no completion
}
//skip stuff until newline
while(tokenizer->get_token()!=GDTokenizer::TK_NEWLINE && tokenizer->get_token()!=GDTokenizer::TK_EOF) {
    tokenizer->advance();
}
completion_found=false;
error_set=false;

return true;

}

The loop doesn't seem to exist when the error token pops up

—
Reply to this email directly or view it on GitHub
https://github.com/okamstudio/godot/issues/2409#issuecomment-136926959.

OkamStudio

@zoiba
Copy link

zoiba commented Sep 2, 2015

made quick test: it works!

@neikeq
Copy link
Contributor

neikeq commented Sep 2, 2015

Yes, that fixed the issue. Thanks!

@draxdeveloper
Copy link
Author

that's why i love godot =D

2015-09-02 9:40 GMT-03:00 Ignacio Etcheverry notifications@github.com:

Yes, that fixed the issue. Thanks!


Reply to this email directly or view it on GitHub
#2409 (comment).

David Aguiar de Aquino Paiva
Dive sistemas

@AlexHolly
Copy link
Contributor

Looks all fine i think it can be closed.

@slapin
Copy link
Contributor

slapin commented Sep 3, 2015

@draxdeveloper please close this issue

@draxdeveloper
Copy link
Author

ah, sorry ><

2015-09-03 1:45 GMT-03:00 Sergey Lapin notifications@github.com:

@draxdeveloper https://github.com/draxdeveloper please close this issue


Reply to this email directly or view it on GitHub
#2409 (comment).

David Aguiar de Aquino Paiva
Dive sistemas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants