Can't build project. console is empty. Error log tab "Unhandled event loop exception" (SOLVED)

After a while i can’t build my project anymore.
When i click Build. just nothing happens. Console tab is empty and i just see tons of errors in Error tab

eclipse.buildId=unknown
java.version=1.8.0_05
java.vendor=Oracle Corporation
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments: -keyring /Users/nicloay/.eclipse_keyring -showlocation
Command-line arguments: -os macosx -ws cocoa -arch x86_64 -keyring /Users/nicloay/.eclipse_keyring -showlocation

Error
Thu Sep 08 04:17:33 CEST 2016
Unhandled event loop exception

java.lang.NullPointerException
at org.eclipse.swt.widgets.Control.internal_new_GC(Control.java:2099)
at org.eclipse.swt.graphics.GC.cocoa_new(GC.java:207)
at org.eclipse.swt.widgets.Tree.sendMeasureItem(Tree.java:2603)
at org.eclipse.swt.widgets.Tree.cellSize(Tree.java:283)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:5385)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper_stret(Native Method)
at org.eclipse.swt.widgets.Widget.expansionFrameWithFrame_inView(Widget.java:790)
at org.eclipse.swt.widgets.Tree.expansionFrameWithFrame_inView(Tree.java:1266)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:5768)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSend_bool(Native Method)
at org.eclipse.swt.internal.cocoa.NSRunLoop.runMode(NSRunLoop.java:42)
at org.eclipse.swt.widgets.Display.sleep(Display.java:4567)
at org.eclipse.ui.application.WorkbenchAdvisor.eventLoopIdle(WorkbenchAdvisor.java:364)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2702)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at com.dynamo.cr.editor.Application.start(Application.java:42)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)

if i clear the Error Log content and try build again nothing happens. and no any new errors appear at this tab

also. build HTML and Launch works.

Oh… Sorry. i found what was the issue.
I didn’t have stable internet last week and tried to play the editor. so i clicked some options in setup and so on. So what i’ve done is check Custom application in Defold Preferences. Now i unchecked it and everything become works.

regarding Unhandled event loop exception i followed this solution Installed XULRunner and added

-Dorg.eclipse.swt.browser.XULRunnerPath=/Library/Frameworks/XUL.framework

to the Defold.app/Contents/MacOS/Defold.ini file

3 Likes