[Ubuntu MATE] [Nimbus Look-and-Feel] Visual glitches on buttons

Support for Ubuntu and other Desktop Linux distributions
Post Reply
Sjonnie
Posts: 10
Joined: 23 Apr 2019, 16:56

[Ubuntu MATE] [Nimbus Look-and-Feel] Visual glitches on buttons

Post by Sjonnie » 20 Jul 2019, 10:42

Hi All,

Since a couple of weeks all the buttons in the interface are "garbled". Below an example of match and rename button:

Image

I have uninstalled and re-installed FileBot but that didn't help.

I have searched this forum but could not find an answer.

Running filebot -script fn:sysinfo results in this:

Code: Select all

FileBot 4.8.5 (r6224)
JNA Native: 5.2.2
MediaInfo: 18.12
7-Zip-JBinding: 9.20
Chromaprint: java.io.IOException: Cannot run program "/usr/share/filebot/lib/fpcalc": error=13, Permission denied
Extended Attributes: OK
Unicode Filesystem: OK
GVFS: PlatformGVFS [/run/user/1000/gvfs]
Script Bundle: 2019-05-15 (r565)
Groovy: 2.5.6
JRE: OpenJDK Runtime Environment 11.0.3
JVM: 64-bit OpenJDK 64-Bit Server VM
CPU/MEM: 4 Core / 3 GB Max Memory / 33 MB Used Memory
OS: Linux (amd64)
HW: Linux UbuntuMate 4.15.0-54-generic #58-Ubuntu SMP Mon Jun 24 10:55:24 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
DATA: /home/[my_username]/.filebot
Package: DEB
License: FileBot License P7669975 (Valid-Until: 2020-04-26)
Done ヾ(@⌒ー⌒@)ノ
Running filebot -script fn:sysenv gives me this:

Code: Select all

 Environment Variables #
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
LC_MEASUREMENT: nl_NL.UTF-8
XAUTHORITY: /home/[my_username]/.Xauthority
XMODIFIERS: @im=ibus
LC_TELEPHONE: nl_NL.UTF-8
XDG_DATA_DIRS: /usr/share/mate:/usr/share/mate:/usr/local/share:/usr/share:/var/lib/snapd/desktop
GDMSESSION: mate
MANDATORY_PATH: /usr/share/gconf/mate.mandatory.path
LC_TIME: nl_NL.UTF-8
TEXTDOMAINDIR: /usr/share/locale/
GTK_IM_MODULE: xim
DBUS_SESSION_BUS_ADDRESS: unix:path=/run/user/1000/bus
DEFAULTS_PATH: /usr/share/gconf/mate.default.path
XDG_CURRENT_DESKTOP: MATE
QT_AUTO_SCREEN_SCALE_FACTOR: 0
SSH_AGENT_PID: 3605
COLORTERM: truecolor
QT4_IM_MODULE: xim
LC_PAPER: nl_NL.UTF-8
SESSION_MANAGER: local/UbuntuMate:@/tmp/.ICE-unix/3480,unix/UbuntuMate:/tmp/.ICE-unix/3480
LOGNAME: [my_username]
PWD: /home/[my_username]
IM_CONFIG_PHASE: 2
LANGUAGE: en_US
WINDOWID: 52428807
SHELL: /bin/bash
LESSOPEN: | /usr/bin/lesspipe %s
QT_SCALE_FACTOR: 1
LC_ADDRESS: nl_NL.UTF-8
GTK_MODULES: appmenu-gtk-module:gail:atk-bridge:canberra-gtk-module
CLUTTER_IM_MODULE: xim
MATE_DESKTOP_SESSION_ID: this-is-deprecated
XDG_SESSION_PATH: /org/freedesktop/DisplayManager/Session0
TEXTDOMAIN: im-config
XDG_SESSION_DESKTOP: mate
LS_COLORS: rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
SHLVL: 1
LC_IDENTIFICATION: nl_NL.UTF-8
LESSCLOSE: /usr/bin/lesspipe %s %s
LC_MONETARY: nl_NL.UTF-8
COMPIZ_CONFIG_PROFILE: mate
QT_IM_MODULE: ibus
TERM: xterm
XDG_CONFIG_DIRS: /etc/xdg/xdg-mate:/etc/xdg
LANG: en_US.UTF-8
XDG_SEAT_PATH: /org/freedesktop/DisplayManager/Seat0
XDG_SESSION_ID: c2
XDG_SESSION_TYPE: x11
DISPLAY: :0.0
LC_NAME: nl_NL.UTF-8
_: /usr/bin/filebot
GDM_LANG: en_US
UBUNTU_MENUPROXY: 1
XDG_GREETER_DATA_DIR: /var/lib/lightdm-data/[my_username]
GPG_AGENT_INFO: /run/user/1000/gnupg/S.gpg-agent:0:1
DESKTOP_SESSION: mate
USER: [my_username]
VTE_VERSION: 5202
QT_ACCESSIBILITY: 1
LC_NUMERIC: nl_NL.UTF-8
SSH_AUTH_SOCK: /run/user/1000/keyring/ssh
XDG_SEAT: seat0
GTK_OVERLAY_SCROLLING: 0
QT_QPA_PLATFORMTHEME: gtk2
XDG_VTNR: 7
XDG_RUNTIME_DIR: /run/user/1000
HOME: /home/[my_username]


