Welcome Guest ( Log In | Register )

> Ts2 Crashes On Crossfade Attempt
takemon
post May 16 2023, 09:38 AM
Post #1


Member
**

Group: Members
Posts: 12
Joined: 20-September 22
Member No.: 46,609



Summary:
TS2 crashes on crossfades.

Product Version and Format:
TS Version 2.2.3 and 96kHz, 24bit *.wav file

Description:
When I try to crossfade two regions, TS2 crashes unexpectedly with the following error:

Faulting application name: TS.exe, version: 2.2.3.0, time stamp: 0x62a1fe53
Faulting module name: TS.exe, version: 2.2.3.0, time stamp: 0x62a1fe53
Exception code: 0xc0000005
Fault offset: 0x0000000000292f9f
Faulting process id: 0x0x1FC4
Faulting application start time: 0x0x1D987C92CB707CA
Faulting application path: C:\Program Files\Ircam Lab TS\TS.exe
Faulting module path: C:\Program Files\Ircam Lab TS\TS.exe
Report Id: e3e82312-cefb-4ca4-b763-766ff95c01bf
Faulting package full name:
Faulting package-relative application ID:

Reproducibility:
- Always

System Information:
OS Name: Microsoft Windows 11 Pro
Version: 10.0.22621 Build 22621
System Type: x64-based PC
Processor: Intel® Core™ i7-9700F CPU @ 3.00GHz, 3000 Mhz, 8 Core(s), 8 Logical Processor(s)
Installed Physical Memory (RAM): 32.0 GB
Graphics Card: Nvidia GeForce GTX 1660 (8.0 Gbps)
Graphic Drivers Version: 531.79




Go to the top of the page
 
+Quote Post
2 Pages V   1 2 >  
Start new topic
Replies (1 - 14)
pierreguillot
post May 16 2023, 11:25 AM
Post #2


ircamLab Team
***

Group: Members
Posts: 34
Joined: 5-December 19
Member No.: 29,958



Hello,

Thank you for the report. I just tried to reproduce it on a machine that is quite similar to yours. Can you provide your TS2 document and the steps you did so I could try to reproduce it? You can use File -> Consolidate Document, to create a TS2 document with the audio files.

Best regards,
Pierre
Go to the top of the page
 
+Quote Post
takemon
post May 16 2023, 03:47 PM
Post #3


Member
**

Group: Members
Posts: 12
Joined: 20-September 22
Member No.: 46,609



Many thanks for your quick reply!

I'm afraid it will be difficult to send you the consolidated document because the max. single upload file size is 10MB.

Let me explain what I tried so far:

- I moved the *.wav files to a faster disk (NVME drive).

- I uninstalled and reinstalled TS2 v2.2.3 from scratch.

To reproduce the crossfade issue I used the default TS2 v2.2.3 settings after the fresh install.

I loaded one *.wav file with 50MB in size.

I've split the file into two regions. Did the fade out on the first region, the fade in on the second region and joined the two regions together to do the crossfade.

Interestingly the issue is behaving slightly different now. TS2 is not crashing anymore. Instead, during the crossfade, TS2 freezes completely. When the freeze occurs TS2 shows a CPU utilization of 1%. The mouse or keyboard shortcuts are not working anymore. Windows task manager shows a CPU utilization at around 50% for TS.exe. I'm still able to use other programs when TS2 hangs. Sometimes TS2 stops from freezing but the crossfade is completely messed. When I try to do the crossfade a second time, TS2 hangs again.

If there is any possibility to debug the issue I'm glad to assist to track down the cause of the problem.

Many thanks!

Go to the top of the page
 
+Quote Post
pierreguillot
post May 16 2023, 04:00 PM
Post #4


ircamLab Team
***

Group: Members
Posts: 34
Joined: 5-December 19
Member No.: 29,958



Thank you for these additional details! Does the problem occur with other audio files or just this one? Does it seem to be related to the file size?
I just tested your steps with a 15 minute file at 96kHz (312MB) and it works (even though my machine has less RAM). I'll do some more tests to try to find the problem.

Tips: For the crossfade, you just have to fade (in or out) on the region that is moved and not necessarily on both regions wink.gif
Go to the top of the page
 
+Quote Post
takemon
post May 16 2023, 04:30 PM
Post #5


Member
**

Group: Members
Posts: 12
Joined: 20-September 22
Member No.: 46,609



Unfortunately, the problem occurs with every audio file I load.
I tried to track down the problem using Sysinternals Process Monitor.
The only thing I've noticed so far is that TS2 keeps trying to create temporary files in the following folder C:\Users\%username%\AppData\Local\Temp\Documents (e.g. Document_a8a5c88870894197bd91384605729520.tsdoc). This behavior seem to stop as soon as the freeze stops.

Many thanks for the hint! I tried it out but the issue happened again. smile.gif
Go to the top of the page
 
+Quote Post
takemon
post May 17 2023, 04:53 AM
Post #6


Member
**

Group: Members
Posts: 12
Joined: 20-September 22
Member No.: 46,609



