Crash in render-mode while texture painting #55488

Closed
opened 2018-06-14 20:20:23 +02:00 by Martin · 14 comments

System Information
Operating system and graphics card

W10 64
NVIDIA GeForce GTX 1070

Northbridge Intel Haswell-E rev. 02
Southbridge Intel X99 rev. 05
Graphic Interface PCI-Express
PCI-E Link Width x8
PCI-E Max Link Width x16
Memory Type DDR4
Memory Size 32 GBytes
Channels Quad
Memory Frequency 1333.1 MHz (1:20)
CAS# latency (CL) 16.0
RAS# to CAS# delay (tRCD) 18
RAS# Precharge (tRP) 18
Cycle Time (tRAS) 35
Row Refresh Cycle Time (tRFC) 347
Command Rate (CR) 2T
tCCD 4
tCCD_L 6
tCCD_WR 4
tCCD_WR_L 6
Uncore Frequency 2699.4 MHz
Host Bridge 0x2F00

Blender Version
Broken: (example: 2.69.7 4b206af, see splash screen)
2.79 78a8d36 2018-06-11 13:40
(2.8 too)
Worked: (optional)

Short description of error

Crash while playing with Texture Paint in Rendered-Mode.

Exact steps for others to reproduce the error
Based on a (as simple as possible) attached .blend file with minimum amount of steps

Load file.
switch to Texture-Paint.
switch to rendered (method of displaying).
draw on cube.
switch between rendered and other modes (wireframe, material etc) back to rendered.
draw on cube

wtest1.blend

**System Information** Operating system and graphics card W10 64 NVIDIA GeForce GTX 1070 Northbridge Intel Haswell-E rev. 02 Southbridge Intel X99 rev. 05 Graphic Interface PCI-Express PCI-E Link Width x8 PCI-E Max Link Width x16 Memory Type DDR4 Memory Size 32 GBytes Channels Quad Memory Frequency 1333.1 MHz (1:20) CAS# latency (CL) 16.0 RAS# to CAS# delay (tRCD) 18 RAS# Precharge (tRP) 18 Cycle Time (tRAS) 35 Row Refresh Cycle Time (tRFC) 347 Command Rate (CR) 2T tCCD 4 tCCD_L 6 tCCD_WR 4 tCCD_WR_L 6 Uncore Frequency 2699.4 MHz Host Bridge 0x2F00 **Blender Version** Broken: (example: 2.69.7 4b206af, see splash screen) 2.79 78a8d36 2018-06-11 13:40 (2.8 too) Worked: (optional) **Short description of error** Crash while playing with Texture Paint in Rendered-Mode. **Exact steps for others to reproduce the error** Based on a (as simple as possible) attached .blend file with minimum amount of steps Load file. switch to Texture-Paint. switch to rendered (method of displaying). draw on cube. switch between rendered and other modes (wireframe, material etc) back to rendered. draw on cube [wtest1.blend](https://archive.blender.org/developer/F3695763/wtest1.blend)
Author

Added subscriber: @Wigand

Added subscriber: @Wigand
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Unfortunately I cannot reproduce the issue (on linux).

maybe you could run blender from the commandline with the --debug option and attach the output as a txt file here?

Marking as incomplete until we have an answer...

