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

**URL:** <https://forum.defold.com/t/cant-build-project-console-is-empty-error-log-tab-unhandled-event-loop-exception-solved/2851>\
**Category:** Bugs\
**Created:** [September 8, 2016, 2:30am UTC](https://forum.defold.com/t/cant-build-project-console-is-empty-error-log-tab-unhandled-event-loop-exception-solved/2851 "2016-09-08T02:30:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nicloay](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/nicloay/32/1895_2.png) [@nicloay](https://forum.defold.com/u/nicloay)\
**Post date:** [September 8, 2016, 2:30am UTC](https://forum.defold.com/t/cant-build-project-console-is-empty-error-log-tab-unhandled-event-loop-exception-solved/2851/1 "2016-09-08T02:30:51Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![nicloay](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/nicloay/32/1895_2.png) [@nicloay](https://forum.defold.com/u/nicloay)\
**Post date:** [September 8, 2016, 2:59am UTC](https://forum.defold.com/t/cant-build-project-console-is-empty-error-log-tab-unhandled-event-loop-exception-solved/2851/2 "2016-09-08T02:59:58Z")

</div>

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](https://forum.defold.com/t/error-when-i-press-open-project-linux-32-bit-solved/923/12) Installed [XULRunner](https://developer.mozilla.org/en-US/docs/Archive/Mozilla/XULRunner/1.9) and added

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

to the _Defold.app/Contents/MacOS/Defold.ini_ file