I tried many things today to find the possible cause of the problem. Unfortunately without success.

TS2 freezes continuously when moving the crossfade area. After trying a lot of times, I ended up having another crash caused by TS.exe in ModuleName ntdll.dll (ExceptionCode c0000374).

According to Microsoft Code 0xC0000374 is a STATUS_HEAP_CORRUPTION (a heap has been corrupted.)

To rule out system file corruptions, I ran the Win11 system file checker from an admin command prompt (cmd):

DISM.exe /Online /Cleanup-image /Restorehealth

The operation completed successfully without errors..

I then used the System File Checker tool to check for or repair missing or corrupted system files:

sfc /scannow

Verification 100% complete. Windows Resource Protection did not find any integrity violations.

The Windows version I'm running is up to date and none of the usual checks for corruption has indicated a problem ( system file checker, dism ).

I have no problems or crashes with other audio apps or windows applications in general (but actually I prefer Linux :-).

Thank you for taking the time to investigate the issue!


---------------------------

General event log entry:

Faulting application name: TS.exe, version: 2.2.3.0, time stamp: 0x62a1fe53
Faulting module name: ntdll.dll, version: 10.0.22621.1485, time stamp: 0xb7f0154a
Exception code: 0xc0000374
Fault offset: 0x000000000010be19
Faulting process id: 0x0x438
Faulting application start time: 0x0x1D9886788F25335
Faulting application path: C:\Users\Heinz\TS2\Ircam Lab TS\TS.exe
Faulting module path: C:\WINDOWS\SYSTEM32\ntdll.dll
Report Id: 5d9f4f8c-f35d-4801-b3d7-4d7cc4f18ab4
Faulting package full name:
Faulting package-relative application ID:




Detailed event log entry:

- System
- Provider
[ Name] Application Error
[ Guid] {a0e9b465-b939-57d7-b27d-95d8e925ff57}

EventID 1000
Version 0
Level 2
Task 100
Opcode 0
Keywords 0x8000000000000000

- TimeCreated

[ SystemTime] 2023-05-17T02:37:34.2813679Z

EventRecordID 8328

Correlation

- Execution

[ ProcessID] 3736
[ ThreadID] 8812

Channel Application

Computer Hotaru02

- Security

[ UserID] S-1-5-21-3249426328-1773312047-3842630914-1001


- EventData

AppName TS.exe
AppVersion 2.2.3.0
AppTimeStamp 62a1fe53
ModuleName ntdll.dll
ModuleVersion 10.0.22621.1485
ModuleTimeStamp b7f0154a
ExceptionCode c0000374
FaultingOffset 000000000010be19
ProcessId 0x438
ProcessCreationTime 0x1d9886788f25335
AppPath C:\Users\Heinz\TS2\Ircam Lab TS\TS.exe
ModulePath C:\WINDOWS\SYSTEM32\ntdll.dll
IntegratorReportId 5d9f4f8c-f35d-4801-b3d7-4d7cc4f18ab4
PackageFullName
PackageRelativeAppId
Go to the top of the page
 
+Quote Post
pierreguillot
post May 17 2023, 08:56 AM
Post #7


ircamLab Team
***

Group: Members
Posts: 34
Joined: 5-December 19
Member No.: 29,958



