IME does not work properly on a wlroots based wayland compositor #114210

Open
opened 2023-10-27 21:22:38 +02:00 by OctopusET · 3 comments

System Information
Operating system: Linux-6.5.9-arch2-1-x86_64-with-glibc2.38 64 Bits, WAYLAND UI
Graphics card: AMD Radeon Graphics (renoir, LLVM 16.0.6, DRM 3.54, 6.5.9-arch2-1) AMD 4.6 (Core Profile) Mesa 23.2.1-arch1.2

Blender Version
Broken: version: 4.1.0 Alpha, branch: Unknown, commit date: Unknown Unknown, hash: Unknown (git commit d31c61edee main branch)
Worked: never worked

Short description of error
IME support does not work properly with wlroots-based wayland compositors such as sway.
Text is typed twice and deleting does not work. Other keys like backspace or esc do not work either, and other input languages are ignored even if I switch to them. Sometimes all text is removed after I move to another text field (First video).

Tested environment:
Fcitx5 version: 5.1.1
Fcitx5 modules: anthy (5.1.1), hangul(5.1.0)
Sway version: 1.8.1
Wlroots version: 0.16.2

Exact steps for others to reproduce the error

  1. Get blender build with this commit: a38a49b073
  2. Open up blender on wayland system with IME
  3. try typing some text
**System Information** Operating system: Linux-6.5.9-arch2-1-x86_64-with-glibc2.38 64 Bits, WAYLAND UI Graphics card: AMD Radeon Graphics (renoir, LLVM 16.0.6, DRM 3.54, 6.5.9-arch2-1) AMD 4.6 (Core Profile) Mesa 23.2.1-arch1.2 **Blender Version** Broken: version: 4.1.0 Alpha, branch: Unknown, commit date: Unknown Unknown, hash: `Unknown` (git commit d31c61edeeebf7bc5f7f111185f775390c3686b1 main branch) Worked: never worked **Short description of error** IME support does not work properly with wlroots-based wayland compositors such as sway. Text is typed twice and deleting does not work. Other keys like backspace or esc do not work either, and other input languages are ignored even if I switch to them. Sometimes all text is removed after I move to another text field (First video). Tested environment: Fcitx5 version: 5.1.1 Fcitx5 modules: anthy (5.1.1), hangul(5.1.0) Sway version: 1.8.1 Wlroots version: 0.16.2 **Exact steps for others to reproduce the error** 1. Get blender build with this commit: https://projects.blender.org/blender/blender/commit/a38a49b073f582a0f6ddcca392f2760afdc4d5ed 2. Open up blender on wayland system with IME 3. try typing some text
OctopusET added the
Priority
Normal
Type
Report
Status
Needs Triage
labels 2023-10-27 21:22:39 +02:00
Author

Blender was crashed with this error when I tested it. But I couldn't reproduce it.
It happened when I clicked on the text field filled with "TexDraw" on the Texture Paint tab.

/usr/lib/libasan.so.8(backtrace+0x7a) [0x7f6575c73a2a]
./blender() [0x43d6973]
./blender() [0x3e1e9fd]
./blender() [0x7c02044]
./blender() [0x7c04a55]
./blender() [0x7c5531a]
./blender() [0x7c15408]
./blender() [0x7c518d8]
./blender() [0x7c5ffcb]
./blender() [0x7c7993a]
./blender() [0x447016f]
./blender() [0x44906ae]
./blender() [0x4491aa9]
./blender() [0x4498bee]
./blender() [0x4499006]
./blender() [0x449c9a2]
./blender() [0x444a7fb]
./blender() [0x89c0a5]
/usr/lib/libc.so.6(+0x27cd0) [0x7f656c045cd0]
/usr/lib/libc.so.6(__libc_start_main+0x8a) [0x7f656c045d8a]
./blender() [0x89b355]
BLI_assert failed: source/blender/editors/interface/interface_handlers.cc:3394, ui_textedit_ime_begin(), at 'win->ime_data == nullptr'
[1]    110460 IOT instruction (core dumped)  ./blender-launcher
./blender-launcher  90.68s user 25.40s system 8% cpu 24:01.78 total
Blender was crashed with this error when I tested it. But I couldn't reproduce it. It happened when I clicked on the text field filled with "TexDraw" on the Texture Paint tab. ``` /usr/lib/libasan.so.8(backtrace+0x7a) [0x7f6575c73a2a] ./blender() [0x43d6973] ./blender() [0x3e1e9fd] ./blender() [0x7c02044] ./blender() [0x7c04a55] ./blender() [0x7c5531a] ./blender() [0x7c15408] ./blender() [0x7c518d8] ./blender() [0x7c5ffcb] ./blender() [0x7c7993a] ./blender() [0x447016f] ./blender() [0x44906ae] ./blender() [0x4491aa9] ./blender() [0x4498bee] ./blender() [0x4499006] ./blender() [0x449c9a2] ./blender() [0x444a7fb] ./blender() [0x89c0a5] /usr/lib/libc.so.6(+0x27cd0) [0x7f656c045cd0] /usr/lib/libc.so.6(__libc_start_main+0x8a) [0x7f656c045d8a] ./blender() [0x89b355] BLI_assert failed: source/blender/editors/interface/interface_handlers.cc:3394, ui_textedit_ime_begin(), at 'win->ime_data == nullptr' [1] 110460 IOT instruction (core dumped) ./blender-launcher ./blender-launcher 90.68s user 25.40s system 8% cpu 24:01.78 total ```
Jesse Yurkovich added the
Platform
Linux
label 2023-10-27 21:27:53 +02:00
Author

This issue is different with #114208 because this issue is you can at least test blender has some conntection with IME.

This issue is different with https://projects.blender.org/blender/blender/issues/114208 because this issue is you can at least test blender has some conntection with IME.
Author

This patch a38a49b073 is using text-input-unstable-v3
And wlroots also supports text-input-unstable-v3

Reference: https://gitlab.freedesktop.org/wayland/wayland-protocols/-/issues/39#implementation-matrix

This patch https://projects.blender.org/blender/blender/commit/a38a49b073f582a0f6ddcca392f2760afdc4d5ed is using `text-input-unstable-v3` And wlroots also supports `text-input-unstable-v3` Reference: https://gitlab.freedesktop.org/wayland/wayland-protocols/-/issues/39#implementation-matrix
Pratik Borhade added the
Interest
Wayland
label 2023-12-14 07:18:39 +01:00
Iliya Katushenock added the
Interest
User Interface
label 2024-04-07 22:14:49 +02:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
1 Participants
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: blender/blender#114210
No description provided.