1
Bugs / Re: WeakPtrCallback error on script executing
« on: January 07, 2023, 10:15:21 »
I think it's a kind of timeout. Can you only increase this timeout and make a new release available ?
Regards,
Regards,
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
2023-01-05 17:45:37 [00000093920FD7B0] WeakPtrCallback
2023-01-05 17:45:37 [00000093920FD7B0] Process(scripter) is crashed
2023-01-05 17:45:37 CExtension::Run:569 [false] [109, The pipe has been ended. ]
2023-01-05 17:46:33 [00000093920FD7B0] Process(scripter) is forcefully shutdown
2023-01-05 17:46:33 CExtension::Run:569 [false] [109, The pipe has been ended. ]
The script is correct because with less files, it works. And It has worked for a long time before...
/*
Author: Cedric
Description: prepare mklink for marked files
*/
var dups = results.audio.dups;
for (var idx = 0; idx < dups.length; ++idx) {
if (!(dups[idx].item1.marked == true && dups[idx].item2.marked == false)) continue;
try {
var scores = audio.calculate(dups[idx].item1, dups[idx].item2, 'precise');
log(scores['precise'] + ';delete "'+ dups[idx].item1 + '";mklink /h "' + dups[idx].item1.toString().replace(/\..+$/, '') + dups[idx].item2.toString().split('.').pop() + '" "' + dups[idx].item2+ '"' );
}
catch (e) {
log('Exception ' + e);
}
}
/*
Author: Cedric
Description: Mark all files that have same analysis
*/
// unmark all files
results.audio.unmark();
var dups = results.audio.dups;
for (var idx = 0; idx < dups.length; ++idx) {
// skip counter-pair (1-2 and 2-1), process pair only once
if (dups[idx].item1.path > dups[idx].item2.path) continue;
try {
if (dups[idx].item1.analysis.duration == dups[idx].item2.analysis.duration && dups[idx].item1.analysis.samplerate== dups[idx].item2.analysis.samplerate && dups[idx].item1.analysis.datatype == dups[idx].item2.analysis.datatype && dups[idx].item1.analysis.channels == dups[idx].item2.analysis.channels && dups[idx].item1.analysis.format == dups[idx].item2.analysis.format && dups[idx].item1.analysis.clips == dups[idx].item2.analysis.clips && dups[idx].item1.analysis.silence == dups[idx].item2.analysis.silence && dups[idx].item1.analysis.absMean == dups[idx].item2.analysis.absMean && dups[idx].item1.analysis.minStep == dups[idx].item2.analysis.minStep && dups[idx].item1.analysis.absMax == dups[idx].item2.analysis.absMax && dups[idx].item1.analysis.maxFreq == dups[idx].item2.analysis.maxFreq && dups[idx].item1.analysis.clicks == dups[idx].item2.analysis.clicks && dups[idx].item1.analysis.rating == dups[idx].item2.analysis.rating) log('delete "'+ dups[idx].item2 + '" mklink /h "' + dups[idx].item2 + '" "' + dups[idx].item1+ '"' );
}
catch (e) {
log('Exception ' + e);
}
}