Thank you for all this information! We are working on it now to reproduce the problem and correct it later, it may take some time. If you can provide the document that generates the crash (without the audio files if you can't provide them) and the audio configurations, that could also help us.

Best regards,
Pierre
Go to the top of the page
 
+Quote Post
takemon
post May 17 2023, 10:20 AM
Post #8


Member
**

Group: Members
Posts: 12
Joined: 20-September 22
Member No.: 46,609



Hi Pierre

Here you will find the link to the information you requested. Please let me know when you downloaded the file (Crossfade_Issue.zip, 45.7MB).

Today I tried to reproduce the issue at 44.1kHz. The problem remains the same.
I tried different buffer sizes also, e.g. 512, 1024. 2048 and adjusted the buffer size of the audio interface accordingly.
It didn't help either. When I played the audio file without reproducing the problem, I heard no artifacts or glitches.

Last but not least I used a different mouse and a different mouse driver. biggrin.gif Without succes.

Btw: The USB audio interface I use is a Motu M4. Firmware and drivers are up to date.

I will not use the TS2 crossfade function for the time being.

I look forward to hearing from you.

Many thanks!

Heinz




Go to the top of the page
 
+Quote Post
pierreguillot
post May 17 2023, 01:16 PM
Post #9


ircamLab Team
***

Group: Members
Posts: 34
Joined: 5-December 19
Member No.: 29,958



I downloaded the file. Thank you very much!
Go to the top of the page
 
+Quote Post
takemon
post May 17 2023, 01:38 PM
Post #10


Member
**

Group: Members
Posts: 12
Joined: 20-September 22
Member No.: 46,609



Thanks for the information.
I removed the share to the file.
I hope you don't mind.
Go to the top of the page
 
+Quote Post
pierreguillot
post May 25 2023, 10:46 AM
Post #11


ircamLab Team
***

Group: Members
Posts: 34
Joined: 5-December 19
Member No.: 29,958



Hello,

I think I've managed to reproduce the problem and fix it! Could you test this version and tell me if the problem is solved on your machine? This is a development version, please do not share it. If you don't encounter the problem anymore, the fix will be integrated with the next release but use this develoment version with caution because some aspects may change between now and the release.
Thanks again for your feedback!

Pierre
Go to the top of the page
 
+Quote Post
takemon
post May 25 2023, 11:22 AM
Post #12


Member
**

Group: Members
Posts: 12
Joined: 20-September 22
Member No.: 46,609



Hi Pierre
Thank you for sharing the development version.
I downloaded the file and tried to reproduce the problem.
So far things are looking good. The problem seems to be solved.
Good work. Thanks very much!
Heinz
Go to the top of the page
 
+Quote Post
takemon
post May 25 2023, 02:11 PM
Post #13


Member
**

Group: Members
Posts: 12
Joined: 20-September 22
Member No.: 46,609



Hi Pierre

I'm sorry to inform you that, after more intensive testing, the developer TS2 version also crashed.

I was able to set, move and adjust about five crossfades without any problem.
The crash occurred after I changed the stretch factor and remix parameters. Then I tried to adjust and move the crossfade regions again. TS2 closed unexpectedly.

If it helps, I can do more testing tomorrow.

When TS2 crashed, the following event log entry was written. According to MS, a C0000005 is a memory error (an access violation error caused by a buffer overrun).

- System

- Provider

[ Name] Application Error
[ Guid] {a0e9b465-b939-57d7-b27d-95d8e925ff57}

EventID 1000

Version 0

Level 2

Task 100

Opcode 0

Keywords 0x8000000000000000

- TimeCreated

[ SystemTime] 2023-05-25T12:03:00.2142079Z

EventRecordID 8903

Correlation

- Execution

[ ProcessID] 10252
[ ThreadID] 7568

Channel Application

- EventData

AppName TS.exe
AppVersion 2.2.3.0
AppTimeStamp 646f295b
ModuleName TS.exe
ModuleVersion 2.2.3.0
ModuleTimeStamp 646f295b
ExceptionCode c0000005
FaultingOffset 000000000063ec75
ProcessId 0x18f4
ProcessCreationTime 0x1d98ef9dd9fa8fd
AppPath C:\Program Files\Ircam Lab TS\TS.exe
ModulePath C:\Program Files\Ircam Lab TS\TS.exe
IntegratorReportId 09658fea-6c9e-431d-a3d7-4370d10342b6
PackageFullName
PackageRelativeAppId
Go to the top of the page
 
+Quote Post
pierreguillot
post May 25 2023, 02:39 PM
Post #14


ircamLab Team
***

Group: Members
Posts: 34
Joined: 5-December 19
Member No.: 29,958



It is very likely that this must be related to another problem. In the sent version, several modules have been updated, including the audio driver management system. All the changes have not been properly tested yet, so it should be used with caution. I'll try to reproduce it and if you have any other information don't hesitate to send it. Thanks again!
Go to the top of the page
 
+Quote Post
takemon
post Jun 8 2023, 04:13 AM
Post #15


Member
**

Group: Members
Posts: 12
Joined: 20-September 22
Member No.: 46,609



Hi Pierre

Do you have any news on this topic?

Today I had some time to reproduce the problem again.

To get a clue whats going on during the crash or hang I used the Sysinternals Process Monitor from Microsoft.

Reproduction steps:

1. Download and unpack Sysinternals Process Monitor.
2. Start Process Monitor.
3. Press Ctrl-E to stop event capturing.
4. Press Ctrl-X to clear the display.
5. Start TS2.
6. Load Gong_Test_Preset_18-22_Mix.wav I send to you.
7. To capture events generated by TS.exe. In Process Monitor, use the crosshairs (red circles) and drag it or select the TS2 window with it.
8. Press Ctrl-E to start capture events.
9 Press Ctrl-A to set auto scrolling to on.

At this point you should see that TS.exe is producing six events every second (CreateFile, QueryBasicInformationFile, CloseFile..., CreateFile, QueryBasicInformationFile, CloseFile...). Even if the sound is not played or TS2 is not used at all. That looks a bit strange. Like an infinite loop or a thread that runs continuously and never finishes. When you double click on a specific event, you can view the event properties like process tree, loaded modules, and the stack.

10. Switch to the TS2 window and split Gong_Test_Preset_18-22_Mix.wav into 5 regions.
11. Set the crossfade length for each region to one third of the region.
12. Move the regions and start cross fading.

At this point, TS2 begins to lag or hang. CPU usage stays at around 50%. When it hangs, TS.exe generates millions of ReadFile events every few milliseconds in the process monitor.

If you have any question or an advice please let me know.

Hope this helps.

Heinz
Go to the top of the page
 
+Quote Post

2 Pages V   1 2 >
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 29th March 2024 - 03:36 PM