4
15
Fork
You've already forked app
3

Visual Artifacts in Tauri Apps on Linux #22

Open
opened 2026年07月07日 16:44:47 +02:00 by avigatori · 0 comments

The Issue

I've been experiencing graphical glitches that appear randomly. They mostly seem to surface as different parts of the app's UI being superimposed on random locations.

At first I was sure, that this is caused by my crappy drivers specifically, however, I found out that this is a known bug with GtkWebView and affects Tauri apps: https://v2.tauri.app/de/develop/debug/linux-graphics/

Here is a list of glitches and when they appeared, not sure how helpful this is:

  • After I had collapsed the "Feature Requests" headline in the screenshot
  • After I switched from the Source Edit view back to the Visual Edit view
    • Screenshot: image
    • Hint: the #imn towards the bottom shouldn't be there
  • After I had deleted the numbered list (+) and replaced it by a list character -
    • Screenshot: pasted-1782998727333
    • Hint: There's another bar below the highlighted last line in the same color
  • After InkyCap recognized a headline element
  • After indenting a bullet point

Another curious thing: the artifacts were somewhat persistent. Scrolling the view didn't make them disappear. However, they would disappear after taking a screenshot i.e. they appeared in the screenshot still, but were gone from the app.

Reproduction

I don't think this is possible unless one has access to a system with said driver bugs.

Resolution

In my case it helped to set this environment variable WEBKIT_DISABLE_DMABUF_RENDERER=1

System

OS: Guix System (Linux 7.0.14)
Graphics Platform: Wayland
Desktop Environment: KDE Plasma 6.5.5
GPU: GeForce GTX 760
GPU-Driver: Nouveau

Suggestion

Maybe there could be a toggle in the setting to disable DMABUF rendering, with the info that one should try this if there are graphical glitches.

# The Issue I've been experiencing graphical glitches that appear randomly. They mostly seem to surface as different parts of the app's UI being superimposed on random locations. At first I was sure, that this is caused by my crappy drivers specifically, however, I found out that this is a known bug with GtkWebView and affects Tauri apps: https://v2.tauri.app/de/develop/debug/linux-graphics/ Here is a list of glitches and when they appeared, not sure how helpful this is: - After I had collapsed the "Feature Requests" headline in the screenshot - Screenshot: ![pasted-1782996412381](/attachments/5af58911-0760-41a0-95c1-c606397a2a1d) - After I switched from the `Source Edit` view back to the `Visual Edit ` view - Screenshot: ![image](/attachments/9ce5c3eb-b75e-499b-9e6c-5a6574796ff5) - Hint: the `#imn` towards the bottom shouldn't be there - After I had deleted the numbered list (`+`) and replaced it by a list character `-` - Screenshot: ![pasted-1782998727333](/attachments/bf6368dc-7aa5-4873-aad2-8f3f03398cef) - Hint: There's another bar below the highlighted last line in the same color - After InkyCap recognized a headline element - Screenshot: ![pasted-1782999461969](/attachments/05ca150e-7f5c-48c7-96b6-931dd69950e5) - After indenting a bullet point - Screenshot: ![pasted-1783000180170](/attachments/ccd36541-81f1-4cbf-92f3-a43a4a4eaf67) - Note: the one below the `#task(..)` line Another curious thing: the artifacts were somewhat persistent. Scrolling the view didn't make them disappear. However, they would disappear after taking a screenshot i.e. they appeared in the screenshot still, but were gone from the app. # Reproduction I don't think this is possible unless one has access to a system with said driver bugs. # Resolution In my case it helped to set this environment variable `WEBKIT_DISABLE_DMABUF_RENDERER=1` # System **OS**: Guix System (Linux 7.0.14) **Graphics Platform**: Wayland **Desktop Environment**: KDE Plasma 6.5.5 **GPU**: GeForce GTX 760 **GPU-Driver**: Nouveau # Suggestion Maybe there could be a toggle in the setting to disable DMABUF rendering, with the info that one should try this if there are graphical glitches.
Sign in to join this conversation.
No Branch/Tag specified
main
v26.7.3
v26.7.2
v26.6.18
v26.6.16
v26.6.14
v26.6.12
26.6.10
v26.6.10
v26.6.8
26.6.6
v26.6.2
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
InkyCap/app#22
Reference in a new issue
InkyCap/app
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?