# Java System Properties #
awt.toolkit: sun.awt.X11.XToolkit
java.specification.version: 11
sun.cpu.isalist: 
sun.jnu.encoding: UTF-8
java.class.path: /usr/share/filebot/jar/filebot.jar
net.filebot.AcoustID.fpcalc: /usr/share/filebot/lib/fpcalc
java.vm.vendor: Oracle Corporation
grape.root: /home/[my_username]/.filebot/grape
useExtendedFileAttributes: true
sun.arch.data.model: 64
jna.library.path: /usr/share/filebot/lib
java.vendor.url: http://java.oracle.com/
user.timezone: 
jna.nounpack: true
os.name: Linux
java.vm.specification.version: 11
sun.net.client.defaultReadTimeout: 60000
jna.boot.library.path: /usr/share/filebot/lib
sun.java.launcher: SUN_STANDARD
user.country: US
sun.boot.library.path: /usr/lib/jvm/java-11-openjdk-amd64/lib
sun.java.command: /usr/share/filebot/jar/filebot.jar -script fn:sysenv
jdk.debug: release
useGVFS: true
sun.cpu.endian: little
user.home: /home/[my_username]
user.language: en
java.specification.vendor: Oracle Corporation
jdk.module.path: /usr/share/filebot/mod
java.version.date: 2019-04-16
java.home: /usr/lib/jvm/java-11-openjdk-amd64
file.separator: /
java.vm.compressedOopsMode: Zero based
line.separator: 

unixfs: false
useCreationDate: false
java.specification.name: Java Platform API Specification
java.vm.specification.vendor: Oracle Corporation
java.awt.graphicsenv: sun.awt.X11GraphicsEnvironment
application.cache: /home/[my_username]/.filebot/cache
net.filebot.UserFiles.fileChooser: JavaFX
http.agent: FileBot/4.8.5
sun.management.compiler: HotSpot 64-Bit Tiered Compilers
java.runtime.version: 11.0.3+7-Ubuntu-1ubuntu218.04.1
user.name: [my_username]
sun.net.client.defaultConnectTimeout: 10000
path.separator: :
java.net.useSystemProxies: true
os.version: 4.15.0-54-generic
jna.nosys: true
java.runtime.name: OpenJDK Runtime Environment
file.encoding: UTF-8
java.vm.name: OpenJDK 64-Bit Server VM
java.vendor.url.bug: http://bugreport.java.com/bugreport/
java.io.tmpdir: /home/[my_username]/.filebot/tmp
swing.crossplatformlaf: javax.swing.plaf.nimbus.NimbusLookAndFeel
java.version: 11.0.3
user.dir: /home/[my_username]
os.arch: amd64
java.vm.specification.name: Java Virtual Machine Specification
net.filebot.gio.GVFS: /run/user/1000/gvfs
java.awt.printerjob: sun.print.PSPrinterJob
sun.os.patch.level: unknown
application.deployment: deb
java.library.path: /usr/share/filebot/lib
java.vendor: Oracle Corporation
java.vm.info: mixed mode, sharing
java.vm.version: 11.0.3+7-Ubuntu-1ubuntu218.04.1
application.dir: /home/[my_username]/.filebot
sun.io.unicode.encoding: UnicodeLittle
org.apache.commons.logging.Log: org.apache.commons.logging.impl.NoOpLog
java.class.version: 55.0


# Arguments #
args[0] = -script
args[1] = fn:sysenv


Done ヾ(@⌒ー⌒@)ノ
If anyone has any thoughts...

Greetz,

Sjonnie

User avatar
rednoah
The Source
Posts: 16413
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: FileBot 4.8.5 buttons "garbled" (Ubunut 18.04)

Post by rednoah » 20 Jul 2019, 10:50

1.
Most likely a graphics acceleration problem. A Google Search might help:
https://superuser.com/a/1325630/349721

Also, since you're using Ubuntu MATE it seems some Gnome dependencies might be missing, otherwise FileBot would use GTK look rather than defaulting to Nimbus look:
https://youtu.be/sEFP3CsntNs


2.
Since Nimbus look doesn't work well in this case, you could try a different look and see if that works around the problem:
viewtopic.php?f=3&t=9827


3.
The SNAP package is also worth a try, if the DEB package doesn't work for some reason:
viewtopic.php?f=11&t=5984
:idea: Please read the FAQ and How to Request Help.

Sjonnie
Posts: 10
Joined: 23 Apr 2019, 16:56

Re: FileBot 4.8.5 buttons "garbled" (Ubuntu 18.04)

Post by Sjonnie » 20 Jul 2019, 11:25

Let me start by thanking you for your swift reply!

1.
I don't understand what I should do with the post on SuperUser. How am I to change the hardware acceleration? Note that I am using Compiz on my machine.

