# Processing on Jetson Nano

**URL:** <https://discourse.processing.org/t/processing-on-jetson-nano/11408>\
**Category:** Processing for Pi\
**Created:** [May 20, 2019, 7:23am UTC](https://discourse.processing.org/t/processing-on-jetson-nano/11408 "2019-05-20T07:23:05Z")\
**Posts on this page:** 13\
**Page:** 2

<div class="post-metadata">

**Author:** ![neilcsmith](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/neilcsmith/32/144_2.png) [@neilcsmith](https://discourse.processing.org/u/neilcsmith)\
**Post date:** [May 27, 2019, 12:57pm UTC](https://discourse.processing.org/t/processing-on-jetson-nano/11408/21 "2019-05-27T12:57:28Z")

</div>

> [@Smantik](#):
>
> - Problematic frame:\*
> - C [libGLX.so.0+0xd670]\*

There should be a stack trace leading up to that? If so it might help narrow down what Processing, JOGL, or even JVM functions are triggering this.

---

<div class="post-metadata">

**Author:** ![Smantik](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/smantik/32/5330_2.png) [@Smantik](https://discourse.processing.org/u/Smantik)\
**Post date:** [May 28, 2019, 10:19am UTC](https://discourse.processing.org/t/processing-on-jetson-nano/11408/22 "2019-05-28T10:19:31Z")

</div>

This are the errors that Ubuntu shows: (I tried “ulimit -c unlimited”, but it doesn’t work.)

 ![stack1](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/2/23ff6f4f71db1d341935be00456427aed2469367.png)

 ![stack2](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/6/670f01d44341bb8c270ea0b3140d6534e7eb458c.png)

---

<div class="post-metadata">

**Author:** ![neilcsmith](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/neilcsmith/32/144_2.png) [@neilcsmith](https://discourse.processing.org/u/neilcsmith)\
**Post date:** [May 28, 2019, 10:44am UTC](https://discourse.processing.org/t/processing-on-jetson-nano/11408/23 "2019-05-28T10:44:24Z")

</div>

Sorry, I meant in the hs\_err file it should give you a stack trace and thread dump which should tell you what thread in the JVM crashed and what it was trying to do.

---

<div class="post-metadata">

**Author:** ![Smantik](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/smantik/32/5330_2.png) [@Smantik](https://discourse.processing.org/u/Smantik)\
**Post date:** [May 28, 2019, 10:59am UTC](https://discourse.processing.org/t/processing-on-jetson-nano/11408/24 "2019-05-28T10:59:56Z")

</div>

This is one of them:

> **[hs\_err\_pid7485.log](https://drive.google.com/file/d/17HJ2U-EP-qPokwJMhRthpb7XbWc4nowa/view?usp=drive_open)**
>
> Google Drive file.

---

<div class="post-metadata">

**Author:** ![Smantik](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/smantik/32/5330_2.png) [@Smantik](https://discourse.processing.org/u/Smantik)\
**Post date:** [May 28, 2019, 5:15pm UTC](https://discourse.processing.org/t/processing-on-jetson-nano/11408/25 "2019-05-28T17:15:45Z")

</div>

It seems that the _“experimental FX2D renderer is not supported on ARM, because Oracle dropped support for JavaFX on ARM devices with Java 8u33. We might want to try using OpenJFX project in the future, but as of now this is unsupported.”_ , as seen in [https://github.com/processing/processing/wiki/Supported-Platforms#arm-linux](https://github.com/processing/processing/wiki/Supported-Platforms#arm-linux)  
GAME OVER  
☹  
But if I run it on Raspberry Pi 3 B+(an ARM SBC), it doesn’t crash although it goes really slow! This is crazy

---

<div class="post-metadata">

**Author:** ![neilcsmith](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/neilcsmith/32/144_2.png) [@neilcsmith](https://discourse.processing.org/u/neilcsmith)\
**Post date:** [May 28, 2019, 5:30pm UTC](https://discourse.processing.org/t/processing-on-jetson-nano/11408/26 "2019-05-28T17:30:26Z")

</div>

So the GL crash is in glXGetProcAddress. Possibly check the JOGL forum on that? Few mentions online but nothing that seems particularly relevant.

What OS is on the device? There are some ARM builds of OpenJFX. Think Ubuntu and others package OpenJFX 8 for ARM. And at least Liberica has an ARM build of OpenJFX as far as I know, but only for OpenJDK 11+ which will need Processing to catch up first.

---

<div class="post-metadata">

**Author:** ![Smantik](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/smantik/32/5330_2.png) [@Smantik](https://discourse.processing.org/u/Smantik)\
**Post date:** [May 28, 2019, 5:37pm UTC](https://discourse.processing.org/t/processing-on-jetson-nano/11408/27 "2019-05-28T17:37:35Z")

</div>

I’ll take a look to JOGL forum.  
It’s an Ubuntu 18.04.  
I tested Liberica too.  
But, for now, I have a Raspberry Pi that can run processing P3D sketches and a Jetson Nano with a Maxwell GPU with 128 cores that can’t do that!😅

---

<div class="post-metadata">

**Author:** ![neilcsmith](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/neilcsmith/32/144_2.png) [@neilcsmith](https://discourse.processing.org/u/neilcsmith)\
**Post date:** [May 28, 2019, 6:01pm UTC](https://discourse.processing.org/t/processing-on-jetson-nano/11408/28 "2019-05-28T18:01:10Z")

</div>

Well, there’s [https://packages.ubuntu.com/bionic/arm64/openjfx/download](https://packages.ubuntu.com/bionic/arm64/openjfx/download) so if you can get Processing to play nicely with a system installed OpenJDK 8 you might have a chance! Bon voyage! 😀

---

<div class="post-metadata">

**Author:** ![Smantik](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/smantik/32/5330_2.png) [@Smantik](https://discourse.processing.org/u/Smantik)\
**Post date:** [May 28, 2019, 6:04pm UTC](https://discourse.processing.org/t/processing-on-jetson-nano/11408/29 "2019-05-28T18:04:03Z")

</div>

Thanks a lot for your help, neilcsmith!!! 😉

---

<div class="post-metadata">

**Author:** ![Smantik](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/smantik/32/5330_2.png) [@Smantik](https://discourse.processing.org/u/Smantik)\
**Post date:** [May 31, 2019, 8:01pm UTC](https://discourse.processing.org/t/processing-on-jetson-nano/11408/30 "2019-05-31T20:01:54Z")

</div>

Incredible, I have Processing sketches running with OpenGL renderers. Although when I close them you can see some errors in the console, the sketch runs now.  
I have read the post of Diablo in [https://devtalk.nvidia.com/default/topic/1051204/jetson-nano/how-detected-tegra-gl-core-correctly-in-cmake-/post/5335756/?offset=5#5347306](https://devtalk.nvidia.com/default/topic/1051204/jetson-nano/how-detected-tegra-gl-core-correctly-in-cmake-/post/5335756/?offset=5#5347306) and he gave me an idea. I changed the /usr/lib/aarch64-linux-gnu/ **libGLX.so.0** problematic file for the /usr/lib/aarch64-linux-gnu/tegra/ **libGLX\_nvidia.so.0** file. Then I rename this file to **libGLX.so.0** and Processing now can run OpenGL rendered sketches.  
[https://drive.google.com/open?id=1h8bDiVyrTlOazdEIJeJS4GI5lvw9Teew](https://drive.google.com/open?id=1h8bDiVyrTlOazdEIJeJS4GI5lvw9Teew)  
The problem seems to be that Processing when uses OpenGL doesn’t link to tegra lib and it goes to libGLX.so.0 I’m not a computer technician, I can be wrong but it works.  
😃

These are the final errors that appear when I close the sketch:

> **[errorsProcessing.png](https://drive.google.com/file/d/1CnzQ0eBjvmjBqiRu8IZXd4A8Zcq9S1-A/view?usp=drive_open)**
>
> Google Drive file.

---

<div class="post-metadata">

**Author:** ![Smantik](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/smantik/32/5330_2.png) [@Smantik](https://discourse.processing.org/u/Smantik)\
**Post date:** [June 7, 2019, 5:45pm UTC](https://discourse.processing.org/t/processing-on-jetson-nano/11408/31 "2019-06-07T17:45:28Z")

</div>

Invalid solution!!!  
It lets me switch on once or twice the Jetson Nano correctly. Then, a black screen appears and you only can see the Desktop app logos. You can’t see the upper side menu, neither the logos that appear in the dock that is at the left side of the screen. If you open some window, you can’t see the controls for minimize it or close it.  
It is a complete disaster!!!

---

<div class="post-metadata">

**Author:** ![msurguy](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/msurguy/32/32_2.png) [@msurguy](https://discourse.processing.org/u/msurguy)\
**Post date:** [August 21, 2019, 10:02pm UTC](https://discourse.processing.org/t/processing-on-jetson-nano/11408/32 "2019-08-21T22:02:20Z")

</div>

Did you ever get Nano to work with Processing smoothly?

---

<div class="post-metadata">

**Author:** ![Smantik](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/smantik/32/5330_2.png) [@Smantik](https://discourse.processing.org/u/Smantik)\
**Post date:** [October 15, 2019, 5:34pm UTC](https://discourse.processing.org/t/processing-on-jetson-nano/11408/33 "2019-10-15T17:34:05Z")

</div>

I could use it smoothly but only with the default renderer.  
Those sketches that use OpenGL don’t work (those that has P2D or P3D in the size tag).

[Previous page](https://discourse.processing.org/t/processing-on-jetson-nano/11408.md?page=1)
