Regression: Crash when Using IME in the Fields Existing more than 24 Bytes Text #117632

Closed
opened 2024-01-29 15:23:45 +01:00 by Ruri-Res · 4 comments

System Information
Operating system: Windows 10
Graphics card:

Blender Version
Broken: 4.1.0 Alpha, branch: main, commit date: 2024-01-23 00:20, hash:b5a9c98e04fa
Worked: 4.1.0 Alpha, branch: main, commit date: 2024-01-22 11:27, hash:29aaa2922d1d

Short description of error
When there are more than 24 bytes text in a text input field, blender will crash after "IME composition" (it may give an UI redraw?) in it.
Test with IME: "Rime Weasel", "微软拼音"(Microsoft Pinyin)

Exact steps for others to reproduce the error
MoreThan24Bytes.png

**System Information** Operating system: Windows 10 Graphics card: **Blender Version** Broken: 4.1.0 Alpha, branch: main, commit date: 2024-01-23 00:20, hash:b5a9c98e04fa Worked: 4.1.0 Alpha, branch: main, commit date: 2024-01-22 11:27, hash:29aaa2922d1d **Short description of error** When there are more than 24 bytes text in a text input field, blender will crash after "IME composition" (it may give an UI redraw?) in it. Test with IME: "Rime Weasel", "微软拼音"(Microsoft Pinyin) **Exact steps for others to reproduce the error** ![MoreThan24Bytes.png](/attachments/091ed49a-e362-4258-b15a-9d9602832102)
Ruri-Res added the
Priority
Normal
Status
Needs Triage
Type
Report
labels 2024-01-29 15:23:45 +01:00
Member

Hi, can confirm the crash in release build. Debug lite/ninja builds are not crashing here.

Stack trace:
blender.exe         :0x00007FF6CE5B0F70  ui_but_update_ex
blender.exe         :0x00007FF6CE5DBA80  ui_do_but_textedit
blender.exe         :0x00007FF6CE5DB240  ui_do_but_TEX
blender.exe         :0x00007FF6CE5DC730  ui_do_button
blender.exe         :0x00007FF6CE5DE000  ui_handle_button_event
blender.exe         :0x00007FF6CE5E0690  ui_handler_region_menu
blender.exe         :0x00007FF6CE0242C0  wm_handlers_do_intern
blender.exe         :0x00007FF6CE0234B0  wm_handlers_do
blender.exe         :0x00007FF6CE01FDC0  wm_event_do_handlers
blender.exe         :0x00007FF6CE004640  WM_main
blender.exe         :0x00007FF6CDA08480  main
blender.exe         :0x00007FF6D0312CA4  __scrt_common_main_seh
KERNEL32.DLL        :0x00007FFF552F2560  BaseThreadInitThunk
ntdll.dll           :0x00007FFF566CAA30  RtlUserThreadStart
Hi, can confirm the crash in release build. Debug lite/ninja builds are not crashing here. ``` Stack trace: blender.exe :0x00007FF6CE5B0F70 ui_but_update_ex blender.exe :0x00007FF6CE5DBA80 ui_do_but_textedit blender.exe :0x00007FF6CE5DB240 ui_do_but_TEX blender.exe :0x00007FF6CE5DC730 ui_do_button blender.exe :0x00007FF6CE5DE000 ui_handle_button_event blender.exe :0x00007FF6CE5E0690 ui_handler_region_menu blender.exe :0x00007FF6CE0242C0 wm_handlers_do_intern blender.exe :0x00007FF6CE0234B0 wm_handlers_do blender.exe :0x00007FF6CE01FDC0 wm_event_do_handlers blender.exe :0x00007FF6CE004640 WM_main blender.exe :0x00007FF6CDA08480 main blender.exe :0x00007FF6D0312CA4 __scrt_common_main_seh KERNEL32.DLL :0x00007FFF552F2560 BaseThreadInitThunk ntdll.dll :0x00007FFF566CAA30 RtlUserThreadStart ```
Hans Goudey self-assigned this 2024-01-31 05:28:12 +01:00
Member

Actually without a Windows build myself, not sure I can solve this without the ability to reproduce it. Maybe someone with a debug build could give a more specific stack trace with line numbers?

Actually without a Windows build myself, not sure I can solve this without the ability to reproduce it. Maybe someone with a debug build could give a more specific stack trace with line numbers?
Member

