Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: EAC "Unhandled exception” error may occur during FLAC compression. (Read 1160 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

EAC "Unhandled exception” error may occur during FLAC compression.

Compression with Exact Audio Copy (EAC) using FLAC may cause an unhandled exception error
as shown in the attached file (0.Unhandled exception.png).
The reason is that the input file name does not match the actual input file, resulting in a file not found error.
For more information, please see below.

If the input file is set to %original% in “Additional command-line option” of
 [EAC]-[Compression]-[External Compression] as in the attached image file (1-A.PNG),
the FLAC command The input file name in the FLAC command line will be “01 - Lone Star State Of Mind.wav”.

However, in the actual folder, a temporary file named “0tmp1!542.flac” is created as
shown in the attached image file (1-B.png), and because this file cannot be found,
the FLAC.exe error “No such file or The file cannot be found,
 so FLAC.exe gives the error “No such file or direcotory” as shown in the attached file (1-C.png).

Conversely, if %source% is specified as in the attached file (2-A.%source%.png),
 the input file name in the Flac.exe argument is a temporary file,
 e.g. “0tmp0-!55.wav”, which is correct.
However, the actual input file is “01 - Lone Star State Of Mind.wav” as shown in the attached file (2-B.png),
and since there is no file here either,
flac.exe gives me the error “No such file or direcotory” for the attached file (2-C.png).
I have been using EAC's FLAC conversion since 2013 and have never had this happen before.
The strange thing is that the mistake does not always occur.

This phenomenon occurs about 25% of the time these days.
We have confirmed that this occurs with versions 1.6 and 1.8.

(1) For some reason, %original% and %source% are interchanged in the operation.
(2) In EAC, there is a problem in error handling when encoding fails in FLAC, and “Unhandled exception” occurs.

I think it may be a problem with the EAC, but does anyone else experience the same phenomenon?
In addition, I created flac_test.exe between EAC and flac.exe as shown below
and stopped it just before the arguments and Flac.exe are called and checked the arguments and folders.

EAC->flac_test.exe->flac.exe
The translation is automatic, so please accept my apologies if there are any errors in the text.

Re: EAC "Unhandled exception” error may occur during FLAC compression.

Reply #1
'Use CRC check' is ignored when using 'Parameter passing scheme: User Defined Encoder' so no need to check that box.
'Add ID3 tag' should not be checked for FLAC. FLAC has it's own native tagging system (a.k.a. "FLAC tags" or "Vorbis comments") which should be added using 'Additional command-line options'. From the FLAC documentation:
Quote
Note however that the FLAC specification does not require compliant implementations to support ID3 in any form and their use is strongly discouraged.

So far (based on the information provided) I cannot duplicate your results. (tested using EAC v1.8, v1.5, v1.3)
No unhandled exceptions
I get an encoder error 100% of the time using -o %dest% %original% and no flac created. (I do not have experience using %original%  as a source file but if this worked in a previous version of EAC, I cannot reproduce.)
I get an encoder error 0% of the time using %source% (-o %dest% not required for FLAC but I did test multiple times with -o %dest% %source% as well)

Maybe someone else can help (I won't reply again unless steps are provided where the issue can be reproduced).
korth

Re: EAC "Unhandled exception” error may occur during FLAC compression.

Reply #2
A not-so-good way to get around this is to use the following method.

Process as follows in flac_test.exe.
"If the %original% file does not exist, copy the %dest% file name with the extension “.wav” to the %original% file.
Then call flac.exe."

Specific examples include
flac_test.exe -o 0tmp0-!55.flac "01 - Lone Star State Of Mind.wav"
"If “01 - Lone Star State Of Mind.wav” is missing,
copy 0tmp0-!55.wav “01 - Lone Star State Of Mind.wav”"
Call flac.exe as follows.
flac.exe -o 0tmp0-!55.flac "01 - Lone Star State Of Mind.wav"

Re: EAC "Unhandled exception” error may occur during FLAC compression.

Reply #3
From the developer:
%original% CAN NOT be used as a replacement for (or in combination with) %source% or %dest%. %source% and %dest% will always receive a temporary filename.

korth

 

Re: EAC "Unhandled exception” error may occur during FLAC compression.

Reply #4
I found the real cause by looking at the memory dump with windbg.
I had ATOK installed as the Japanese Input Method Editor (IME), and the cause was that this module was corrupted.
After uninstalling ATOK and reinstalling it, it started working without any problems.
Thank you for your advice.

I accidentally set my user name to my e-mail address, but I can't change it on the profile screen.
It would be helpful if you could tell me how to change it.