# Hands-on Rust: Bracket-lib on Raspberry Pi 4 running Ubuntu MATE

**URL:** <https://forum.devtalk.com/t/hands-on-rust-bracket-lib-on-raspberry-pi-4-running-ubuntu-mate/5309>\
**Category:** PragProg Customers\
**Tags:** book-hands-on-rust, errata\
**Created:** [22 December 2020 18:34 UTC](https://forum.devtalk.com/t/hands-on-rust-bracket-lib-on-raspberry-pi-4-running-ubuntu-mate/5309 "2020-12-22T18:34:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![arohl](https://forum.devtalk.com/user_avatar/forum.devtalk.com/arohl/32/1651_2.png) [@arohl](https://forum.devtalk.com/u/arohl)\
**Post date:** [22 December 2020 18:34 UTC](https://forum.devtalk.com/t/hands-on-rust-bracket-lib-on-raspberry-pi-4-running-ubuntu-mate/5309/1 "2020-12-22T18:34:11Z")

</div>

I get a significant glitch on my raspberry pi - there is a thin line to the left of the player that runs from the top of the screen to the bottom and moves as I move the player! It works on my Mac just fine, so I think its an issue with Bracket-lib. Note that if I change the function that draws the player to do nothing, the line still exists

 ![Screen Shot 2020-12-22 at 10.08.54 pm](https://forum.devtalk.com/uploads/default/original/2X/3/3bc5cce414ff81ad0608393eeecf151ecb89f9a6.png)

---

<div class="post-metadata">

**Author:** ![herbert](https://forum.devtalk.com/user_avatar/forum.devtalk.com/herbert/32/1233_2.png) [@herbert](https://forum.devtalk.com/u/herbert)\
**Post date:** [28 December 2020 14:46 UTC](https://forum.devtalk.com/t/hands-on-rust-bracket-lib-on-raspberry-pi-4-running-ubuntu-mate/5309/2 "2020-12-28T14:46:11Z")

</div>

That does look like a bracket-lib issue. I’ve opened an issue there ( [https://github.com/thebracket/bracket-lib/issues/184](https://github.com/thebracket/bracket-lib/issues/184) ), and I’ll see what I can do. I don’t have a current-gen Pi to test on, hopefully I can figure it out. If I had to guess, it’s a resolution/smoothing issue (you sometimes get rounding errors with GL coordinates, it normalizes everything from 0.0 to 1.0 internally).

Thanks!

---

<div class="post-metadata">

**Author:** ![arohl](https://forum.devtalk.com/user_avatar/forum.devtalk.com/arohl/32/1651_2.png) [@arohl](https://forum.devtalk.com/u/arohl)\
**Post date:** [19 January 2021 03:09 UTC](https://forum.devtalk.com/t/hands-on-rust-bracket-lib-on-raspberry-pi-4-running-ubuntu-mate/5309/3 "2021-01-19T03:09:30Z")

</div>

Have found out some more information. I am running xrdp on my pi and connecting from my Mac using Microsoft Remote Desktop Beta. I decided to see if I got the same on the pi directly connected via a monitor. Interestingly, dugeoncrawl doesn’t run - it gives the error:

> 0:1(10): error: GLSL 3.30 is not supported. Supported versions are: 1.10, 1.20, 1.00 ES, and 3.00 ES

However, if I change the command to:

> MESA\_GL\_VERSION\_OVERRIDE=3.0 MESA\_GLSL\_VERSION\_OVERRIDE=330 target/release/dungeoncrawl

It runs and the line doesn’t appear i.e. all is good

So the problem only occurs when connected remotely.

Andrew

---

<div class="post-metadata">

**Author:** ![herbert](https://forum.devtalk.com/user_avatar/forum.devtalk.com/herbert/32/1233_2.png) [@herbert](https://forum.devtalk.com/u/herbert)\
**Post date:** [19 January 2021 13:37 UTC](https://forum.devtalk.com/t/hands-on-rust-bracket-lib-on-raspberry-pi-4-running-ubuntu-mate/5309/4 "2021-01-19T13:37:33Z")

</div>

Thank you! That is interesting - so RDP doesn’t like GL 3.3? That’s a little surprising, it’s generally one of the “safe” versions that works everywhere. I’ll update the relevant ticket on `bracket-lib` and see what it takes to do a version fall-back to the GLES version - I haven’t done that before, so I can’t promise success there.
