[Windows XP] v2.6.12 (to v2.6.18) crashes when trying to play .ts files

Started by mm0359, September 29, 2016, 04:08:41 PM

Previous topic - Next topic

mm0359

Windows: XP. (win32)

v2.6.8,
v2.6.9-v2.6.11 // + usp10.dll
play .ts files fine.
(I didn't try other file types.)

  Avidemux v2.6.11 (160210_f4e7b7ff081) . // Debug. // + usp10.dll
crashes immediately, without dialog/log.

  Avidemux v2.6.11 (160214_a3a02ad5fe1) . // Debug. // + usp10.dll

EXCEPTION_ACCESS_VIOLATION
wscanf  [msvcrt.dll]

Dialog has a longer "stack"...

  Avidemux v2.6.11 (160218_2bbe6ad3783) . // Debug. // + usp10.dll

EXCEPTION_ACCESS_VIOLATION
wscanf  [msvcrt.dll]
Crash Dump for ExceptionFilter
EXCEPTION_ACCESS_VIOLATION
wscanf  [msvcrt.dll]
ADM_setCrashHook  [libADM_core6.dll]
ADM_setCrashHook  [libADM_core6.dll]
UnhandledExceptionFilter  [kernel32.dll]
FindAtomW  [kernel32.dll]


  Avidemux v2.6.12 (0) . // + usp10.dll
  Avidemux v2.6.13 (0) . // + usp10.dll
  Avidemux v2.6.14 (0) .
  Avidemux v2.6.14 (160927_ef745605b41) .

...
Scripting muxer
EXCEPTION_ACCESS_VIOLATION
wscanf  [msvcrt.dll]
Crash Dump for ExceptionFilter
EXCEPTION_ACCESS_VIOLATION
wscanf  [msvcrt.dll]
ADM_setCrashHook  [libADM_core6.dll]
ADM_setCrashHook  [libADM_core6.dll]
FindAtomW  [kernel32.dll]


Issue 1: Do not crash.
Issue 2: Play file.

Windows Vista works fine:
Windows XP only issue.

mm0359

Not the same exception,
yet this issue (timeframe) looks very much like
[Windows XP] v2.6.12 (to v2.6.14) hangs when trying to convert audio
as in "same/similar root cause".

(Maybe, here, it's playing the audio which crashes?)

mm0359

  Avidemux v2.6.14 (161024_8b5bfb9baa1) .

Fwiw, I (had) tried to change some preferences in User Interface, Audio and Display:
same error.

mm0359

Updated exception stack after upgrading Windows XP to SP3 (from "SP2"):
ValidateLocale, instead of FindAtomW.

  Avidemux v2.6.14 (161024_8b5bfb9baa1) .

...
Scripting muxer
EXCEPTION_ACCESS_VIOLATION
wscanf  [msvcrt.dll]
Crash Dump for ExceptionFilter
EXCEPTION_ACCESS_VIOLATION
wscanf  [msvcrt.dll]
ADM_setCrashHook  [libADM_core6.dll]
ADM_setCrashHook  [libADM_core6.dll]
ValidateLocale  [kernel32.dll]

mm0359

Installed Debug Diagnostic Tool 1.2:


  Avidemux v2.6.14 (161024_8b5bfb9baa1) .


Type of Analysis Performed   Crash Analysis

Thread 0 - System ID 3896
Entry point   avidemux+14c0

Full Call Stack

Function     Arg 1     Arg 2     Arg 3     Arg 4   Source
msvcrt!_output+655     0022c608     0061eb14     0022c658     00000000   
msvcrt!vsnprintf+2f     65755980     000003ff     0061eb14     0022c658   
libADM_core6!ADM_info2+27     0061ec99     0061eb14     00000000     05273c10   
avidemux!ZN25ADM_edAudioTrackFromVideo12getPCMPacketEPfjPjPy+2dc     00000000     00030d40     0022c728     0000bb80   
avidemux!ZNSt6vectorIP15AUDMAudioFilterSaIS1_EE19_M_emplace_back_auxIIS1_EEEvDpOT_+6e     0022c6dc     00000002     00000000     00000000   
avidemux!Z20ADM_buildFilterChainP16ADM_edAudioTrackPSt6vectorIP15AUDMAudioFilterSaIS3_EEP22ADM_AUDIOFILTER_CONFIG+1c5     06b60030     00046500     0022c704     0022c708   
avidemux!ZN22AUDMAudioFilter_Bridge18fillIncomingBufferEP10AUD_Status+7c     040d4f38     0022c8ac     0005dc00     00000000   
libADM_ad_Mad!ZN17ADM_AudiocodecMP314resetAfterSeekEv+4c     00000000     00000000     00000000     00000000   

Exception Information
...
the assembly instruction at msvcrt!_output+655 in ...\msvcrt.dll from Microsoft Corporation has caused an access violation exception (0xC0000005) when trying to read from memory location 0x00000000 on thread 0

Symbol File Name:  ...\msvcrt.pdb\7BCF30D8C91B4F1B85FA4E55896250111\msvcrt.pdb



  Avidemux v2.6.13 (160825_dbff7c1aee7) . // Debug


Type of Analysis Performed   Crash Analysis

Thread 0 - System ID 3344
Entry point   avidemux+14c0

Full Call Stack

Function     Arg 1     Arg 2     Arg 3     Arg 4   Source
msvcrt!_output+655     0022c358     00630f90     0022c3d8     0042cd44   
msvcrt!_vsnprintf+2f     65554140     000003ff     00630f90     0022c3d8   
libADM_core6!ZN7CpuCaps6hasMMXEv+44a     65554140     000003ff     00630f90     0022c3d8   
libADM_core6!ADM_info2+2e     00631293     00630f90     00000000     07a08b70   
avidemux!ZN25ADM_edAudioTrackFromVideo12getPCMPacketEPfjPjPy+189     094e0030     00046500     0022c494     0022c488   
avidemux!ZN22AUDMAudioFilter_Bridge18fillIncomingBufferEP10AUD_Status+d6     0022c5ac     0000000f     00000000     07b5bdf8   
avidemux!ZN22AUDMAudioFilter_Bridge4fillEjPfP10AUD_Status+8d     0008ca00     097d0030     0022c5ac     06192c00   
libADM_coreAudioFilterAPI6!ZN15AUDMAudioFilter18fillIncomingBufferEP10AUD_Status+83     0022c5ac     0022c548     77c29e64     00177000   
avidemux!ZN20AUDMAudioFilterMixer4fillEjPfP10AUD_Status+75     00000002     09ac0030     0022c5ac     07d1f9a0   
avidemux!ZN11GUIPlayback15initializeAudioEv+174     000002d0     00000240     00000002     000000e8   
avidemux!ZN11GUIPlayback10initializeEv+169     00000048     00000000     ffffffee     77c418cd   
avidemux!Z11GUI_PlayAviv+163     004c0fc0     004c041c     004c2aed     023be51b   
avidemux!Z12HandleAction6Action+a8f     00000005     0022cc00     0022cc38     056e8988   
...

Exception Information
...
the assembly instruction at msvcrt!_output+655 in ...\msvcrt.dll from Microsoft Corporation has caused an access violation exception (0xC0000005) when trying to read from memory location 0x00000000 on thread 0

Symbol File Name:  ...\msvcrt.pdb\7BCF30D8C91B4F1B85FA4E55896250111\msvcrt.pdb



As a confirmation (with DDT active),

  Avidemux v2.6.11 (0) .

...
[goToTime]  go to time 0.20 secs
[goToTime] => seg 0, rel time 0.20 secs
[AudioStream] Warning skew in dts =476766,
[AudioStream] Warning skew lastDts=00:00:00,200
[AudioStream] Warning skew newDts=00:00:00,676 
[Composer::getPCMPacket] Track 0,318f5d8 : drift -476766, computed :200000 got 676766
[Composer::getPCMPacket] Track 0,318f5d8 : drift -391433, computed :285333 got 676766
[Composer::getPCMPacket] Track 0,318f5d8 : drift -306099, computed :370667 got 676766
[Composer::getPCMPacket] Track 0,318f5d8 : drift -220766, computed :456000 got 676766
[Composer::getPCMPacket] Track 0,318f5d8 : drift -135433, computed :541333 got 676766
[Composer::getPCMPacket] Track 0,318f5d8 : drift -50099, computed :626667 got 676766
...

v2.6.12/+ log ends just before the "Composer::getPCMPacket" lines!

NB: This example is with my LoadTst.ts file.

mm0359

Quote from: mm0359 on September 29, 2016, 09:57:36 PM
(Maybe, here, it's playing the audio which crashes?)

  Avidemux v2.6.14 (161117_c9d2a656a61) .

Indeed: unselect Audio tracks, then Video plays fine!

Dron007

I have the same problem in WnXP and v2.6.16.
When I deselect audio tracks file plays correctly. But I need audio too for correct cutting. Any chances it would be fixed?

File: TS
Video: MPEG4 Video (H264) 320x568 120fps [V: h264 high L2.1, yuv420p, 320x568
Audio: AAC 44100Hz mono 65kbps [A: aac lc, 44100 Hz, mono, 65 kb/s]

Dron007

Still reproducable with 2.6.18.
Crashes on any video downloaded from Periscope with Youtube Downloader. Options:
youtube-dl.exe  --hls-use-mpegts --no-part  -o 1.ts "%URL%"

I'am pretty sure the reason of the crash is in this commit: https://github.com/mean00/avidemux2/commit/5bfe0eb9313e5067723c0c6d569ef81b9bd24a98
Can somebody compile a version without this changes?



mm0359

Fwiw, related log is pretty hard to read :-\


...
[AudioStream] Warning skew newDts=00:00:00,676 
[getPCMPacket] 09:33:41-328 [Composer::getPCMPacket] Track 0,03016968 [getPCMPacket] 09:33:41-328 : drift -476766, computed :00:00:00,200[getPCMPacket] 09:33:41-328  got 00:00:00,676
[getPCMPacket] 09:33:41-328 [Composer::getPCMPacket] Track 0,03016968 [getPCMPacket] 09:33:41-328 : drift -391433, computed :00:00:00,285[getPCMPacket] 09:33:41-328  got 00:00:00,676
[getPCMPacket] 09:33:41-328 [Composer::getPCMPacket] Track 0,03016968 [getPCMPacket] 09:33:41-328 : drift -306099, computed :00:00:00,370[getPCMPacket] 09:33:41-328  got 00:00:00,676
[getPCMPacket] 09:33:41-328 [Composer::getPCMPacket] Track 0,03016968 [getPCMPacket] 09:33:41-328 : drift -220766, computed :00:00:00,456[getPCMPacket] 09:33:41-328  got 00:00:00,676
[getPCMPacket] 09:33:41-328 [Composer::getPCMPacket] Track 0,03016968 [getPCMPacket] 09:33:41-328 : drift -135433, computed :00:00:00,541[getPCMPacket] 09:33:41-328  got 00:00:00,676
[getPCMPacket] 09:33:41-328 [Composer::getPCMPacket] Track 0,03016968 [getPCMPacket] 09:33:41-328 : drift -50099, computed :00:00:00,626[getPCMPacket] 09:33:41-343  got 00:00:00,676
[init] 09:33:41-437 Initializing audioDeviceThreaded with channels=2, fq=48000
...

Dron007

Quote from: mm0359 on January 27, 2017, 09:09:16 AM
Good hint, Dron007!

Fixed by
[edAudio] simplify debug statements, may help on win32
in
win32/avidemux_2.6.18_r170127_win32.exe

Excellent! It works now without crashes. Thanks developers. This is the only program I know which is able to cut TS files and save them without recompression. Many others just crash.

BTW, mm0359, when do you see these logs? I installed Debug Diagnostic Tool 1.2 but only could see crash report there.

mm0359

Quotewhen do you see these logs?

In "Help > Advanced > Open Application [...]".