defold / editor2-issues

DEPRECATED
44 stars 4 forks source link

Defold (latest version) stuck forever after "Loading resource" / Creating new project #1872

Open DNS opened 6 years ago

DNS commented 6 years ago

Loading resource stuck forever (after I create new empty project). It only show white screen with window title “Defold Editor 2.0 (Not Responding)”.

Specification: Latest Defold 64-bit Windows 10 (64-bit), 1703 AMD Phenom X6 1090T, 8GB RAM AMD Radeon RX 470 8GB, Adrenalin 18.1.1

I tried to run Defold by using running the .jar with java -jar from command prompt:

D:\BIN\Defold\packages>java -jar defold-0980fa0e972873c7ccec5175c7d6079c501d9748.jar

And it's stuck here:

T y p e " y " t o c o n t i n u e : A c c e p t i n g i s r e q u i r e d t o p r o c e e d . E x i t i n g . . .

The complete error log:

2018-05-08 10:58:27.700 DEBUG default    com.defold.libs.ResourceUnpacker - unpacking '/_unpack/_defold/debugger/' to 'C:\Users\dns\AppData\Local\Temp\defold-unpack8356786620345490663\_defold\debugger'
2018-05-08 10:58:27.701 DEBUG default    com.defold.libs.ResourceUnpacker - unpacking '/_unpack/_defold/debugger/start.lua' to 'C:\Users\dns\AppData\Local\Temp\defold-unpack8356786620345490663\_defold\debugger\start.lua'
2018-05-08 10:58:27.707 DEBUG default    com.defold.libs.ResourceUnpacker - unpacking '/_unpack/_defold/debugger/mobdebug.lua' to 'C:\Users\dns\AppData\Local\Temp\defold-unpack8356786620345490663\_defold\debugger\mobdebug.lua'
2018-05-08 10:58:27.709 DEBUG default    com.defold.libs.ResourceUnpacker - unpacking '/_unpack/_defold/debugger/edn.lua' to 'C:\Users\dns\AppData\Local\Temp\defold-unpack8356786620345490663\_defold\debugger\edn.lua'
2018-05-08 10:58:27.710 DEBUG default    com.defold.libs.ResourceUnpacker - unpacking '/_unpack/_defold/debugger/debugger.lua' to 'C:\Users\dns\AppData\Local\Temp\defold-unpack8356786620345490663\_defold\debugger\debugger.lua'
2018-05-08 10:58:27.716 INFO  default    com.defold.libs.ResourceUnpacker - defold.unpack.path=C:\Users\dns\AppData\Local\Temp\defold-unpack8356786620345490663
NREPL library not found, not starting
2018-05-08 10:58:33.608 INFO  default    editor.updater - {:line 90, :message "automatic updates disabled (channel='null', sha1='null')"}
NREPL library not found, not starting
2018-05-08 10:58:45.335 DEBUG default    org.eclipse.jgit.util.FS - readpipe [bash, --login, -c, which git],C:\Users\dns
2018-05-08 10:58:45.374 DEBUG default    org.eclipse.jgit.util.FS - readpipe may return '- -   B e t a   f e a t u r e   - -   '
2018-05-08 10:58:45.374 DEBUG default    org.eclipse.jgit.util.FS - remaining output:

2018-05-08 10:58:45.376 DEBUG default    org.eclipse.jgit.util.FS -
2018-05-08 10:58:45.376 DEBUG default    org.eclipse.jgit.util.FS -
2018-05-08 10:58:45.376 DEBUG default    org.eclipse.jgit.util.FS -  T h i s   w i l l   i n s t a l l   U b u n t u   o n   W i n d o w s ,   d i s t r i b u t e d   b y   C a n o n i c a l
2018-05-08 10:58:45.377 DEBUG default    org.eclipse.jgit.util.FS -
2018-05-08 10:58:45.377 DEBUG default    org.eclipse.jgit.util.FS -
2018-05-08 10:58:45.377 DEBUG default    org.eclipse.jgit.util.FS -  a n d   l i c e n s e d   u n d e r   i t s   t e r m s   a v a i l a b l e   h e r e :
2018-05-08 10:58:45.378 DEBUG default    org.eclipse.jgit.util.FS -
2018-05-08 10:58:45.378 DEBUG default    org.eclipse.jgit.util.FS -
2018-05-08 10:58:45.379 DEBUG default    org.eclipse.jgit.util.FS -  h t t p s : / / a k a . m s / u o w t e r m s
2018-05-08 10:58:45.379 DEBUG default    org.eclipse.jgit.util.FS -
2018-05-08 10:58:45.380 DEBUG default    org.eclipse.jgit.util.FS -
2018-05-08 10:58:45.380 DEBUG default    org.eclipse.jgit.util.FS -
2018-05-08 10:58:45.380 DEBUG default    org.eclipse.jgit.util.FS -
2018-05-08 10:58:45.381 DEBUG default    org.eclipse.jgit.util.FS -
2018-05-08 10:58:45.381 DEBUG default    org.eclipse.jgit.util.FS -  T y p e   " y "   t o   c o n t i n u e :   A c c e p t i n g   i s   r e q u i r e d   t o   p r o c e e d .   E x i t i n g . . .
2018-05-08 10:58:45.382 DEBUG default    org.eclipse.jgit.util.FS -
2018-05-08 10:58:45.382 DEBUG default    org.eclipse.jgit.util.FS -
DNS commented 6 years ago

Other people also have the same problem:

https://github.com/defold/editor2-issues/issues/1860 https://forum.defold.com/t/editor-2-x64-freeze-at-loading-resouces-state/19537/4 https://bugs.eclipse.org/bugs/show_bug.cgi?id=515354

DNS commented 6 years ago

Ok, I found the solution.

org.eclipse.jgit need Git dependency. So I install Git and make "git.exe" available from %PATH%.

It's obviously a bug for windows users, because they don't have Git pre-installed and Defold don't ship with Git binary.

erikangelin-king commented 6 years ago

Hi @dns! Thanks for researching on your own! Do I understand correctly if this happens because JGit does not find a git, but finds a bash executable on your system, and that bash is misbehaving? We will discuss how to handle this, but it's great you found a workaround!

DNS commented 6 years ago

JGit only need git.exe available from system environment path. It doesn't need a bash.

From command prompt, type:

D:>echo %PATH%

Output:

C:\Program Files (x86)\Common Files\Oracle\Java\javapath;D:\BIN\Perl64\site\bin;D:\BIN\Perl64\bin;D:\BIN\Python27\;D:\BIN\Python27\Scripts;D:\BIN\Python36\Scripts\;D:\BIN\Python36\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;D:\Program Files (x86)\CMake\bin;D:\BIN;D:\BIN\wget;D:\BIN\dex2jar-0.0.9.9;D:\SOFTWARE\Tools\SysinternalsSuite-05-16-2017;D:\BIN\android-sdk\platform-tools;D:\BIN\android-ndk-r12;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;d:\Program Files\Git\cmd;D:\Program Files\TortoiseGit\bin;D:\Program Files\TortoiseHg\;D:\BIN\Ruby25\bin;C:\Users\dns\AppData\Local\Microsoft\WindowsApps;d:\Program Files (x86)\Nmap

If git.exe is not available on one of these directory, Defold will stuck forever after "Loading resource" / Creating a new project. And only showing White screen.