Crash when starting playback while using JACK audio with A/V sync #49656
Labels
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
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
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#49656
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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?
To reproduce:
What's interesting: I can move the playhead within Ardour, and it's synced to Blender - no crashes. It only crashes if I start (or stop) playback from Ardour when Blneder is synced to JACK transport.
When I disable "A/V Sync" - Blender never crashed when starting animation playback, even though JACK was still used as an audio backend.
I was testing this also with 2.76b and the issue is much more random there. Sometimes I can start playback with another JACK-transport enabled programs and Blender follows without crash for a few times in row, and suddenly it will crash.
Here's a backtrace I got from 2.78:
And the same problem with 2.76 too, sometimes also happens when I start playback withing Blender (Alt+A):
I'm trying to workaround this by performing all playhead moves inside Blender - I can arm recording in Ardour and start/stop the recording from Blender. Not convenient, but seems to prevent Blender from crashing for now.
EDIT: This isn't a real workaround, as Blender still crashes when I start playback from it. What's better is that it dones't crash every single time - roughly only once every 5 times.
Here's a backtrace I got when I started playback from within Blender.
I pressed Alt+A, blender crashed immediately, but Ardour started playback fine:
Changed status to: 'Open'
Added subscriber: @TobiaszunfaKaron
Crash when another program starts playback while using JACK audio with A/V syncto Crash when starting playback while using JACK audio with A/V syncAdded subscribers: @neXyon, @Sergey
@neXyon, mind having a look here? Thanks :)
This issue was referenced by
b5d527ff6c
Changed status from 'Open' to: 'Resolved'
@TobiaszunfaKaron: can you try with this fix if it works for you? For me it works fine now, but maybe I didn't catch all cases where it crashes. If you don't build blender yourself, you can try a version from a build bot that's new and includes that revision.
@neXyon: I'll happily try it, I don't build Blender myslelf so I'll resort to the Build Bot. Thank you!
Ok On my side the automatic build from Sat Oct 22 04:03:33 2016 does not use JACK transport at all.
I see no communication between Blender and Ardour. I can't get them to sync the playback.
Well, how do you expect a change made at 3 PM to be included in a build from 4 AM? You'll have to wait for a new build!
Sorry! I didn't see when you've commited your patch!
I tested today with a recent Blender build:
And the JACK transport is even more broken than it was before. It doesn't crash, but when using JACK with A/V Sync, Blender gets stuck on 2 frames alternating between them every time I press play (in Blender or in a remote JACK application, starting JACK transport).
I can scrub the timeline in Ardour and Blender responds.
Sometimes when I leave it "playing" and Blender is stuck on the two frames, after some time it breaks free and starts normal playback somehow.
But that's unpredictable and rare, so it's not usable.
I'm reopening this issue.
Changed status from 'Resolved' to: 'Open'
Changed status from 'Open' to: 'Resolved'
False alarm.
I testes in another version of Blender and the stutter also happens, so it's not introduced by any recent commit.
Looks like my JACK server got hiccups, after restart it all works as expected. I was unable to reproduce a crash with JACK transport playback so far.
Thank you!
If the stutter issue happens again, I'll file it as another problem.