Manage to replicate in debug build (with_input_ime was off earlier). Attaching full logs:

 	blender.exe!std::_Narrow_char_traits<char,int>::assign(char & _Left, const char & _Right) Line 444	C++
 	blender.exe!std::string::_Eos(const unsigned __int64 _New_size) Line 4824	C++
 	blender.exe!std::string::clear() Line 3672	C++
>	blender.exe!ui_but_update_ex(uiBut * but, const bool validate) Line 3920	C++
 	blender.exe!ui_but_update_edited(uiBut * but) Line 3930	C++
 	blender.exe!ui_do_but_textedit(bContext * C, uiBlock * block, uiBut * but, uiHandleButtonData * data, const wmEvent * event) Line 4065	C++
 	blender.exe!ui_do_but_TEX(bContext * C, uiBlock * block, uiBut * but, uiHandleButtonData * data, const wmEvent * event) Line 4782	C++
 	blender.exe!ui_do_button(bContext * C, uiBlock * block, uiBut * but, const wmEvent * event) Line 8206	C++
 	blender.exe!ui_handle_button_event(bContext * C, const wmEvent * event, uiBut * but) Line 9506	C++
 	blender.exe!ui_handler_region_menu(bContext * C, const wmEvent * event, void * __formal) Line 11666	C++
 	blender.exe!wm_handler_ui_call(bContext * C, wmEventHandler_UI * handler, const wmEvent * event, const bool always_pass) Line 833	C++
 	blender.exe!wm_handlers_do_intern(bContext * C, wmWindow * win, wmEvent * event, ListBase * handlers) Line 3331	C++
 	blender.exe!wm_handlers_do(bContext * C, wmEvent * event, ListBase * handlers) Line 3450	C++
 	blender.exe!wm_event_do_handlers(bContext * C) Line 4077	C++
 	blender.exe!WM_main(bContext * C) Line 616	C++
 	blender.exe!main(int argc, const char * * __formal) Line 578	C++
Manage to replicate in debug build (`with_input_ime` was off earlier). Attaching full logs: ``` blender.exe!std::_Narrow_char_traits<char,int>::assign(char & _Left, const char & _Right) Line 444 C++ blender.exe!std::string::_Eos(const unsigned __int64 _New_size) Line 4824 C++ blender.exe!std::string::clear() Line 3672 C++ > blender.exe!ui_but_update_ex(uiBut * but, const bool validate) Line 3920 C++ blender.exe!ui_but_update_edited(uiBut * but) Line 3930 C++ blender.exe!ui_do_but_textedit(bContext * C, uiBlock * block, uiBut * but, uiHandleButtonData * data, const wmEvent * event) Line 4065 C++ blender.exe!ui_do_but_TEX(bContext * C, uiBlock * block, uiBut * but, uiHandleButtonData * data, const wmEvent * event) Line 4782 C++ blender.exe!ui_do_button(bContext * C, uiBlock * block, uiBut * but, const wmEvent * event) Line 8206 C++ blender.exe!ui_handle_button_event(bContext * C, const wmEvent * event, uiBut * but) Line 9506 C++ blender.exe!ui_handler_region_menu(bContext * C, const wmEvent * event, void * __formal) Line 11666 C++ blender.exe!wm_handler_ui_call(bContext * C, wmEventHandler_UI * handler, const wmEvent * event, const bool always_pass) Line 833 C++ blender.exe!wm_handlers_do_intern(bContext * C, wmWindow * win, wmEvent * event, ListBase * handlers) Line 3331 C++ blender.exe!wm_handlers_do(bContext * C, wmEvent * event, ListBase * handlers) Line 3450 C++ blender.exe!wm_event_do_handlers(bContext * C) Line 4077 C++ blender.exe!WM_main(bContext * C) Line 616 C++ blender.exe!main(int argc, const char * * __formal) Line 578 C++ ```
Member

Did git bisect, caused by 089c389b5c

Did git bisect, caused by 089c389b5c00ec2794299a18fd5b05dd7c4c54cc
Pratik Borhade changed title from Crash when Using IME in the Fields Existing more than 24 Bytes Text to Regression: Crash when Using IME in the Fields Existing more than 24 Bytes Text 2024-02-02 07:49:40 +01:00
Blender Bot added
Status
Resolved
and removed
Status
Confirmed
labels 2024-02-08 05:53:38 +01: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
3 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#117632
No description provided.