# Java.io.IOException: Output Stream is closed - crash on 64bit linux during build when USB mouse conencted

**URL:** <https://forum.defold.com/t/java-io-ioexception-output-stream-is-closed-crash-on-64bit-linux-during-build-when-usb-mouse-conencted/2099>\
**Category:** Bugs\
**Created:** [June 9, 2016, 9:09pm UTC](https://forum.defold.com/t/java-io-ioexception-output-stream-is-closed-crash-on-64bit-linux-during-build-when-usb-mouse-conencted/2099 "2016-06-09T21:09:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michal](https://forum-defold.b-cdn.net/letter_avatar_proxy/v4/letter/m/34f0e0/32.png) [@Michal](https://forum.defold.com/u/Michal)\
**Post date:** [June 9, 2016, 9:09pm UTC](https://forum.defold.com/t/java-io-ioexception-output-stream-is-closed-crash-on-64bit-linux-during-build-when-usb-mouse-conencted/2099/1 "2016-06-09T21:09:26Z")

</div>

Hello

When I do a build of almost empty project on 64 bit Linux, Defold version 1.2.82 see a major problem with editor:

1. In console I start receiving errors (new ones appearing like every second):  
INFO:CRASH: Successfully wrote Crashdump to file: /home/michal/.Defold/\_crash
2. Window with my project builded content is stuck, in a moment I get a system message that it is not responding
3. dmengine process is consuming CPU relatively high
4. After I run a Defold again in the error log I see java.io.IOException: Output Stream is closed

**Screenshot of error log**

> **[Google Drive: Sign-in](https://accounts.google.com/v3/signin/identifier?continue=https%3A%2F%2Fdrive.google.com%2Fopen%3Fid%3D0B2DvtxRLlaVaRkFMWlBjcUE0d28&dsh=S219847164%3A1773948978205331&followup=https%3A%2F%2Fdrive.google.com%2Fopen%3Fid%3D0B2DvtxRLlaVaRkFMWlBjcUE0d28&osid=1&passive=1209600&service=wise&flowName=GlifWebSignIn&flowEntry=ServiceLogin&ifkv=ASfE1-pfAL7ZmJI8OfJbjZM-dBibJ9nTTxJPNl26oOfBEzc5IHxTtLSAR2taeeLaJ9rBqt-N0mtVnQ)**
>
> Access Google Drive with a Google account (for personal use) or Google Workspace account (for business use).

**Crash binary log**

> **[Google Drive: Sign-in](https://accounts.google.com/v3/signin/identifier?continue=https%3A%2F%2Fdrive.google.com%2Fopen%3Fid%3D0B2DvtxRLlaVadXg5VENaN2RLNjA&dsh=S285816845%3A1773948980289555&followup=https%3A%2F%2Fdrive.google.com%2Fopen%3Fid%3D0B2DvtxRLlaVadXg5VENaN2RLNjA&osid=1&passive=1209600&service=wise&flowName=GlifWebSignIn&flowEntry=ServiceLogin&ifkv=ASfE1-rhbfJ8gXcn4HGEQDtGzKj2bf16_LqGr6m4t_aOo6Kvbyheuu4MPbkyZs2DlUvRsQOOYhV-2A)**
>
> Access Google Drive with a Google account (for personal use) or Google Workspace account (for business use).

**Log mentioned in Error log message**

> **[Google Drive: Sign-in](https://accounts.google.com/v3/signin/identifier?continue=https%3A%2F%2Fdrive.google.com%2Fopen%3Fid%3D0B2DvtxRLlaVaNU5BUjh1SnVaY3M&dsh=S-1557407174%3A1773948981916331&followup=https%3A%2F%2Fdrive.google.com%2Fopen%3Fid%3D0B2DvtxRLlaVaNU5BUjh1SnVaY3M&osid=1&passive=1209600&service=wise&flowName=GlifWebSignIn&flowEntry=ServiceLogin&ifkv=ASfE1-oRJkPtL3jxvJ0OtOmgbtxrqQwqKIgFs5FGXE0qLlPap2HhOutl6m51Qf9i_vmzPD_Dmz-L)**
>
> Access Google Drive with a Google account (for personal use) or Google Workspace account (for business use).

Project is correctly bild on the same version of Defold on my VM with 32 bit Linux.  
Also when I try totally empty Defolf project is build with no crash on Linux 64 bit - issues start after adding even simple elements to project.

Any idea where to start investigation?

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [June 10, 2016, 4:35am UTC](https://forum.defold.com/t/java-io-ioexception-output-stream-is-closed-crash-on-64bit-linux-during-build-when-usb-mouse-conencted/2099/2 "2016-06-10T04:35:02Z")

</div>

@jakob.pogulis do you have any ideas or suggestions?

---

<div class="post-metadata">

**Author:** ![d954mas](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/d954mas/32/5401_2.png) [@d954mas](https://forum.defold.com/u/d954mas)\
**Post date:** [June 10, 2016, 9:19am UTC](https://forum.defold.com/t/java-io-ioexception-output-stream-is-closed-crash-on-64bit-linux-during-build-when-usb-mouse-conencted/2099/3 "2016-06-10T09:19:57Z")

</div>

have the same problem. It happens only when i connect mouse. If i use touchpad everything ok.

---

<div class="post-metadata">

**Author:** ![Michal](https://forum-defold.b-cdn.net/letter_avatar_proxy/v4/letter/m/34f0e0/32.png) [@Michal](https://forum.defold.com/u/Michal)\
**Post date:** [June 10, 2016, 6:20pm UTC](https://forum.defold.com/t/java-io-ioexception-output-stream-is-closed-crash-on-64bit-linux-during-build-when-usb-mouse-conencted/2099/4 "2016-06-10T18:20:26Z")

</div>

I’ve tried removing mouse receiver from USB.. and I can do to the build! I put it back and run the build - it crashes. Tested on different projects.

Good to know what causes it, would be even better to still work with mouse 🙂

---

<div class="post-metadata">

**Author:** ![Michal](https://forum-defold.b-cdn.net/letter_avatar_proxy/v4/letter/m/34f0e0/32.png) [@Michal](https://forum.defold.com/u/Michal)\
**Post date:** [August 3, 2016, 7:57am UTC](https://forum.defold.com/t/java-io-ioexception-output-stream-is-closed-crash-on-64bit-linux-during-build-when-usb-mouse-conencted/2099/5 "2016-08-03T07:57:46Z")

</div>

Looks like related to:

> [@Engine crashes with USB Bluetooth Mouse & Keyboard plugged in (DEF-1992) (SOLVED)](https://forum.defold.com/t/engine-crashes-with-usb-bluetooth-mouse-keyboard-plugged-in-def-1992/2348):
>
> Hello there, When I plug my Microsoft Wireless Keyboard 3000 USB Transceiver to my laptop and try to launch a defold project from the IDE, the game instantly crashes. HTML5 export works fine. As soon as I unplug the Wireless transceiver, it works again. Steps to reproduce Plug in Wireless Keyboard 3000 USB Tranceiver Launch Defold, open project Try to run the project I’m on Ubuntu 16.04 using Defold 1.2.84 x64. INFO:ENGINE: Defold Engine 1.2.84 (5eb478d) INFO:ENGINE: Loading data from: bui…

In the meantime I see it works with the other mouse (wireless, USB dongle too)