Neither synaptic or apt indicate I am missing packages. I have updated twice but nothing showed.

2.
Darcula theme results in FileBot not starting at all. Metal works. I do however prefer Nimbus because it integrates well into my desktop environment.

3.
I tried the snap package but after starting FileBot as a snap i got this:
Image

I am a bit lost here.

User avatar
rednoah
The Source
Posts: 16413
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: FileBot 4.8.5 buttons "garbled" (Ubuntu 18.04)

Post by rednoah » 20 Jul 2019, 11:35

1.
We can run filebot with custom system properties from console like so:

Code: Select all

export JAVA_OPTS="-Dsun.java2d.opengl=true -Dsun.java2d.d3d=false -Dsun.java2d.noddraw=true"
filebot

EDIT:

Here's some more options worth trying, to see if any of them make a difference:
viewtopic.php?t=4917#p27529


2.
If it crashes on startup, then we'll want to run from console so we can see the error messages:

Code: Select all

export JAVA_OPTS="-Dnet.filebot.theme=Darcula"
filebot
:idea: Please read the FAQ and How to Request Help.

Sjonnie
Posts: 10
Joined: 23 Apr 2019, 16:56

Re: FileBot 4.8.5 buttons "garbled" (Ubuntu 18.04)

Post by Sjonnie » 20 Jul 2019, 12:07

Hi again,

1.
That works! :) And since I am a lazy sod I decided to modify /usr/share/filebot/bin/filebot.sh to include the options (look for $JAVA_OPTS)

Code: Select all

#!/bin/sh
FILEBOT_HOME="/usr/share/filebot"

if [ -z "$HOME" ]; then
	echo '$HOME must be set'
	exit 1
fi

# select application data folder
APP_DATA="$HOME/.filebot"
LIBRARY_PATH="$FILEBOT_HOME/lib"
MODULE_PATH="$FILEBOT_HOME/mod"

java -Dapplication.deployment=deb --module-path "$MODULE_PATH" --add-modules ALL-MODULE-PATH -Dnet.filebot.AcoustID.fpcalc="$LIBRARY_PATH/fpcalc" -Dunixfs=false -DuseExtendedFileAttributes=true -DuseCreationDate=false -Djava.net.useSystemProxies=true -Djna.nosys=true -Djna.nounpack=true --illegal-access=permit --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.function=ALL-UNNAMED --add-opens=java.base/java.util.regex=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.nio.file=ALL-UNNAMED --add-opens=java.base/java.nio.file.attribute=ALL-UNNAMED --add-opens=java.base/java.nio.channels=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.time=ALL-UNNAMED --add-opens=java.base/java.time.chrono=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.logging/java.util.logging=ALL-UNNAMED --add-opens=java.desktop/java.awt=ALL-UNNAMED --add-opens=java.desktop/sun.awt=ALL-UNNAMED --add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED -Djna.boot.library.path="$LIBRARY_PATH" -Djna.library.path="$LIBRARY_PATH" -Djava.library.path="$LIBRARY_PATH" -Dapplication.dir="$APP_DATA" -Dapplication.cache="$APP_DATA/cache" -Djava.io.tmpdir="$APP_DATA/tmp" -Dfile.encoding="UTF-8" -Dsun.jnu.encoding="UTF-8" -Dnet.filebot.UserFiles.fileChooser=JavaFX -DuseGVFS=true -Dnet.filebot.gio.GVFS="$XDG_RUNTIME_DIR/gvfs" $JAVA_OPTS -Dsun.java2d.opengl=true -Dsun.java2d.d3d=false -Dsun.java2d.noddraw=true $FILEBOT_OPTS -jar "$FILEBOT_HOME/jar/filebot.jar" "[email protected]"
I will keep an extra copy incase of an upgrade :mrgreen:

2.
Haven't tried this option because the first one works like a charm :)

Tx!

Greetz,

Sjonnie

User avatar
rednoah
The Source
Posts: 16413
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: FileBot 4.8.5 buttons "garbled" (Ubuntu 18.04)

Post by rednoah » 20 Jul 2019, 12:11

I'd create my own launcher script at /usr/local/bin/filebot like so:

Code: Select all

#!/bin/sh
export JAVA_OPTS="-Dsun.java2d.opengl=true"
/usr/share/filebot/bin/filebot.sh "[email protected]"
:idea: TAGS: Linux, Java Swing, Nimbus Look-and-Feel, button, visual artifacts, graphical issues
:idea: Please read the FAQ and How to Request Help.

Sjonnie
Posts: 10
Joined: 23 Apr 2019, 16:56

Re: FileBot 4.8.5 buttons "garbled" (Ubuntu 18.04)

Post by Sjonnie » 20 Jul 2019, 12:16

Hi,

You are right! I have removed the other two options and FileBot still starts up without visual artifacts.

Tx again!

EDIT: Your addition to create a new launcher is even better! No need to change anything after an upgrade.

EDIT2: bummer! The new launcher does not work. The visual artifacts are back. I have tried all possible syntax but no joy.

Greetz,

Sjonnie

Post Reply