Modify

Opened 8 years ago

Closed 7 years ago

#8179 closed defect (fixed)

kDecoderProbeBufferSize increase causes LiveTV crash

Reported by: nigel Owned by: janne
Priority: major Milestone: 0.23-fixes
Component: MythTV - Video Playback Version: 0.23-fixes
Severity: medium Keywords:
Cc: Ticket locked: no

Description

[23528] increased kDecoderProbeBufferSize from 64K to 1M. For some unknown reason, this is causing the MacOS X client to crash (HDHR, Live TV only):

(gdb) run -v playback
Starting program: /Volumes/Backups/MythTV/.osx-packager/src/myth-svn/mythtv/programs/mythfrontend/mythfrontend -v playback
...
2010-03-15 00:43:15.715 Using audio as timebase
2010-03-15 00:43:15.715 Video timing method: USleep with busy wait
2010-03-15 00:43:15.715 Refresh rate: 6666, frame interval: 40000
2010-03-15 00:43:15.716 NVP(0): LoadFilters(''..) -> 0x0
2010-03-15 00:43:15.719 RingBuf(/Volumes/Backups/Movies/1001_20100315004313.mpg): OpenFile(/Volumes/Backups/Movies/1001_20100315004314.mpg, 12)
2010-03-15 00:43:15.756 RingBuf(/Volumes/Backups/Movies/1001_20100315004314.mpg): CalcReadAheadThresh(0 KB)
			 -> threshhold(64 KB) min read(0 KB) blk size(32 KB)

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0xb0441ff0
[Switching to process 32381]
0x8fe11f32 in __dyld_misaligned_stack_error ()

or

Thread 11 Crashed:
0   dyld                          	0x8fe11f32 misaligned_stack_error + 0
1   ...havformat-0.23.0.23.0.dylib	0x00dad6cd get_buffer + 189 (aviobuf.c:316)


The file recorded by that LiveTV session (all 5 to 10 seconds of it) plays back just file in watch recordings.

Attachments (0)

Change History (9)

comment:1 Changed 7 years ago by stridger@…

I can confirm this on OSX 10.6.3 when compiling with osx-packager.pl -m32.

The log can be found on

http://svn.mythtv.org/trac/ticket/8342

but is probably not very helpful.

comment:2 Changed 7 years ago by robertm

  • Component changed from MythTV - General to Ports - OSX
  • Owner changed from ijr to nigel

comment:3 Changed 7 years ago by stridger@…

Sorry to nag, but given that this is a showstopper for LiveTV in 0.23 on OSX, and RC3 is out already, is there a chance that the fix will make it into 0.23 final?

Thanks.

comment:4 Changed 7 years ago by robertm

  • Ticket locked set

Please read the ticket howto.

comment:5 Changed 7 years ago by janne

(In [24618]) NVP: decrease kDecoderProbeBufferSize to 128k

reverts [23528] partially after the evob probe was fixed. Hopefully fixes the Mac OS X stack overflow in Refs #8179. Refs #7233

comment:6 Changed 7 years ago by janne

  • Component changed from Ports - OSX to MythTV - Video Playback
  • Milestone changed from unknown to 0.23-fixes
  • Owner changed from nigel to janne
  • Status changed from new to accepted
  • Ticket locked unset
  • Version changed from head to 0.23-fixes

comment:7 Changed 7 years ago by Psychosis <psychos@…>

Backported to 0.23-fixes, I can confirm this fixes LiveTV on 10.5/10.6 OS X (Intel).

comment:8 Changed 7 years ago by nigel

(In [25295]) Prevent stack overflow with LiveTV on Mac OS X, by allocating buffer from heap. Thanks to Christoph Rudorff. Refs #6211. Refs #8179. Tidier solution than trunk's [24618]?

comment:9 Changed 7 years ago by robertm

  • Resolution set to fixed
  • Status changed from accepted to closed

Believe this should have been closed a bit ago.

Add Comment

Modify Ticket

Action
as closed The owner will remain janne.
The resolution will be deleted. Next status will be 'new'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.