Unfortunately I cannot reproduce the issue (on linux). maybe you could run blender from the commandline with the `--debug` option and attach the output as a txt file here? Marking as incomplete until we have an answer...
Author
[blendercrash.txt](https://archive.blender.org/developer/F3701829/blendercrash.txt)

Added subscriber: @mont29

Added subscriber: @mont29

Does this still happen with current branches (blender2.8 and master) builds?

Does this still happen with current branches (blender2.8 and master) builds?
Author

Yes, the same crash.
With
2.8
2018-07-11 21:13
hash d28d202

People from the german forum(https://www.3d-ring.de/3d/forum.php?post_id=36419&pl=10#top),
animelix, Tiles and Wigand
got the same crash with different versions.

Yes, the same crash. With 2.8 2018-07-11 21:13 hash d28d202 People from the german forum(https://www.3d-ring.de/3d/forum.php?post_id=36419&pl=10#top), animelix, Tiles and Wigand got the same crash with different versions.

We need someone on windows to check that…

We need someone on windows to check that…

Added subscriber: @antoniov

Added subscriber: @antoniov

I can reproduce in Windows 10 64 bits - NVIDIA GTX 660 with the compilation of source code of July 25th at 19:00

Read blend: C:\Users\Antonio\Downloads\wtest1.blend
18: BLI_system_backtrace - 0xCB003F50
17: BKE_undosys_step_push_with_type - 0xCA833230
16: BKE_undosys_step_push - 0xCA8336A0
15: ED_image_undo_push_end - 0xC9E4D620
14: paint_stroke_done - 0xC9E86E30
13: stroke_done - 0xC9EC9F90
12: paint_stroke_modal - 0xC9EC71B0
11: wm_handler_operator_call - 0xC978BE20
10: wm_handlers_do_intern - 0xC978CD70
9: wm_handlers_do - 0xC978DBF0
8: wm_event_do_handlers - 0xC97865B0
7: WM_main - 0xC9761340
6: main - 0xC9759900
5: invoke_main - 0xCE8704D0
4: __scrt_common_main_seh - 0xCE870290
3: __scrt_common_main - 0xCE870270
2: mainCRTStartup - 0xCE870590
1: BaseThreadInitThunk - 0x9B123020
0: RtlUserThreadStart - 0x9C4E1410
BLI_assert failed: c:\myblender\blender8\blender280\source\blender\blenkernel\intern\undo_system.c:447, BKE_undosys_step_push_with_type(), at '(strcmp(us->name, name_internal) == 0)'
Error : EXCEPTION_ACCESS_VIOLATION
Address : 0x00007FF6CB006295
Module : C:\MyBlender\Blender8Bin_17\bin\Debug\blender.exe
Writing: /tmp/\wtest1.crash.txt

I can reproduce in Windows 10 64 bits - NVIDIA GTX 660 with the compilation of source code of July 25th at 19:00 Read blend: C:\Users\Antonio\Downloads\wtest1.blend 18: BLI_system_backtrace - 0xCB003F50 17: BKE_undosys_step_push_with_type - 0xCA833230 16: BKE_undosys_step_push - 0xCA8336A0 15: ED_image_undo_push_end - 0xC9E4D620 14: paint_stroke_done - 0xC9E86E30 13: stroke_done - 0xC9EC9F90 12: paint_stroke_modal - 0xC9EC71B0 11: wm_handler_operator_call - 0xC978BE20 10: wm_handlers_do_intern - 0xC978CD70 9: wm_handlers_do - 0xC978DBF0 8: wm_event_do_handlers - 0xC97865B0 7: WM_main - 0xC9761340 6: main - 0xC9759900 5: invoke_main - 0xCE8704D0 4: __scrt_common_main_seh - 0xCE870290 3: __scrt_common_main - 0xCE870270 2: mainCRTStartup - 0xCE870590 1: BaseThreadInitThunk - 0x9B123020 0: RtlUserThreadStart - 0x9C4E1410 BLI_assert failed: c:\myblender\blender8\blender280\source\blender\blenkernel\intern\undo_system.c:447, BKE_undosys_step_push_with_type(), at '(strcmp(us->name, name_internal) == 0)' Error : EXCEPTION_ACCESS_VIOLATION Address : 0x00007FF6CB006295 Module : C:\MyBlender\Blender8Bin_17\bin\Debug\blender.exe Writing: /tmp/\wtest1.crash.txt

Doing some debug the problem is in undo_system.c line 457

if (us->name[0] == '\0') {
	BLI_strncpy(us->name, name, sizeof(us->name));
  }

The value of "name" var is NULL, so the BLI_* func fails due NULL Pointer.

Doing some debug the problem is in undo_system.c line 457 ``` if (us->name[0] == '\0') { ``` BLI_strncpy(us->name, name, sizeof(us->name)); } The value of "name" var is NULL, so the BLI_* func fails due NULL Pointer.

Added subscriber: @brecht

Added subscriber: @brecht

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Brecht Van Lommel self-assigned this 2019-04-04 05:01:59 +02:00

This appears to be fixed now.

This appears to be fixed now.
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
5 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#55488
No description provided.