Assert hit when splitting video sequencer area horizontally #99641

Closed
opened 2022-07-12 15:23:27 +02:00 by Pratik Borhade · 14 comments
Member

System Information
Operating system: Windows-10-10.0.22000-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 3050 Laptop GPU/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 471.41

Blender Version
Broken: version: 3.3.0 Alpha, bb3a538843
Worked: unsure

Short description of error
Assert hit when splitting video sequencer area

Exact steps for others to reproduce the error

  • Open attached .blend
  • A horizontal split by dragging from any corner seems to always result in a crash: manual

seq-assert.blend

Call Stack:
 	ucrtbased.dll!00007ffdcfa77475()	Unknown
 	ucrtbased.dll!00007ffdcfa77613()	Unknown
 	ucrtbased.dll!00007ffdcfa8d86d()	Unknown
>	blender.exe!_BLI_assert_abort() Line 47	C

 	blender.exe!BLI_rctf_sanitize(rctf * rect) Line 446	C
 	blender.exe!BLI_rctf_init(rctf * rect, float xmin, float xmax, float ymin, float ymax) Line 415	C
 	blender.exe!label_rect_init(const SeqChannelDrawContext * context, const int channel_index, const float used_width) Line 224	C
 	blender.exe!draw_channel_labels(const SeqChannelDrawContext * context, uiBlock * block, const int channel_index, const float used_width) Line 233	C
 	blender.exe!draw_channel_header(const SeqChannelDrawContext * context, uiBlock * block, const int channel_index) Line 299	C
 	blender.exe!draw_channel_headers(const SeqChannelDrawContext * context) Line 313	C
 	blender.exe!draw_channels(const bContext * C, ARegion * region) Line 364	C
 	blender.exe!sequencer_channel_region_draw(const bContext * C, ARegion * region) Line 992	C
 	blender.exe!ED_region_do_draw(bContext * C, ARegion * region) Line 551	C
 	blender.exe!wm_draw_window_offscreen(bContext * C, wmWindow * win, bool stereo) Line 945	C
 	blender.exe!wm_draw_window(bContext * C, wmWindow * win) Line 1114	C
 	blender.exe!wm_draw_update(bContext * C) Line 1339	C
 	blender.exe!WM_main(bContext * C) Line 638	C
 	blender.exe!main(int argc, const unsigned char * * UNUSED_argv_c) Line 551	C
 	[External Code]	
**System Information** Operating system: Windows-10-10.0.22000-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 3050 Laptop GPU/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 471.41 **Blender Version** Broken: version: 3.3.0 Alpha, bb3a53884394908ba34459c38d419e6c4abe6107 Worked: unsure **Short description of error** Assert hit when splitting video sequencer area **Exact steps for others to reproduce the error** - Open attached .blend - A horizontal split by dragging from any corner seems to always result in a crash: [manual ](https://docs.blender.org/manual/en/latest/interface/window_system/areas.html#splitting) [seq-assert.blend](https://archive.blender.org/developer/F13288823/seq-assert.blend) ```lines=18 Call Stack: ucrtbased.dll!00007ffdcfa77475() Unknown ucrtbased.dll!00007ffdcfa77613() Unknown ucrtbased.dll!00007ffdcfa8d86d() Unknown > blender.exe!_BLI_assert_abort() Line 47 C blender.exe!BLI_rctf_sanitize(rctf * rect) Line 446 C blender.exe!BLI_rctf_init(rctf * rect, float xmin, float xmax, float ymin, float ymax) Line 415 C blender.exe!label_rect_init(const SeqChannelDrawContext * context, const int channel_index, const float used_width) Line 224 C blender.exe!draw_channel_labels(const SeqChannelDrawContext * context, uiBlock * block, const int channel_index, const float used_width) Line 233 C blender.exe!draw_channel_header(const SeqChannelDrawContext * context, uiBlock * block, const int channel_index) Line 299 C blender.exe!draw_channel_headers(const SeqChannelDrawContext * context) Line 313 C blender.exe!draw_channels(const bContext * C, ARegion * region) Line 364 C blender.exe!sequencer_channel_region_draw(const bContext * C, ARegion * region) Line 992 C blender.exe!ED_region_do_draw(bContext * C, ARegion * region) Line 551 C blender.exe!wm_draw_window_offscreen(bContext * C, wmWindow * win, bool stereo) Line 945 C blender.exe!wm_draw_window(bContext * C, wmWindow * win) Line 1114 C blender.exe!wm_draw_update(bContext * C) Line 1339 C blender.exe!WM_main(bContext * C) Line 638 C blender.exe!main(int argc, const unsigned char * * UNUSED_argv_c) Line 551 C [External Code] ```
Author
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Author
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'

Added subscriber: @iss

Added subscriber: @iss

I was not able to reproduce - is this reproducible every time for you?

I was not able to reproduce - is this reproducible every time for you?
Author
Member

Changed status from 'Confirmed' to: 'Needs Triage'

Changed status from 'Confirmed' to: 'Needs Triage'
Author
Member

Yes, can repro it every time. I'll attach a screen recording (maybe that will help)

Yes, can repro it every time. I'll attach a screen recording (maybe that will help)

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'

I was able to reproduce now, but I had to do a few attempts. So no need for recording.

I was able to reproduce now, but I had to do a few attempts. So no need for recording.

@PratikPB2123 Can you still reproduce this? There have been some changes, but not sure if this could be resolved by them...

@PratikPB2123 Can you still reproduce this? There have been some changes, but not sure if this could be resolved by them...

Added subscriber: @sidd017

Added subscriber: @sidd017

A horizontal split by dragging from any corner seems to always result in a crash.
Vertical splitting seems to work correctly.

Checked in debugger and it seems NaN values are being generated while channel drawing.
seq_crash_nan.png
From what I can tell, channel_height gets initialized to 0 when the newly created sequencer area is too small.
This results in various divide by zero calculations in label_rect_init() which generate the NaN values seen in the screenshot.

A horizontal split by dragging from any corner seems to always result in a crash. Vertical splitting seems to work correctly. Checked in debugger and it seems `NaN` values are being generated while channel drawing. ![seq_crash_nan.png](https://archive.blender.org/developer/F13850464/seq_crash_nan.png) From what I can tell, `channel_height` gets initialized to 0 when the newly created sequencer area is too small. This results in various **divide by zero** calculations in `label_rect_init()` which generate the NaN values seen in the screenshot.
Author
Member

@iss, yes, can reproduce this.

@sidd017 's findings are also seems true


And Sorry, I totally missed your notification :)

@iss, yes, can reproduce this. @sidd017 's findings are also seems true - - - And Sorry, I totally missed your notification :)
Pratik Borhade changed title from Assert hit when splitting video sequencer area to Assert hit when splitting video sequencer area horizontally 2022-11-04 06:29:59 +01:00

This issue was referenced by bba6d28942

This issue was referenced by bba6d2894290244be847a6d4ee7722c82ec01c0e

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Richard Antalik self-assigned this 2022-11-04 21:06:00 +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
4 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#99641
No description provided.