# Weird bug in processing or linux?

**URL:** https://discourse.processing.org/t/weird-bug-in-processing-or-linux/25981
**Category:** Processing
**Created:** [December 5, 2020, 8:11pm UTC](https://discourse.processing.org/t/weird-bug-in-processing-or-linux/25981 "2020-12-05T20:11:30Z")
**Posts on this page:** 8
**Page:** 2

<div class="post-metadata">

### Author: ![jay\_m](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jay_m/32/11020_2.png) [@jay\_m](https://discourse.processing.org/u/jay_m)
#### Post date: [December 12, 2020, 10:16am UTC](https://discourse.processing.org/t/weird-bug-in-processing-or-linux/25981/21 "2020-12-12T10:16:14Z")

</div>

May be there is an influence in the blending with the underlying color of the fully transparent alpha image? (was it a fully transparent white or fully transparent black?)

could you try with this ⬇︎ image (you can’t see it but it’s there 🙂) ?

 ![newalphatest](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/0/0226b6b0da860a69af418451baca3c0e48f6a384.png)

this is a transparent blue

---

<div class="post-metadata">

### Author: ![HackinHarry](https://avatars.discourse-cdn.com/v4/letter/h/3e96dc/32.png) [@HackinHarry](https://discourse.processing.org/u/HackinHarry)
#### Post date: [December 12, 2020, 8:22pm UTC](https://discourse.processing.org/t/weird-bug-in-processing-or-linux/25981/22 "2020-12-12T20:22:57Z")

</div>

No, that’s not the problem. I’ve been working with this setup for almost a year and the blue is red and red is blue behavior is about a week old. Very closely look at the sphere that’s drawn and you’ll see a gray line of lattitude. That’s the equator. Without blendMode(), you won’t see through an image and won’t see the equator. To show this, I took an earth.jpg image and load that instead of alphatest.png. I comment out the blendMode(SCREEN) and the blue ocean in earth.jpg is now red. The lat and lon are now red because I used GoToLoop’s workaround, but the equator is not visible, thus the image loses transparency without blendMode().

GoToLoop provided a link to Endianness and JDK 11. I ran java -version and javac -version. It says my jre is 1.8 and my jdk is the same, 1.8. I suppose the java.nio.ByteOrder is not unique to Java SE 11, or I couldn’t import it but I’m not sure “Alice”. 😉

 ![Screenshot 2020-12-12 at 3.09.01 PM](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/4/47c65d24a97beee1ec5462b120ad52d982fc8559.jpeg)

Here’s a screenshot showing that blendMode(SCREEN) provides transparency. The land masses in the Northern Hemisphere would not be visible unless the earth.jpg is transparent, as provided by blendMode().

 ![Screenshot 2020-12-12 at 3.41.08 PM](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/6/61831b4d0c2fc0a795670a8f1930b8b908840109.jpeg)

---

<div class="post-metadata">

### Author: ![jay\_m](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jay_m/32/11020_2.png) [@jay\_m](https://discourse.processing.org/u/jay_m)
#### Post date: [December 12, 2020, 9:41pm UTC](https://discourse.processing.org/t/weird-bug-in-processing-or-linux/25981/23 "2020-12-12T21:41:41Z")

</div>

> [@HackinHarry](#):
>
> I’ve been working with this setup for almost a year and the blue is red and red is blue behavior is about a week old

What did you change then?

PS: Nice images

---

<div class="post-metadata">

### Author: ![HackinHarry](https://avatars.discourse-cdn.com/v4/letter/h/3e96dc/32.png) [@HackinHarry](https://discourse.processing.org/u/HackinHarry)
#### Post date: [December 15, 2020, 2:36am UTC](https://discourse.processing.org/t/weird-bug-in-processing-or-linux/25981/24 "2020-12-15T02:36:24Z")

</div>

I think you’ll have to ask Google and I’ll have to cry to them. It wasn’t till an update that this particular problem appeared. I’m interested in identifying and describing this problem so I can tell the “evil” developers what they broke. This wasn’t the only problem revealed by their update either. I have some processing programs that require reading data from an Arduino over USB and those devices are no longer visible.

---

<div class="post-metadata">

### Author: ![jay\_m](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jay_m/32/11020_2.png) [@jay\_m](https://discourse.processing.org/u/jay_m)
#### Post date: [December 16, 2020, 9:56am UTC](https://discourse.processing.org/t/weird-bug-in-processing-or-linux/25981/25 "2020-12-16T09:56:49Z")

</div>

it smells like an endianness issue, Intel and ARM platform with Linux used to not have the same endianness - may be they introduced a bug in the latest update and did not test as extensively on Intel as they did for ARM (seems ARM is the architecture for the future).

---

<div class="post-metadata">

### Author: ![HackinHarry](https://avatars.discourse-cdn.com/v4/letter/h/3e96dc/32.png) [@HackinHarry](https://discourse.processing.org/u/HackinHarry)
#### Post date: [December 24, 2020, 3:08am UTC](https://discourse.processing.org/t/weird-bug-in-processing-or-linux/25981/26 "2020-12-24T03:08:03Z")

</div>

One thing I thought about trying is to reinstall 3.5.3 and see if something got corrupted in processing only. If I reinstall and the problem is gone, then the problem was in processing. Why or how would be a different question.

---

<div class="post-metadata">

### Author: ![jay\_m](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jay_m/32/11020_2.png) [@jay\_m](https://discourse.processing.org/u/jay_m)
#### Post date: [December 25, 2020, 6:35pm UTC](https://discourse.processing.org/t/weird-bug-in-processing-or-linux/25981/27 "2020-12-25T18:35:05Z")

</div>

Yeah that’s likely not the issue but can’t hurt to double check

---

<div class="post-metadata">

### Author: ![HackinHarry](https://avatars.discourse-cdn.com/v4/letter/h/3e96dc/32.png) [@HackinHarry](https://discourse.processing.org/u/HackinHarry)
#### Post date: [February 4, 2021, 2:06am UTC](https://discourse.processing.org/t/weird-bug-in-processing-or-linux/25981/28 "2021-02-04T02:06:48Z")

</div>

I noticed something in another program written in C++. Its a flight simulator called crrcsim that runs in linux.  
I edited the config.xml file by taking out a section for video. When I ran the program, it also had the inverted red and blue. I put the video stuff back and it was normal again.

[Previous page](https://discourse.processing.org/t/weird-bug-in-processing-or-linux/25981.md?page=1)
