-
-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception when reading m4b
files metadata via new Track(...)
#144
Comments
Could you please use debug mode and report the NB : I haven't been able repro that on my side so far |
Yeah that is very strange. Running a raw command or the source code does not produce this exception on the same system with the same code and the same file. It is only within the It makes tracing the problem VERY hard, because the exception is not thrown in a catchable way but only printed. I'm using the IDE JetBrains Rider on Linux (Ubuntu 18.04 LTS) - as an example this does not catch an exception:
but still printing it. I'm on it, if I can provide more info, I'll update this issue. May take some time. |
The exception printing might be the one happening in I can make it print the |
Today's v4.06 logs the |
Yeah this worked, thank you. If the project is configured to use invariant culture (https://aka.ms/GlobalizationInvariantMode), the problem shows up: <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<!-- ... -->
<InvariantGlobalization>true</InvariantGlobalization>
</PropertyGroup>
</Project> Setting it to I tend to activate this setting in my public apps, because it makes the binaries much smaller and I normally don't need globalization support. For more details, read https://github.com/dotnet/runtime/blob/main/docs/design/features/globalization-invariant-mode.md Now you have to decide, if you would like to support that :-) For the sake of completeness, here is the trace.
|
Oh, so that's what it was ! I wonder if you can circumvent it by manually registering the Good news is that we found the core problem and its workaround. You're free to close the issue if you want. |
Thanks, but this did not work for me. Same error.
Well, kind of. The problem is based on a setting, that should FIX an issue, instead of creating one. The question is, if you would like In Line 15 in 0a9eb25
For better understanding:
I understand if you don't wanna go down this road, but maybe there is an easy fix without breaking something... References: |
I totally share the goal of having a library that works on most platforms, including those where the By examining the 4.03 -> 4.04 diff, I think I've located the culprit This culture has been introduced to make sure date formatting doesn't depend on the host's locale, for a few cases where specs use US date formatting (e.g. legacy Audible expecting short months names such as "Aug"). It turns out the invariant culture gives the very same formatting, which should make us both happy. => Next release will only refer to |
You sir, deserve a cookie. Thank you very much. |
Published in today's v4.07 |
The problem
If a Track is loaded with
4.5.0
, the following exception is thrown (with4.3.0
everything works fine).dependency
Code
Exception
Environment
If you need an m4b-file, that produces this issue, I'll send you one... (in my usecase, it happend with every
m4b
)The text was updated successfully, but these errors were encountered: