Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grey/White bar on right side of sketches in Processing 4.3 on Manjaro w/ KDE Plasma 6, Wayland #862

Open
PeteAmbos opened this issue Nov 27, 2024 · 22 comments · May be fixed by #928
Open
Labels
bug Something isn't working linux

Comments

@PeteAmbos
Copy link

PeteAmbos commented Nov 27, 2024

This is my first time writing an issue on a software project, so if I'm doing anything wrong, please let me know. I've searched for this issue on Google, here and the forums and found nothing so far, and read the guidelines for submitting issues and the troubleshooting page, but if I'm still doing something wrong, please tell me.

Description

When running a sketch in Processing 4.3, there always is a grey/white bar on the right side of the output, despite it not being coded to be there. The bug persists after uninstalling and reinstalling.

Expected Behavior

The sketches running without a unwanted bar appearing on the right side of the output.

Current Behavior

See Description.
Example Screenshot:
example-screenshot

Steps to Reproduce

  1. Open Processing 4.3.
  2. This is the smallest amount of code I found to be able to reproduce the bug:
    void setup() { size(400, 400); background(0); }
  3. Run the Sketch, which produces the output given in the screenshot given above.

Your Environment

  • Processing version: 4.3 (64 Bit)
  • Operating System and OS version: Manjaro Linux 6.10.13 w/ KDE Plasma 6.1.5 on Wayland
  • Other information: I've attached a txt with my inxi output for further information.
    sysinfo_inxi.txt

I'm happy to provide any further information if needed.

@Stefterv
Copy link
Collaborator

Hi, quick question, do you use a scaled UI mode on your display, e.g. 125% on 2560x1440

@Stefterv Stefterv added bug Something isn't working linux labels Nov 27, 2024
@PeteAmbos
Copy link
Author

Jup, I use a scale of 120 % on a 2560x1600 display.

@Stefterv
Copy link
Collaborator

Okay, could you test for me turning it to 100% scale for a second, I suspect the issue is with having non-integer scaling

@PeteAmbos
Copy link
Author

PeteAmbos commented Nov 27, 2024

Sure! The bar is unfortunately still there after turning the scale back to 100%. Even tried logging out and back in to start a new session after changing the scaling, but the bar is still there.

@Stefterv
Copy link
Collaborator

Okay, thank you so much for trying, will need to be looked into deeper with a vm of your OS then

@PeteAmbos
Copy link
Author

Got it, if you need any more information, just let me know.

@PeteAmbos
Copy link
Author

Since there was an update, just wanted to report this issue still persists in Processing 4.3.2 on the 2025-01-18 testing branch update of Manjaro with Plasma 6.2.5.

Current inxi:
inxi.txt

@Stefterv
Copy link
Collaborator

Thanks for the ping, I just set up a vm and I'm seeing the same thing:

Image

@Stefterv
Copy link
Collaborator

Switching to P2D solves the issue
Image

@Stefterv Stefterv linked a pull request Jan 19, 2025 that will close this issue
@Stefterv
Copy link
Collaborator

Hi @PeteAmbos I've created a pull request with a potential fix, could you please try the test build created here and let me know if that solves your issue

Stefterv added a commit to Stefterv/processing4 that referenced this issue Jan 19, 2025
@PeteAmbos
Copy link
Author

I can confirm using P2D fixes it on the regular build. I've downloaded and run the test build and unfortunately, it doesn't fix the issue. It still only works when explicitly using P2D. This is the first time I've run a test build though so to make sure I did it correctly, these are the steps I followed:

  1. Downloaded the processing-21f43731605e0c78373cd9036a1538f550707e7clinux-x64 zip archive from the page you linked me to.
  2. Extracted the tgz file from that zip archive.
  3. Followed the steps on the Getting Started page on processing.org as I would for any regular processing install

@Stefterv
Copy link
Collaborator

Added a different solution, seems like that something on Manjaro is resizing the window even though it is not resizable, causing the lines to appear, this solution sizes the window back down to the sketch size. More robust than the first solution

@Stefterv
Copy link
Collaborator

Stefterv commented Jan 19, 2025

@PeteAmbos Thanks so much for testing! I suspect you are doing it correctly, just check if you are running the correct new version by looking at the title bar, it should say Processing 21f43... next to the file name

I've also tested a different approach here: https://github.com/processing/processing4/actions/runs/12857195890

Oh and please post a screenshot again when testing, there's a lot I can glance from it

@PeteAmbos
Copy link
Author

@Stefterv Got it! So, I have bad news. On the new build, this is how the IDE looks when running ./processing:

Image

I did manage to copy the error message from the IDE output (in a separate text file due to the length).

error_msg_ide.txt

I also tried copying void setup() { size(400, 400); background(0); } into the one line of the editor that is not white and tried to run it using Ctrl + R to see if it would still run a sketch, but no dice, unfortunately.

Also, unlike the other times starting Processing for the first time, no icon appeared on the Desktop. It also doesn't say Processing 68c8... in the title bar, but I deleted every other Processing install/folder from my system to make sure it's the only one that could be running right now.

@Stefterv
Copy link
Collaborator

Fascinating, yeah that is still 4.3.2 for sure, probably erroring out because it's source files have disappeared 😅

I suspect closing Processing didn't fully close it and somehow it is still running in the background somewhere. Maybe restart too?

I started working on a tool this weekend to make the experience of testing Processing builds easier

Thanks again

@PeteAmbos
Copy link
Author

Restarting did the trick, and the white bar is now gone as well!

Image

@Stefterv
Copy link
Collaborator

Yay!

Sorry I’m keeping this open until the PR is merged

@Stefterv Stefterv reopened this Jan 19, 2025
@PeteAmbos
Copy link
Author

Oh, sorry, I didn't know it was supposed to remain open until then, I'll remember that for the future.

@Stefterv
Copy link
Collaborator

Yep, I've linked the PR in such a way that merging it will close the issue automatically 😉

@PeteAmbos
Copy link
Author

@Stefterv by the way, I could also test the test build on Windows 11, if that would help make sure it is cross-compatible.

@Stefterv
Copy link
Collaborator

Cool yeah please do!

@PeteAmbos
Copy link
Author

I apologize for the delay, but I've managed to test it now, and it seems to work without any problems on Windows 11.

Image

Here's my DxDiag for further info about my system:

DxDiag.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working linux
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants