pharo icon indicating copy to clipboard operation
pharo copied to clipboard

Running Pharo in KDE suspends desktop effects

Open mydoghasworms opened this issue 4 years ago • 9 comments

Bug description When running Pharo in KDE desktop, e.g. on Kubuntu, the desktop effects are suspended, affecting things like wobbly windows, desktop grid, etc.

Closing the application restores desktop effects.

I have tested this by installing both Pharo 8 and Pharo 9 (both 64 bit) using the Pharo launcher, as well as installing Pharo 9 using the shell script. Launching Pharo 9 in either case causes desktop effects to be suspended. Pharo 8 does not do this.

To Reproduce Install Pharo 9 on Linux/KDE, either with the shell script or Pharo Launcher.

Expected behavior There should be no change to the desktop behaviour.

Version information:

  • OS: Kubuntu, 64 bit
  • Version: 21.04
  • Pharo Version: 9

Expected development cost I can help test the bug fix.

Additional context I am running on a Dell Precision M6800 that has an Nvidia Quadro K3100M and an i7-4910MQ.

mydoghasworms avatar Oct 12 '21 15:10 mydoghasworms

As a further test, I switched drivers.

I was using "NVIDIA driver metapackage from nvidia-driver-390 (proprietary, test)" and switched to using "X.org X server -- Nouveau display driver from xserver-xorg-video-nouveau (open source)" in Software Sources.

After this change, Pharo 9 did not start at all anymore, giving the following output on the console:

libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  155 (GLX)
  Minor opcode of failed request:  3 (X_GLXCreateContext)
  Value in failed request:  0x0
  Serial number of failed request:  124
  Current serial number in output stream:  125

Pharo 8 still works, as before, after the change.

mydoghasworms avatar Oct 13 '21 10:10 mydoghasworms

Not sure whether restarting helped, since switching drivers, but Pharo 9 does start now, although the original problem persists.

mydoghasworms avatar Oct 18 '21 05:10 mydoghasworms

Happens on my end too (Ubuntu 22.04, NVidia 535 drivers)

mauricioszabo avatar Dec 05 '23 20:12 mauricioszabo

Thanks for the feedback. Now Pharo 9 is super old and this is not a version currently maintained. We could have a look but it is only in the context of a contract. So let us know if this is something that interest you else we will just close this issue.

Ducasse avatar Dec 06 '23 07:12 Ducasse

Oh, I wasn't aware of that. So, let me tell what I did (today - right now):

  1. Went to https://pharo.org/download
  2. Clicked on Gnu/Linux. It asked me to download PharoLauncher-linux-3.0.1-x64.zip
  3. Downloaded it, unzipped
  4. Entered the pharo-launcher directory, then ran ./pharo-launcher
  5. Same problem (desktop effects are disabled)

Also - the window's scaling is quite weird, as you can see in this screenshot below: image

Sorry, I didn't look that this issue referred only to Pharo 9. I meant to say that the problem still occurs on the Pharo Launcher 3.0.1 that I can download from the site.

mauricioszabo avatar Dec 06 '23 14:12 mauricioszabo

What is strange is the PhLImageDetailPresenter listed in the error log. This class does not exist in Pharo12

Are you sure that you do not load something somehow on startup?

MarcusDenker avatar Dec 06 '23 15:12 MarcusDenker

I literally just ran the launcher, didn't do anything else.

mauricioszabo avatar Dec 06 '23 17:12 mauricioszabo

Thanks @mauricioszabo for confirming this in the new Pharo version; I have updated the title as the problem is obviously not specific to one version of Pharo. @Ducasse FYA

mydoghasworms avatar Jan 08 '24 07:01 mydoghasworms

Launcher is not based on Pharo12 yet.

Could you please check with Pharo 12 following https://get.pharo.org

curl https://get.pharo.org/64/120+vm | bash
pharo-ui Pharo.image

astares avatar Jan 08 '24 07:01 astares