Transcription error: wav file is empty

Hello
I am running the Voice-Cloning-App.exe on Windows 10. I have a GeForce RTX 2060 Graphics Card with the GeForce Game Ready Driver  Version 461.92.
When I attempt build the data set, the windows console stops after the following:
[12644] WARNING: file already exists but should not: C:\Users\GREGOR~1\AppData\Local\Temp_MEI126442\torch_C.cp38-win_amd64.pyd
Server initialized for threading.
Server initialized for threading.
pydub\utils.py:170: RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work
torchaudio\extension\extension.py:14: UserWarning: torchaudio C++ extension is not available.
torchaudio\backend\utils.py:63: UserWarning: The interface of "soundfile" backend is planned to change in 0.8.0 to match that of "sox_io" backend and the current interface will be removed in 0.9.0. To use the new interface, do torchaudio.USE_SOUNDFILE_LEGACY_INTERFACE = False before setting the backend to "soundfile". Please refer to https://github.com/pytorch/audio/issues/903 for the detail.
INFO:matplotlib.font_manager:Generating new fontManager, this may take some time...
[nltk_data] Downloading package wordnet to C:\Users\GREGOR~1\AppData\L
[nltk_data]     ocal\Temp_MEI126442\nltk_data...
[nltk_data]   Package wordnet is already up-to-date!
WARNING:werkzeug:WebSocket transport not available. Install eventlet or gevent and gevent-websocket for improved performance.

Serving Flask app "main" (lazy loading)
Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
Debug mode: off
INFO:werkzeug: * Running on http://<IP_ADDRESS>:5000/ (Press CTRL+C to quit)
INFO:werkzeug:<IP_ADDRESS> - - [26/Mar/2021 00:56:25] "GET / HTTP/1.1" 200 -
INFO:werkzeug:<IP_ADDRESS> - - [26/Mar/2021 00:56:57] "POST / HTTP/1.1" 200 -
INFO:werkzeug:<IP_ADDRESS> - - [26/Mar/2021 00:56:57] "GET /static/error.css HTTP/1.1" 200 -
INFO:werkzeug:<IP_ADDRESS> - - [26/Mar/2021 00:56:57] "GET /favicon.ico HTTP/1.1" 200 -
INFO:werkzeug:<IP_ADDRESS> - - [26/Mar/2021 00:57:11] "GET / HTTP/1.1" 200 -
Starting Thread
INFO:werkzeug:<IP_ADDRESS> - - [26/Mar/2021 00:57:42] "POST / HTTP/1.1" 200 -
qINJoZN0iSsAW66FAAAA: Sending packet OPEN data {'sid': 'qINJoZN0iSsAW66FAAAA', 'upgrades': [], 'pingTimeout': 5000, 'pingInterval': 25000}
INFO:engineio.server:qINJoZN0iSsAW66FAAAA: Sending packet OPEN data {'sid': 'qINJoZN0iSsAW66FAAAA', 'upgrades': [], 'pingTimeout': 5000, 'pingInterval': 25000}
INFO:werkzeug:<IP_ADDRESS> - - [26/Mar/2021 00:57:42] "GET /socket.io/?EIO=4&transport=polling&t=NXjKmkr HTTP/1.1" 200 -
qINJoZN0iSsAW66FAAAA: Received packet MESSAGE data 0/voice,
INFO:engineio.server:qINJoZN0iSsAW66FAAAA: Received packet MESSAGE data 0/voice,
qINJoZN0iSsAW66FAAAA: Sending packet MESSAGE data 0/voice,{"sid":"hvDlhnRAa1GAVtomAAAB"}
INFO:engineio.server:qINJoZN0iSsAW66FAAAA: Sending packet MESSAGE data 0/voice,{"sid":"hvDlhnRAa1GAVtomAAAB"}
INFO:werkzeug:<IP_ADDRESS> - - [26/Mar/2021 00:57:42] "POST /socket.io/?EIO=4&transport=polling&t=NXjKmlA&sid=qINJoZN0iSsAW66FAAAA HTTP/1.1" 200 -
INFO:werkzeug:<IP_ADDRESS> - - [26/Mar/2021 00:57:42] "GET /socket.io/?EIO=4&transport=polling&t=NXjKmlB&sid=qINJoZN0iSsAW66FAAAA HTTP/1.1" 200 -
emitting event "logs" to all [/voice]
INFO:socketio.server:emitting event "logs" to all [/voice]
qINJoZN0iSsAW66FAAAA: Sending packet MESSAGE data 2/voice,["logs",{"text":"Loading audio from data\datasets\JamesEarlJones\audio.mp3..."}]
INFO:werkzeug:<IP_ADDRESS> - - [26/Mar/2021 00:57:47] "GET /socket.io/?EIO=4&transport=polling&t=NXjKmlb&sid=qINJoZN0iSsAW66FAAAA HTTP/1.1" 200 -
INFO:engineio.server:qINJoZN0iSsAW66FAAAA: Sending packet MESSAGE data 2/voice,["logs",{"text":"Loading audio from data\datasets\JamesEarlJones\audio.mp3..."}]
INFO:voice:Loading audio from data\datasets\JamesEarlJones\audio.mp3...
emitting event "logs" to all [/voice]
INFO:socketio.server:emitting event "logs" to all [/voice]
qINJoZN0iSsAW66FAAAA: Sending packet MESSAGE data 2/voice,["logs",{"text":"Loading script from data\datasets\JamesEarlJones\text.txt..."}]
INFO:werkzeug:<IP_ADDRESS> - - [26/Mar/2021 00:58:02] "GET /socket.io/?EIO=4&transport=polling&t=NXjKnxd&sid=qINJoZN0iSsAW66FAAAA HTTP/1.1" 200 -
INFO:engineio.server:qINJoZN0iSsAW66FAAAA: Sending packet MESSAGE data 2/voice,["logs",{"text":"Loading script from data\datasets\JamesEarlJones\text.txt..."}]
INFO:voice:Loading script from data\datasets\JamesEarlJones\text.txt...
emitting event "logs" to all [/voice]
INFO:socketio.server:emitting event "logs" to all [/voice]
qINJoZN0iSsAW66FAAAA: Sending packet MESSAGE data 2/voice,["logs",{"text":"Fetching segments..."}]
INFO:engineio.server:qINJoZN0iSsAW66FAAAA: Sending packet MESSAGE data 2/voice,["logs",{"text":"Fetching segments..."}]
INFO:voice:Fetching segments...

INFO:werkzeug:<IP_ADDRESS> - - [26/Mar/2021 00:58:20] "GET /socket.io/?EIO=4&transport=polling&t=NXjKssu&sid=qINJoZN0iSsAW66FAAAA HTTP/1.1" 200 -
INFO:engineio.server:qINJoZN0iSsAW66FAAAA: Sending packet MESSAGE data 2/voice,["logs",{"text":"Transcribing segments..."}]
INFO:voice:Transcribing segments...
Using cache found in C:\Users\Gregory Betsey/.cache\torch\hub\snakers4_silero-models_master
torchaudio\backend\utils.py:63: UserWarning: The interface of "soundfile" backend is planned to change in 0.8.0 to match that of "sox_io" backend and the current interface will be removed in 0.9.0. To use the new interface, do torchaudio.USE_SOUNDFILE_LEGACY_INTERFACE = False before setting the backend to "soundfile". Please refer to https://github.com/pytorch/audio/issues/903 for the detail.
Exception in thread Thread-13:
Traceback (most recent call last):
File "application\utils.py", line 47, in background_task
max_seqlength = max(max([len(_) for _ in batch]), 12800)
File "application\utils.py", line 32, in create_dataset
if wav.size(0) > 1:
File "dataset\forced_alignment\align.py", line 123, in align
File "dataset\transcribe.py", line 34, in stt
File "dataset\transcribe.py", line 16, in transcribe
File "torch\hub.py", line 370, in load
File "torch\hub.py", line 399, in _load_local
File "C:\Users\Gregory Betsey/.cache\torch\hub\snakers4_silero-models_master\hubconf.py", line 24, in silero_stt
model, decoder = init_jit_model(model_url=models.stt_models.get(language).latest.jit,
File "C:\Users\Gregory Betsey/.cache\torch\hub\snakers4_silero-models_master\utils.py", line 135, in init_jit_model
model = torch.jit.load(model_path, map_location=device)
File "torch\jit_serialization.py", line 161, in load
RuntimeError: [enforce fail at ..\caffe2\serialize\inline_container.cc:145] .  Could you firstly check that you used the latest executable Version 0.3 as the second error should have been fixed in that release.
If you did use that or the error still occurs could you upload your audio/text to google drive or email it to me at<EMAIL_ADDRESS>so I can run some analysis

@BenAAndrew Thanks for responding. I will send you a download link to your email address. I did not use the "automatic" audiobook method shown in your Youtube video, rather I transcribed the text manually.

Update: I tried the latest release and got this error: [enforce fail at ..\caffe2\serialize\inline_container.cc:145] . PytorchStreamReader failed reading zip archive: failed finding central directory.
Server initialized for threading.
Server initialized for threading.
pydub\utils.py:170: RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work
['C:\Users\GREGOR~1\AppData\Local\Temp\_MEI104602\base_library.zip', 'C:\Users\GREGOR~1\AppData\Local\Temp\_MEI104602', 'synthesis/waveglow/', 'C:\Users\Gregory Betsey']
torchaudio\extension\extension.py:14: UserWarning: torchaudio C++ extension is not available.
torchaudio\backend\utils.py:63: UserWarning: The interface of "soundfile" backend is planned to change in 0.8.0 to match that of "sox_io" backend and the current interface will be removed in 0.9.0. To use the new interface, do torchaudio.USE_SOUNDFILE_LEGACY_INTERFACE = False before setting the backend to "soundfile". Please refer to https://github.com/pytorch/audio/issues/903 for the detail.
INFO:matplotlib.font_manager:Generating new fontManager, this may take some time...
[nltk_data] Downloading package wordnet to C:\Users\GREGOR~1\AppData\L
[nltk_data]     ocal\Temp_MEI104602\nltk_data...
[nltk_data]   Package wordnet is already up-to-date!
INSTALLING FFMPEG
VERIFYING FFMPEG INSTALL
WARNING:werkzeug:WebSocket transport not available. Install eventlet or gevent and gevent-websocket for improved performance.

Serving Flask app "main" (lazy loading)
Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.

INFO:werkzeug:<IP_ADDRESS> - - [01/Apr/2021 20:28:14] "GET /socket.io/?EIO=4&transport=polling&t=NYGQCZn&sid=CxB55ktHT5jOvFCmAAAA HTTP/1.1" 200 -
INFO:engineio.server:CxB55ktHT5jOvFCmAAAA: Sending packet MESSAGE data 2/voice,["logs",{"text":"Coverting data\datasets\JamesEarlJones\audio.mp3..."}]
INFO:voice:Coverting data\datasets\JamesEarlJones\audio.mp3...
ffmpeg version 4.3.2-2021-02-27-essentials_build-www.gyan.dev Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 10.2.0 (Rev6, Built by MSYS2 project)
configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband
libavutil      56. 51.100 / 56. 51.100
libavcodec     58. 91.100 / 58. 91.100
libavformat    58. 45.100 / 58. 45.100
libavdevice    58. 10.100 / 58. 10.100
libavfilter     7. 85.100 /  7. 85.100
libswscale      5.  7.100 /  5.  7.100
libswresample   3.  7.100 /  3.  7.100
libpostproc    55.  7.100 / 55.  7.100
Input #0, mp3, from 'data\datasets\JamesEarlJones\audio.mp3':
Duration: 02:12:54.56, start: 0.025057, bitrate: 96 kb/s
Stream #0:0: Audio: mp3, 44100 Hz, mono, fltp, 96 kb/s
Metadata:
encoder         : LAME3.100
Stream mapping:
Stream #0:0 -> #0:0 (mp3 (mp3float) -> pcm_s16le (native))
Press [q] to stop, [?] for help
Output #0, wav, to 'data\datasets\JamesEarlJones\audio-converted.wav':
Metadata:
ISFT            : Lavf58.45.100
Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 22050 Hz, mono, s16, 352 kb/s
Metadata:
encoder         : Lavc58.91.100 pcm_s16le
size=  343434kB time=02:12:54.52 bitrate= 352.8kbits/s speed=1.3e+03x
video:0kB audio:343434kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000022%
emitting event "logs" to all [/voice]
INFO:socketio.server:emitting event "logs" to all [/voice]
CxB55ktHT5jOvFCmAAAA: Sending packet MESSAGE data 2/voice,["logs",{"text":"Loading script from data\datasets\JamesEarlJones\text.txt..."}]
INFO:werkzeug:<IP_ADDRESS> - - [01/Apr/2021 20:28:20] "GET /socket.io/?EIO=4&transport=polling&t=NYGQDj5&sid=CxB55ktHT5jOvFCmAAAA HTTP/1.1" 200 -
INFO:engineio.server:CxB55ktHT5jOvFCmAAAA: Sending packet MESSAGE data 2/voice,["logs",{"text":"Loading script from data\datasets\JamesEarlJones\text.txt..."}]
INFO:voice:Loading script from data\datasets\JamesEarlJones\text.txt...
emitting event "logs" to all [/voice]
INFO:socketio.server:emitting event "logs" to all [/voice]
CxB55ktHT5jOvFCmAAAA: Sending packet MESSAGE data 2/voice,["logs",{"text":"Searching text for matching fragments..."}]
INFO:engineio.server:CxB55ktHT5jOvFCmAAAA: Sending packet MESSAGE data 2/voice,["logs",{"text":"Searching text for matching fragments..."}]
INFO:voice:Searching text for matching fragments...
INFO:werkzeug:<IP_ADDRESS> - - [01/Apr/2021 20:28:20] "emitting event "logs" to all [/voice]
GET /socket.io/?EIO=4&transport=polling&t=NYGQFEN&sid=CxB55ktHT5jOvFCmAAAA HTTP/1.1" 200 -
INFO:socketio.server:emitting event "logs" to all [/voice]
CxB55ktHT5jOvFCmAAAA: Sending packet MESSAGE data 2/voice,["logs",{"text":"Changing sample rate..."}]
INFO:engineio.server:CxB55ktHT5jOvFCmAAAA: Sending packet MESSAGE data 2/voice,["logs",{"text":"Changing sample rate..."}]
INFO:voice:Changing sample rate...
INFO:werkzeug:<IP_ADDRESS> - - [01/Apr/2021 20:28:20] "GET /socket.io/?EIO=4&transport=polling&t=NYGQFF7&sid=CxB55ktHT5jOvFCmAAAA HTTP/1.1" 200 -
emitting event "logs" to all [/voice]
INFO:socketio.server:emitting event "logs" to all [/voice]
CxB55ktHT5jOvFCmAAAA: Sending packet MESSAGE data 2/voice,["logs",{"text":"Fetching segments..."}]
INFO:werkzeug:<IP_ADDRESS> - - [01/Apr/2021 20:28:21] "GET /socket.io/?EIO=4&transport=polling&t=NYGQFFF&sid=CxB55ktHT5jOvFCmAAAA HTTP/1.1" 200 -
INFO:engineio.server:CxB55ktHT5jOvFCmAAAA: Sending packet MESSAGE data 2/voice,["logs",{"text":"Fetching segments..."}]
INFO:voice:Fetching segments...
emitting event "logs" to all [/voice]
INFO:socketio.server:emitting event "logs" to all [/voice]
CxB55ktHT5jOvFCmAAAA: Sending packet MESSAGE data 2/voice,["logs",{"text":"Matching segments..."}]
INFO:werkzeug:<IP_ADDRESS> - - [01/Apr/2021 20:28:23] "GET /socket.io/?EIO=4&transport=polling&t=NYGQFaD&sid=CxB55ktHT5jOvFCmAAAA HTTP/1.1" 200 -
INFO:engineio.server:CxB55ktHT5jOvFCmAAAA: Sending packet MESSAGE data 2/voice,["logs",{"text":"Matching segments..."}]
INFO:voice:Matching segments...
emitting event "logs" to all [/voice]
INFO:socketio.server:emitting event "logs" to all [/voice]
CxB55ktHT5jOvFCmAAAA: Sending packet MESSAGE data 2/voice,["logs",{"text":"Generating segments..."}]
INFO:engineio.server:CxB55ktHT5jOvFCmAAAA: Sending packet MESSAGE data 2/voice,["logs",{"text":"Generating segments..."}]
INFO:voice:Generating segments...
emitting event "progress" to all [/voice]
INFO:socketio.server:emitting event "progress" to all [/voice]
CxB55ktHT5jOvFCmAAAA: Sending packet MESSAGE data 2/voice,["progress",{"number":" 1","total":"2725"}]
INFO:engineio.server:CxB55ktHT5jOvFCmAAAA: Sending packet MESSAGE data 2/voice,["progress",{"number":" 1","total":"2725"}]
INFO:voice:Progress - 1/2725
INFO:werkzeug:<IP_ADDRESS> - - [01/Apr/2021 20:28:23] "GET /socket.io/?EIO=4&transport=polling&t=NYGQG4i&sid=CxB55ktHT5jOvFCmAAAA HTTP/1.1" 200 -
Using cache found in C:\Users\Gregory Betsey/.cache\torch\hub\snakers4_silero-models_master
torchaudio\backend\utils.py:63: UserWarning: The interface of "soundfile" backend is planned to change in 0.8.0 to match that of "sox_io" backend and the current interface will be removed in 0.9.0. To use the new interface, do torchaudio.USE_SOUNDFILE_LEGACY_INTERFACE = False before setting the backend to "soundfile". Please refer to https://github.com/pytorch/audio/issues/903 for the detail.
error logging recieved invalid response
emitting event "error" to all [/voice]
INFO:socketio.server:emitting event "error" to all [/voice]
CxB55ktHT5jOvFCmAAAA: Sending packet MESSAGE data 2/voice,["error",{"type":"RuntimeError","text":"[enforce fail at ..\caffe2\serialize\inline_container.cc:145] . PytorchStreamReader failed reading zip archive: failed finding central directory","stacktrace":"Traceback (most recent call last):\n  File "application\utils.py", line 63, in background_task\n  File "application\utils.py", line 39, in create_dataset\n  File "dataset\clip_generator.py", line 60, in clip_generator\n  File "dataset\forced_alignment\align.py", line 69, in process_segments\n  File "dataset\transcribe.py", line 16, in transcribe\n  File "torch\hub.py", line 370, in load\n  File "torch\hub.py", line 399, in _load_local\n  File "C:\Users\Gregory Betsey/.cache\torch\hub\snakers4_silero-models_master\hubconf.py", line 24, in silero_stt\n    model, decoder = init_jit_model(model_url=models.stt_models.get(language).latest.jit,\n  File "C:\Users\Gregory Betsey/.cache\torch\hub\snakers4_silero-models_master\utils.py", line 135, in init_jit_model\n    model = torch.jit.load(model_path, map_location=device)\n  File "torch\jit\_serialization.py", line 161, in load\nRuntimeError: [enforce fail at ..\caffe2\serialize\inline_container.cc:145] . PytorchStreamReader failed reading zip archive: failed finding central directory\n"}]
INFO:werkzeug:<IP_ADDRESS> - - [01/Apr/2021 20:28:34] "GET /socket.io/?EIO=4&transport=polling&t=NYGQG4q&sid=CxB55ktHT5jOvFCmAAAA HTTP/1.1" 200 -
INFO:engineio.server:CxB55ktHT5jOvFCmAAAA: Sending packet MESSAGE data 2/voice,["error",{"type":"RuntimeError","text":"[enforce fail at ..\caffe2\serialize\inline_container.cc:145] . PytorchStreamReader failed reading zip archive: failed finding central directory","stacktrace":"Traceback (most recent call last):\n  File "application\utils.py", line 63, in background_task\n  File "application\utils.py", line 39, in create_dataset\n  File "dataset\clip_generator.py", line 60, in clip_generator\n  File "dataset\forced_alignment\align.py", line 69, in process_segments\n  File "dataset\transcribe.py", line 16, in transcribe\n  File "torch\hub.py", line 370, in load\n  File "torch\hub.py", line 399, in _load_local\n  File "C:\Users\Gregory Betsey/.cache\torch\hub\snakers4_silero-models_master\hubconf.py", line 24, in silero_stt\n    model, decoder = init_jit_model(model_url=models.stt_models.get(language).latest.jit,\n  File "C:\Users\Gregory Betsey/.cache\torch\hub\snakers4_silero-models_master\utils.py", line 135, in init_jit_model\n    model = torch.jit.load(model_path, map_location=device)\n  File "torch\jit\_serialization.py", line 161, in load\nRuntimeError: [enforce fail at ..\caffe2\serialize\inline_container.cc:145] . PytorchStreamReader failed reading zip archive: failed finding central directory\n"}]
[enforce fail at ..\caffe2\serialize\inline_container.cc:145] . PytorchStreamReader failed reading zip archive: failed finding central directory
CxB55ktHT5jOvFCmAAAA: Sending packet PING data None
INFO:engineio.server:CxB55ktHT5jOvFCmAAAA: Sending packet PING data None
CxB55ktHT5jOvFCmAAAA: Client is gone, closing socket
INFO:engineio.server:CxB55ktHT5jOvFCmAAAA: Client is gone, closing socket
CxB55ktHT5jOvFCmAAAA: Client is gone, closing socket
INFO:engineio.server:CxB55ktHT5jOvFCmAAAA: Client is gone, closing socket

@GregoryBetsey if you look at the folder which contains your .exe, is there a file called latest_silero_models.yml ?

Yes, it does. I ran it through edge this time and got farther than before but got a new error this time: cannot reshape tensor of 0 elements into shape [-1, 0] because the unspecified dimension size -1 can be any value and is ambiguous.
Error.txt

I'll investigate this and get back to you.

@GregoryBetsey It the latest build 0.4.1 I've added some extra validation to the transcription process which may fix the bug. Could you give it a go?

@GregoryBetsey It the latest build 0.4.1 I've added some extra validation to the transcription process which may fix the bug. Could you give it a go?

Thanks. I tried the latest built today any got stuck on the "generating segments..." section.  I will attach the log file.
Error 4.4.2021.txt

@GregoryBetsey Thank you for the error log. The issue seems to be with the torchaudio library not being able to change the audio sample rate. I will investigate now

@GregoryBetsey I've removed the code throwing the bug and replaced it with a different library. If you get a minute could you try release 0.5.1?

I gave it a go and got a different error this time: The expanded size of the tensor (12800) must match the existing size (0) at non-singleton dimension 0.  Target sizes: [12800].  Tensor sizes: [0]
Error.txt

@GregoryBetsey did this error occur with the data source you sent to me?

@GregoryBetsey I haven't been able to replicate the issue but I have identified what may have caused it and tried to fix in 0.5.3.

Update: I tried the latest release. I got a different error: data\datasets\JamesEarlJones\wavs\1470_2520.wav wav file is empty

Text.txt

@GregoryBetsey very interesting, seems like it can't open that file. Could you find that file and make sure it is playable

@GregoryBetsey very interesting, seems like it can't open that file. Could you find that file and make sure it is playable. If it is could you email it to me?

I am using the same audio and text transcript that I sent to you using google drive. The audio file is fine. If you need the link again, I can send it to you.

@GregoryBetsey I've produced the dataset and that clip (1470_2520.wav) is playable and can be transcribed. Just to double-check did you try playing the original audio or the 1470_2520.wav clip?

@GregoryBetsey, I've been able to reproduce this error once. It seems to be that FFmpeg (very rarely) corrupts the audio when trimming. Handling of this will be added in an upcoming release

@GregoryBetsey, I've been able to reproduce this error once. It seems to be that FFmpeg (very rarely) corrupts the audio when trimming. Handling of this will be added in an upcoming release

Thanks for the update. I haven't got past the error.

Hi @GregoryBetsey, thank you for your patience. This should be handled in 0.6. Please let me know how you get on

your

Thanks for working on this. I don't know if this is progress, but it actually started generating segments this time except I got a message saying the audio can't be transcribed. [Again, I using the files from my Google Drive].

Log.txt

@GregoryBetsey That's interesting. It looks like there's an issue with FFmpeg cutting the clips. Could you do the following:

Check if there is a folder called 'ffmpeg' in the same directory as the application. If there is, delete it.
Try installing FFmpeg manually. i.e. following https://www.youtube.com/watch?v=hD9bQE4R6eA

Okay, the app is generating the audio files [attachment 01] and I installed ffmpeg to C:\ and is working [attachment 02], I deleted FFmpeg in the app folder but I still get errors [attachment 04]

]

FFmpeg

Hi @GregoryBetsey, could you try running the following command:
ffmpeg -ss 00:00:00.000 -t 10.0 -i filename test.wav where filename is the name of your original audio file (i.e. audio.mp3). Please make sure you run this command from the same directory as where the original audio file is.
Then check if it produces a new audio file called test.wav that is playable and 10 seconds long

It isn't working. Unless I set it up wrong

Hi @GregoryBetsey, please replace the word filename with your audio name rather than test.wav. It should look like this:
ffmpeg -ss 00:00:00.000 -t 10.0 -i Matthew.mp3 test.wav

Okay, it worked now.

.

Does that audio play back OK?

Does that audio playback OK? If so could you run this and check that Matthew-converted.wav is playable:
ffmpeg -i Matthew.mp3 -b:a 32k -ac 1 -map a -ar 22050 Matthew-converted.wav

Yes, it works.

Ok, so now could you run ffmpeg -ss 00:00:00.000 -t 10.0 -i Matthew-converted.wav test.wav and check the result

Yes, it works.

Yes, I

Okay, the app is generating the audio files and I installed ffmpeg to C:\ and is working. I deleted FFmpeg in the app folder but I still get errors.

Yes I I did that here. The app generates clips. It says it cannot transcribe
Error Log.txt
at the end and then it deletes all the generated waves.

@GregoryBetsey whilst it is running could you copy one of the generated wav files. It should be saved to data\datasets\ dataset_name\wavs where dataset_name is the name of the dataset. Then could you check if that is playable?

The wavs file can be opened, but since the generated length is 00:00:00 there isn't any audio sound. [see attachment]
Example.zip

Ok so FFmpeg isn't working when cutting the audio as all of these clips should be at least 1 second long. I don't understand why the command would outside of the app but not in it as both should be using the same FFmpeg and command. I will try and resolve this week

also experiencing this issue exactly as described in #27 (nothing but "Could not transcribe data\datasets..." messages and zero-length wave files despite having a tested working ffmpeg install) when attempting to build either my own or the provided demo datasets.
Something I noticed that does seem off is that regardless of whether my source audio file is an mp3 or a wave, the application logfile always says that it is converting from an mp3. eg:

Coverting data\datasets\TestVoice\audio.mp3...
Loading script from data\datasets\TestVoice\text.txt...
Searching text for matching fragments...
Changing sample rate...
Fetching segments...
Matching segments...
Generating segments...
Could not transcribe data\datasets\TestVoice\wavs\1650_2730.wav
Could not transcribe data\datasets\TestVoice\wavs\5850_7680.wav
Could not transcribe data\datasets\TestVoice\wavs\7680_9330.wav
Could not transcribe data\datasets\TestVoice\wavs\9450_10530.wav
Could not transcribe data\datasets\TestVoice\wavs\10560_12720.wav

The audio file being converted above was a wave file named "this_is_a_wave_file.wav". Having said that, the "audio-converted.wav" and "audio-converted-16000.wav" files generated in the dataset's working directly isare playable and seemingly in the right format according to VLC Player:

Stream 0 ("audio-converted.wav")
Codec: PCM S16 LE (s16l)
Type: Audio
Channels: Mono
Sample rate: 22050 Hz
Bits per sample: 16

Stream 0 ("audio-converted-16000.wav")
Codec: PCM S16 LE (s16l)
Type: Audio
Channels: Mono
Sample rate: 16000 Hz
Bits per sample: 16

It's just the separated out segments that are inoperable (nothing but 78 bytes of metadata in each one.)

@RayDAnt3D thank you for this info. This seems to be an issue for several people so it is my number one priority. I'm hoping to have it fixed by Sunday 🤞

@GregoryBetsey @RayDAnt3D I'm struggling to figure out what's causing this issue & I can't get it to replicate locally. The issue must be to do with either the FFmpeg install or one of the commands.
To test this I've produced the following: https://drive.google.com/drive/folders/17zT6fg7V_gu_kMVZs2ERPmfGyFRuDhWg?usp=sharing
In there you'll find a test audio file and a script. Could you try downloading both & running the script. Then check that it produces an audio file called test-final.wav that is playable & 3 seconds long.
Thank you for your patience

@GregoryBetsey @RayDAnt3D I'm struggling to figure out what's causing this issue & I can't get it to replicate locally. The issue must be to do with either the FFmpeg install or one of the commands.
To test this I've produced the following: https://drive.google.com/drive/folders/17zT6fg7V_gu_kMVZs2ERPmfGyFRuDhWg?usp=sharing
In there you'll find a test audio file and a script. Could you try downloading both & running the script. Then check that it produces an audio file called test-final.wav that is playable & 3 seconds long.
Thank you for your patience

Hey I downloaded it and ran the script. I can confirm it produced a 3 second playable clip called "test-clip.wav"

Also downloaded/ran the test script and audio clip and got the following tested working audio files generated:

test-clean.wav
test-clean-16000.wav
test-clip.wav

No "test-final.wav" though.

@RayDAnt3D @arthur465 Sorry I meant test-clip.wav. So it sounds like the FFmpeg commands are working for all of you. I'm going to try and create a release today which has improved error logging on the clip building process so we can find out where it is failing in the app

@GregoryBetsey @arthur465 @RayDAnt3D I've created a new release here: https://github.com/BenAAndrew/Voice-Cloning-App/releases/tag/v0.6.2. It won't fix the issue but it might help tell us what the error is. It will now check the output of the FFmpeg commands and will also show it running in the console. Could you give it a go and let me know what happens

@GregoryBetsey @arthur465 @RayDAnt3D I've created a new release here: https://github.com/BenAAndrew/Voice-Cloning-App/releases/tag/v0.6.2. It won't fix the issue but it might help tell us what the error is. It will now check the output of the FFmpeg commands and will also show it running in the console. Could you give it a go and let me know what happens

Ok here's the error I get
INFO:voice:Progress - 391/416
INFO:werkzeug:<IP_ADDRESS> - - [23/Apr/2021 11:44:13] "GET /socket.io/?EIO=4&transport=polling&t=Na02_Cm&sid=7KcT1PoIXIKbnCvUAAAA HTTP/1.1" 200 -
ffmpeg version 2021-04-18-git-d43b26b30d-full_build-www.gyan.dev Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 10.2.0 (Rev6, Built by MSYS2 project)
configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libglslang --enable-vulkan --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
libavutil      56. 73.100 / 56. 73.100
libavcodec     58.136.101 / 58.136.101
libavformat    58. 78.100 / 58. 78.100
libavdevice    58. 14.100 / 58. 14.100
libavfilter     7.111.100 /  7.111.100
libswscale      5. 10.100 /  5. 10.100
libswresample   3. 10.100 /  3. 10.100
libpostproc    55. 10.100 / 55. 10.100
Guessed Channel Layout for Input Stream #0.0 : mono
Input #0, wav, from 'data\datasets\Arthur 2\audio-converted.wav':
Metadata:
encoder         : Lavf58.78.100
Duration: 00:17:31.99, bitrate: 352 kb/s
Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 22050 Hz, mono, s16, 352 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (pcm_s16le (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
Output #0, wav, to 'data\datasets\Arthur 2\wavs\994140_995250.wav':
Metadata:
ISFT            : Lavf58.78.100
Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 22050 Hz, mono, s16, 352 kb/s
Metadata:
encoder         : Lavc58.136.101 pcm_s16le
size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)
emitting event "logs" to all [/voice]
INFO:socketio.server:emitting event "logs" to all [/voice]
7KcT1PoIXIKbnCvUAAAA: Sending packet MESSAGE data 2/voice,["logs",{"text":"Could not transcribe data\datasets\Arthur 2\wavs\994140_995250.wav"}]
INFO:werkzeug:<IP_ADDRESS> - - [23/Apr/2021 11:44:13] "GET /socket.io/?EIO=4&transport=polling&t=Na02_Cs&sid=7KcT1PoIXIKbnCvUAAAA HTTP/1.1" 200 -
INFO:engineio.server:7KcT1PoIXIKbnCvUAAAA: Sending packet MESSAGE data 2/voice,["logs",{"text":"Could not transcribe data\datasets\Arthur 2\wavs\994140_995250.wav"}]
INFO:voice:Could not transcribe data\datasets\Arthur 2\wavs\994140_995250.wav
emitting event "progress" to all [/voice]
INFO:socketio.server:emitting event "progress" to all [/voice]
7KcT1PoIXIKbnCvUAAAA: Sending packet MESSAGE data 2/voice,["progress",{"number":" 392","total":"416"}]
INFO:engineio.server:7KcT1PoIXIKbnCvUAAAA: Sending packet MESSAGE data 2/voice,["progress",{"number":" 392","total":"416"}]

Here's what I get for the first sample cutting attempt (and every other thereafter) using the Ayaode dataset assets:

INFO:voice:Generating segments...
ffmpeg version 2021-04-18-git-d43b26b30d-full_build-www.gyan.dev Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 10.2.0 (Rev6, Built by MSYS2 project)
configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libglslang --enable-vulkan --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
libavutil      56. 73.100 / 56. 73.100
libavcodec     58.136.101 / 58.136.101
libavformat    58. 78.100 / 58. 78.100
libavdevice    58. 14.100 / 58. 14.100
libavfilter     7.111.100 /  7.111.100
libswscale      5. 10.100 /  5. 10.100
libswresample   3. 10.100 /  3. 10.100
libpostproc    55. 10.100 / 55. 10.100
Guessed Channel Layout for Input Stream #0.0 : mono
Input #0, wav, from 'data\datasets\Ayoade\audio-converted.wav':
Metadata:
artist          : Richard Ayoade
comment         : At last, the definitive audiobook about perhaps the best cabin crew dramedy ever filmed: View from the Top starring Gwyneth Paltrow. In Ayoade on Top, Richard Ayoade, perhaps one of the most 'insubstantial' people of our age, takes us on a journey from Pe
copyright       : ©2019 Richard Ayoade (P)2019 Audible, Ltd
date            : 2019
genre           : Audiobook
title           : 1 - Ayoade on Top
album           : Ayoade on Top
track           : 1/1
encoder         : Lavf58.78.100
Duration: 04:39:25.09, bitrate: 352 kb/s
Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 22050 Hz, mono, s16, 352 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (pcm_s16le (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
Output #0, wav, to 'data\datasets\Ayoade\wavs\60_1680.wav':
Metadata:
IART            : Richard Ayoade
ICMT            : At last, the definitive audiobook about perhaps the best cabin crew dramedy ever filmed: View from the Top starring Gwyneth Paltrow. In Ayoade on Top, Richard Ayoade, perhaps one of the most 'insubstantial' people of our age, takes us on a journey from Pe
ICOP            : ©2019 Richard Ayoade (P)2019 Audible, Ltd
ICRD            : 2019
IGNR            : Audiobook
INAM            : 1 - Ayoade on Top
IPRD            : Ayoade on Top
IPRT            : 1/1
ISFT            : Lavf58.78.100
Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 22050 Hz, mono, s16, 352 kb/s
Metadata:
encoder         : Lavc58.136.101 pcm_s16le
size=       1kB time=00:00:00.00 bitrate=N/A speed=   0x
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)
Using cache found in C:\Users\gbase/.cache\torch\hub\snakers4_silero-models_master
NpmL9qWiQt7YXzLnAAAA: Sending packet PING data None
INFO:engineio.server:NpmL9qWiQt7YXzLnAAAA: Sending packet PING data None
INFO:werkzeug:<IP_ADDRESS> - - [23/Apr/2021 15:19:47] "GET /socket.io/?EIO=4&transport=polling&t=Na0B7hC&sid=NpmL9qWiQt7YXzLnAAAA HTTP/1.1" 200 -
NpmL9qWiQt7YXzLnAAAA: Received packet PONG data
INFO:engineio.server:NpmL9qWiQt7YXzLnAAAA: Received packet PONG data
INFO:werkzeug:<IP_ADDRESS> - - [23/Apr/2021 15:19:47] "POST /socket.io/?EIO=4&transport=polling&t=Na0B84R&sid=NpmL9qWiQt7YXzLnAAAA HTTP/1.1" 200 -
emitting event "logs" to all [/voice]
INFO:socketio.server:emitting event "logs" to all [/voice]
NpmL9qWiQt7YXzLnAAAA: Sending packet MESSAGE data 2/voice,["logs",{"text":"Could not transcribe data\datasets\Ayoade\wavs\60_1680.wav"}]
INFO:engineio.server:NpmL9qWiQt7YXzLnAAAA: Sending packet MESSAGE data 2/voice,["logs",{"text":"Could not transcribe data\datasets\Ayoade\wavs\60_1680.wav"}]
INFO:voice:Could not transcribe data\datasets\Ayoade\wavs\60_1680.wav
emitting event "progress" to all [/voice]
INFO:socketio.server:emitting event "progress" to all [/voice]
NpmL9qWiQt7YXzLnAAAA: Sending packet MESSAGE data 2/voice,["progress",{"number":" 1","total":"5021"}]
INFO:engineio.server:NpmL9qWiQt7YXzLnAAAA: Sending packet MESSAGE data 2/voice,["progress",{"number":" 1","total":"5021"}]
INFO:voice:Progress - 1/5021

For what it's worth, here also is my app log at first startup:

[12568] WARNING: file already exists but should not: C:\Users\gbase\AppData\Local\Temp_MEI125682\torch_C.cp38-win_amd64.pyd
Server initialized for threading.
Server initialized for threading.
torchaudio\extension\extension.py:14: UserWarning: torchaudio C++ extension is not available.
torchaudio\backend\utils.py:63: UserWarning: The interface of "soundfile" backend is planned to change in 0.8.0 to match that of "sox_io" backend and the current interface will be removed in 0.9.0. To use the new interface, do torchaudio.USE_SOUNDFILE_LEGACY_INTERFACE = False before setting the backend to "soundfile". Please refer to https://github.com/pytorch/audio/issues/903 for the detail.
INFO:matplotlib.font_manager:Generating new fontManager, this may take some time...
[nltk_data] Downloading package wordnet to
[nltk_data]     C:\Users\gbase\AppData\Local\Temp_MEI125682\nltk_data
[nltk_data]     ...
[nltk_data]   Package wordnet is already up-to-date!
WARNING:werkzeug:WebSocket transport not available. Install eventlet or gevent and gevent-websocket for improved performance.

Serving Flask app "main" (lazy loading)
Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
Debug mode: off
INFO:werkzeug: * Running on http://<IP_ADDRESS>:5000/ (Press CTRL+C to quit)
INFO:werkzeug:<IP_ADDRESS> - - [23/Apr/2021 15:17:35] "GET / HTTP/1.1" 200 -

Did some source code snooping and noticed that running:

start_timestamp = datetime.fromtimestamp(start / 1000).strftime("%H:%M:%S.%f")

As appears in dataset\audio_processing.py inside the cut_audio() routine with start=60 (as the first Ayoade clip would be) on the Python commandline like so:

from subprocess import call
from pathlib import Path
from datetime import datetime
from pydub import AudioSegment
import os
datetime.fromtimestamp(60 / 1000).strftime("%H:%M:%S.%f")

results in the following output:

'19:00:00.060000'

Pretty sure that additional '19:00:00.000000' shouldn't be there. The root of the problem may just be a date/time localization mismatch.

@RayDAnt3D great find. What time localization do you use?

I tried the latest version (0.63) just to see if anything was different-----the initial files it creates from my sample mp3------audio.mp3, audio-converted.wav, and audio-converted-16000.wav are all fine, same as before.   The many individual clip-wavs inside the folder, are all "empty" files, with length 00:00:00, size 78 bytes.  I believe that's the same as before (I stopped it before it auto-deleted them this time, so I could check them)
Error when trying to process are similar to the post above:
Guessed Channel Layout for Input Stream #0.0 : mono
Input #0, wav, from 'data\datasets\Kate\audio-converted.wav':
Metadata:
encoder         : Lavf58.76.100
Duration: 04:18:04.84, bitrate: 352 kb/s
Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 22050 Hz, mono, s16, 352 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (pcm_s16le (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
Output #0, wav, to 'data\datasets\Kate\wavs\1436520_1438290.wav':
Metadata:
ISFT            : Lavf58.76.100
Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 22050 Hz, mono, s16, 352 kb/s
Metadata:
encoder         : Lavc58.134.100 pcm_s16le
size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)
emitting event "logs" to all [/voice]
INFO:socketio.server:emitting event "logs" to all [/voice]
MRg0ipT8vkRYLkMJAAAA: Sending packet MESSAGE data 2/voice,["logs",{"text":"Could not transcribe data\datasets\Kate\wavs\1436520_1438290.wav"}]
INFO:werkzeug:<IP_ADDRESS> - - [24/Apr/2021 12:19:54] "GET /socket.io/?EIO=4&transport=polling&t=Na4vHg3&sid=MRg0ipT8vkRYLkMJAAAA HTTP/1.1" 200 -
INFO:engineio.server:MRg0ipT8vkRYLkMJAAAA: Sending packet MESSAGE data 2/voice,["logs",{"text":"Could not transcribe data\datasets\Kate\wavs\1436520_1438290.wav"}]
INFO:voice:Could not transcribe data\datasets\Kate\wavs\1436520_1438290.wav
emitting event "progress" to all [/voice]
INFO:socketio.server:emitting event "progress" to all [/voice]
MRg0ipT8vkRYLkMJAAAA: Sending packet MESSAGE data 2/voice,["progress",{"number":" 356","total":"5134"}]
INFO:engineio.server:MRg0ipT8vkRYLkMJAAAA: Sending packet MESSAGE data 2/voice,["progress",{"number":" 356","total":"5134"}]
INFO:voice:Progress - 356/5134

@BenAAndrew US EST (technically currently EDT.)

@RayDAnt3D @ironpanther @arthur465 @GregoryBetsey I've rewritten the timestamp function to fix this. Will be added in release 0.7. Please test if you get a chance

@RayDAnt3D @ironpanther @arthur465 @GregoryBetsey I've rewritten the timestamp function to fix this. Will be added in release 0.7. Please test if you get a chance

It looks like it's working!

Release 0.7 fixed it for me (I've been keeping an eye on this repo and this issue so I can know when it got fixed). I'm also excited about the HiFi-GAN addition. Thanks for developing this by the way, you're doing an awesome job!

It's fixed for me! Currently doing my first training run now.

The .wav generation/clips seems to work now, and it gets much further, but it's been "stuck in a loop" for a while now----I have:
Coverting data\datasets\Kate\audio.mp3...
Loading script from data\datasets\Kate\text.txt...
Searching text for matching fragments...
Changing sample rate...
Fetching segments...
Matching segments...
Generating segments...
  I think that being able to choose chrome etc, may work better, as my PC has 4 different browsers, and all behave differently when running scripts.

Update----I "let the browser window it opened automatically" just sit there, and opened a new browser window but in chrome, and that worked.  So I think either "let user choose browser, or default to chrome browser instead of OS browser" is a needed option.

@ironpanther thanks for the feedback. Trying to handle the non-default browser is a bit complex and also the browser shouldn't affect performance. Additionally, the app does not need an internet connection to run (despite running in the browser).
Changing the checkpoint frequency is a good idea and I will add in the future

Closing as everyone seems happy this particular issue is now fixed. If it has not been fixed please reopen it.


How to i install this?

Hello, how can I install this without pip? From source?

Yes, see at the bottom of this section in the main README: https://github.com/Dao-AILab/flash-attention/blob/7ef24848cf2f855077cef88fe122775b727dcd74/README.md#flashattention-3-beta-release
cd hopper
python setup.py install

Do you mean?
git clone https://github.com/Dao-AILab/flash-attention/
cd hopper
python setup.py install

Yes, exactly! To be really pedantic, you'd have to do cd flash-attention/hopper instead of cd hopper if following your commands exactly. :)


🐛 App crashes on launch  after obfuscated by Dexguard in Android

What's happening?
We're using vision-camera for scanning the barcode. We had no error while running on debug and release mode and the application worked as expected when the obfuscation was disabled. However, after obfuscating the application by using dexguard(enterprise proguard) , the application started to crash on splash screen. I couldn't find any keep rule in the documentation.
Before installing the library, there was no crash in the application.
Reproduceable Code
const device = useCameraDevice('back');

   device && (
            <View style={{ flex: 1 }}>
              <Camera
                testID="rncamera-view"
                fps={30}
                codeScanner={codeScanner}
                device={device}
                style={StyleSheet.absoluteFill}
                isActive={true}
              />
              <BarcodeMask
                outerMaskOpacity={0.5}
                lineAnimationDuration={1200}
                width={Dimensions.get('screen').width * 0.7}
                height={Dimensions.get('screen').height * 0.25}
              />
              {overlay && barCode === '' && (
                <CameraOverlay>
                  <Image
                    source={warningImage}
                    style={{ width: 40, height: 40, flexDirection: 'column', marginRight: 20 }}
                  />
                  <CameraOverlayText>{t('overlay')}</CameraOverlayText>
                </CameraOverlay>
              )}
            </View>

Relevant log output
2023-12-22 09:29:53.334 28312-28312 SoLoader                com.reactnativeproject.test           V  libjscexecutor.so not found on /data/data/com.reactnativeproject.test/lib-main
2023-12-22 09:29:53.334 28312-28312 SoLoader                com.reactnativeproject.test           V  libjscexecutor.so not found on /data/app/~~YWbcVz0p-0omcS7eIIwWqg==/com.reactnativeproject.test-Ypvl8TOzMBYvTEKDBqMl-Q==/lib/arm64
2023-12-22 09:29:53.334 28312-28312 SoLoader                com.reactnativeproject.test           V  libjscexecutor.so not found on /system/lib64
2023-12-22 09:29:53.334 28312-28312 SoLoader                com.reactnativeproject.test           V  libjscexecutor.so not found on /vendor/lib64
2023-12-22 09:29:53.336 28312-28312 SoLoader                com.reactnativeproject.test           E  couldn't find DSO to load: libjscexecutor.so
                                                                                SoSource 0: com.facebook.soloader.ApkSoSource[root = /data/data/com.reactnativeproject.test/lib-main flags = 1]
                                                                                SoSource 1: com.facebook.soloader.DirectorySoSource[root = /data/app/~~YWbcVz0p-0omcS7eIIwWqg==/com.reactnativeproject.test-Ypvl8TOzMBYvTEKDBqMl-Q==/lib/arm64 flags = 0]
                                                                                SoSource 2: com.facebook.soloader.DirectorySoSource[root = /system/lib64 flags = 2]
                                                                                SoSource 3: com.facebook.soloader.DirectorySoSource[root = /vendor/lib64 flags = 2]
                                                                                Native lib dir: /data/app/~~YWbcVz0p-0omcS7eIIwWqg==/com.reactnativeproject.test-Ypvl8TOzMBYvTEKDBqMl-Q==/lib/arm64
                                                                                result: 0
2023-12-22 09:29:53.338 28312-28312 SoLoader                com.reactnativeproject.test           V  libhermes.so not found on /data/data/com.reactnativeproject.test/lib-main
2023-12-22 09:29:53.338 28312-28312 SoLoader                com.reactnativeproject.test           D  libhermes.so found on /data/app/~~YWbcVz0p-0omcS7eIIwWqg==/com.reactnativeproject.test-Ypvl8TOzMBYvTEKDBqMl-Q==/lib/arm64
2023-12-22 09:29:53.338 28312-28312 SoLoader                com.reactnativeproject.test           D  Not resolving dependencies for libhermes.so
2023-12-22 09:29:53.387 28312-28312 SoLoader                com.reactnativeproject.test           V  libhermes_executor.so not found on /data/data/com.reactnativeproject.test/lib-main
2023-12-22 09:29:53.387 28312-28312 SoLoader                com.reactnativeproject.test           D  libhermes_executor.so found on /data/app/~~YWbcVz0p-0omcS7eIIwWqg==/com.reactnativeproject.test-Ypvl8TOzMBYvTEKDBqMl-Q==/lib/arm64
2023-12-22 09:29:53.387 28312-28312 SoLoader                com.reactnativeproject.test           D  Not resolving dependencies for libhermes_executor.so
2023-12-22 09:29:53.790 28312-30992 SoLoader                com.reactnativeproject.test           V  libfbjni.so not found on /data/data/com.reactnativeproject.test/lib-main
2023-12-22 09:29:53.790 28312-30992 SoLoader                com.reactnativeproject.test           V  libfbjni.so not found on /data/app/~~YWbcVz0p-0omcS7eIIwWqg==/com.reactnativeproject.test-Ypvl8TOzMBYvTEKDBqMl-Q==/lib/arm64
2023-12-22 09:29:53.791 28312-30992 SoLoader                com.reactnativeproject.test           V  libfbjni.so not found on /system/lib64
2023-12-22 09:29:53.791 28312-30992 SoLoader                com.reactnativeproject.test           V  libfbjni.so not found on /vendor/lib64
2023-12-22 09:29:53.793 28312-30992 SoLoader                com.reactnativeproject.test           E  couldn't find DSO to load: libfbjni.so
                                                                                SoSource 0: com.facebook.soloader.ApkSoSource[root = /data/data/com.reactnativeproject.test/lib-main flags = 1]
                                                                                SoSource 1: com.facebook.soloader.DirectorySoSource[root = /data/app/~~YWbcVz0p-0omcS7eIIwWqg==/com.reactnativeproject.test-Ypvl8TOzMBYvTEKDBqMl-Q==/lib/arm64 flags = 0]
                                                                                SoSource 2: com.facebook.soloader.DirectorySoSource[root = /system/lib64 flags = 2]
                                                                                SoSource 3: com.facebook.soloader.DirectorySoSource[root = /vendor/lib64 flags = 2]
                                                                                Native lib dir: /data/app/~~YWbcVz0p-0omcS7eIIwWqg==/com.reactnativeproject.test-Ypvl8TOzMBYvTEKDBqMl-Q==/lib/arm64
                                                                                result: 0
2023-12-22 09:29:53.796 28312-30992 AndroidRuntime          com.reactnativeproject.test           E  FATAL EXCEPTION: create_react_context
                                                                                Process: com.reactnativeproject.test, PID: 28312
                                                                                java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libfbjni.so
                                                                                SoSource 0: com.facebook.soloader.ApkSoSource[root = /data/data/com.reactnativeproject.test/lib-main flags = 1]
                                                                                SoSource 1: com.facebook.soloader.DirectorySoSource[root = /data/app/~~YWbcVz0p-0omcS7eIIwWqg==/com.reactnativeproject.test-Ypvl8TOzMBYvTEKDBqMl-Q==/lib/arm64 flags = 0]
                                                                                SoSource 2: com.facebook.soloader.DirectorySoSource[root = /system/lib64 flags = 2]
                                                                                SoSource 3: com.facebook.soloader.DirectorySoSource[root = /vendor/lib64 flags = 2]
                                                                                Native lib dir: /data/app/~~YWbcVz0p-0omcS7eIIwWqg==/com.reactnativeproject.test-Ypvl8TOzMBYvTEKDBqMl-Q==/lib/arm64
                                                                                result: 0
                                                                                at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(Unknown Source:270)
                                                                                at com.facebook.soloader.SoLoader.loadLibraryBySoNameImpl(Unknown Source:124)
                                                                                at com.facebook.soloader.SoLoader.loadLibraryBySoName(Unknown Source:2)
                                                                                at com.facebook.soloader.SoLoader.loadLibrary(Unknown Source:42)
                                                                                at com.facebook.soloader.NativeLoaderToSoLoaderDelegate.loadLibrary(Unknown Source:10)
                                                                                at com.facebook.soloader.nativeloader.NativeLoader.loadLibrary(Unknown Source:8)
                                                                                at com.facebook.soloader.nativeloader.NativeLoader.loadLibrary(Unknown Source:1)
                                                                                at com.facebook.jni.HybridData.<clinit>(Unknown Source:2)
                                                                                at com.facebook.hermes.reactexecutor.HermesExecutor.initHybridDefaultConfig(Native Method)
                                                                                at com.facebook.hermes.reactexecutor.HermesExecutor.<init>(Unknown Source:2)
                                                                                at com.facebook.hermes.reactexecutor.HermesExecutorFactory.create(Unknown Source:8)
                                                                                at com.facebook.react.ReactInstanceManager$5.run(Unknown Source:59)
                                                                                at java.lang.Thread.run(Thread.java:923)

Camera Device
{
  "formats": null,
  "sensorOrientation": "landscape-right",
  "hardwareLevel": "limited",
  "maxZoom": 4,
  "minZoom": 1,
  "maxExposure": 200,
  "supportsLowLightBoost": false,
  "neutralZoom": 1,
  "physicalDevices": [
    "wide-angle-camera"
  ],
  "supportsFocus": true,
  "supportsRawCapture": false,
  "isMultiCam": false,
  "minExposure": -200,
  "name": "BACK (0)",
  "hasFlash": true,
  "hasTorch": true,
  "position": "back",
  "id": "0"
}

Device
Redmi Note 11 ( Android 11), Galaxy A32 ( Android 11)
VisionCamera Version
3.6.13
Can you reproduce this issue in the VisionCamera Example app?
No, I cannot reproduce the issue in the Example app
Additional information

[ ] I am using Expo
[ ] I have enabled Frame Processors (react-native-worklets-core)
[X] I have read the Troubleshooting Guide
[X] I agree to follow this project's Code of Conduct
[X] I searched for similar issues in this repository and found none.

Hey - sorry I don't really think this is related to VisionCamera.
Maybe try removing this line: https://github.com/mrousavy/react-native-vision-camera/blob/7905f2c057869698a4f5afa3182bec4cd2a5fe58/package/android/build.gradle#L145

Hey - did you try to remove this line? If yes, did it work?

Hi @mrousavy
I'm sorry for not getting back to you sooner.
We removed the line you mentioned, but it didn't work. I'll get back to you tomorrow with the details.
Thank you.

Okay thanks - let me know because this is weird haven't seen this before

Hi @mrousavy
I removed the line you mentioned. However, I got a different crash from the application.
 couldn't find DSO to load: libjscexecutor.so
                                                                                SoSource 0: com.facebook.soloader.ApkSoSource[root = /data/data/tr.sisal.streetvendor.test/lib-main flags = 1]
                                                                                SoSource 1: com.facebook.soloader.DirectorySoSource[root = /data/app/~~jU4dZ_nfHW8CmZVGk6dvLA==/tr.sisal.streetvendor.test-OPAHM0LywtyiQJVkT_Q7UQ==/lib/arm64 flags = 0]
                                                                                SoSource 2: com.facebook.soloader.DirectorySoSource[root = /system/lib64 flags = 2]
                                                                                SoSource 3: com.facebook.soloader.DirectorySoSource[root = /vendor/lib64 flags = 2]
                                                                                Native lib dir: /data/app/~~jU4dZ_nfHW8CmZVGk6dvLA==/tr.sisal.streetvendor.test-OPAHM0LywtyiQJVkT_Q7UQ==/lib/arm64
                                                                                result: 0

libjscexecutor.so is also different .so file that is placed in the gradle file of the library. Should I remove it ?

first install this in your device
npm install @react-native-camera/core @react-native-camera/barcode
2)make sure you have linked the packages correctly. If you are using React Native 0.60 or above, auto-linking should work.
3)try this code according to your preferences;

import React, { useEffect, useState } from 'react';
import { StyleSheet, View, Dimensions, Image } from 'react-native';
import Camera from '@react-native-camera/core';
import BarcodeMask from '@react-native-camera/barcode-mask';
import { useCameraDevice } from '@react-native-camera/core';
const CameraScreen = () => {
const device = useCameraDevice('back');
const [barCode, setBarCode] = useState('');
const handleBarCodeRead = (e) => {
setBarCode(e.data);
};
useEffect(() => {
if (barCode !== '') {
// Your code here, for example:
// navigate to a new screen and pass the barCode value
}
}, [barCode]);
return (

{device && (

)}
{barCode && (

<Image
source={require('./path/to/warning/image.png')}
style={styles.warningImage}
/>
Barcode Scanned: {barCode}

)}

);
};
const styles = StyleSheet.create({
container: {
flex: 1,
},
overlay: {
position: 'absolute',
top: 0,
left: 0,
right: 0,
bottom: 0,
backgroundColor: 'rgba(0, 0, 0, 0.5)',
justifyContent: 'center',
alignItems: 'center',
},
warningImage: {
width: 40,
height: 40,
},
warningText: {
color: 'white',
fontSize: 16,
marginTop: 20,
},
});
export default CameraScreen;

We solved the issue by applying the dexguard rules below:
-keepresourcefiles lib/**/libfb*.so,lib/**/libreact*.so,lib/**/libyoga*.so,lib/**/libhermes.so,lib/**/libhermes_executor.so,lib/**/libjsi*.so,*/lib/**/libfb*.so,*/lib/**/libreact*.so,*/lib/**/libyoga*.so,*/lib/**/libhermes.so,*/lib/**/libhermes_executor.so,*/lib/**/libjsi*.so


backup-list ans backup-fetch does not works with swift storage

Hello,
i am using the swift storage. The wal archiving and the backup-push work correclty. In the container there are two folders: wal_005 (which contains the compressed wall files) and basebackups_005 (which contains the backup)
I created a backup with this command:
[root@blue-db-01 data]# sudo -u postgres bash -c "WALE_SWIFT_PREFIX='swift://TEST' SWIFT_AUTHURL='https://xxxxx' SWIFT_REGION='RegionOne' SWIFT_TENANT='xxxxx' SWIFT_USER='xxxxx' SWIFT_PASSWORD='6b6b6505d1ae996216d650bbfd2d107d' /bin/wal-e backup-push /myproject/pg/data "
wal_e.main   INFO     MSG: starting WAL-E
        DETAIL: The subcommand is "backup-push".
        STRUCTURED: time=2017-08-22T08:23:14.207345-00 pid=28333
wal_e.operator.backup INFO     MSG: start upload postgres version metadata
        DETAIL: Uploading to swift://TEST/basebackups_005/base_0000000100000003000000F2_00000040/extended_version.txt.
        STRUCTURED: time=2017-08-22T08:23:14.659697-00 pid=28333
wal_e.operator.backup INFO     MSG: postgres version metadata upload complete
        STRUCTURED: time=2017-08-22T08:23:15.050084-00 pid=28333
wal_e.worker.upload INFO     MSG: beginning volume compression
        DETAIL: Building volume 0.
        STRUCTURED: time=2017-08-22T08:23:15.138564-00 pid=28333
wal_e.worker.upload INFO     MSG: begin uploading a base backup volume
        DETAIL: Uploading to "swift://TEST/basebackups_005/base_0000000100000003000000F2_00000040/tar_partitions/part_00000000.tar.lzo".
        STRUCTURED: time=2017-08-22T08:23:16.100554-00 pid=28333
wal_e.worker.upload INFO     MSG: finish uploading a base backup volume
        DETAIL: Uploading to "swift://TEST/basebackups_005/base_0000000100000003000000F2_00000040/tar_partitions/part_00000000.tar.lzo" complete at 32545.7KiB/s.
        STRUCTURED: time=2017-08-22T08:23:17.279654-00 pid=28333
NOTICE:  pg_stop_backup complete, all required WAL segments have been archived

the backup is correctly pushed. In my container i have the following files:
── BASEBACKUPS_005
    ├── base_0000000100000003000000F2_00000040
    │   ├── extended_version.txt
    │   └── tar_partitions
    │       └── part_00000000.tar.lzo
    └── base_0000000100000003000000F2_00000040_backup_stop_sentinel.json

But when i run an backup-flist i get no result:
[root@blue-db-01 data]# sudo -u postgres bash -c "WALE_SWIFT_PREFIX='swift://TEST' SWIFT_AUTHURL='https://xxxxx' SWIFT_REGION='RegionOne' SWIFT_TENANT='xxxxx' SWIFT_USER='xxxxx' SWIFT_PASSWORD='6b6b6505d1ae996216d650bbfd2d107d' /bin/wal-e backup-list "
wal_e.main   INFO     MSG: starting WAL-E
        DETAIL: The subcommand is "backup-list".
        STRUCTURED: time=2017-08-22T08:23:41.242747-00 pid=28399
name	last_modified	expanded_size_bytes	wal_segment_backup_start	wal_segment_offset_backup_start	wal_segment_backup_stop	wal_segment_offset_backup_stop

I have the follwing confguration:

Os: centos 7
pythons: 3.4.5
wal-e: 1.0.3
postgresql: 9.6
$PGDATA: /myproject/pg/data

Best regards

i see the same problem
when try run backup-fetch  with swift for python3.4 and 3.5
i have following traceback
python 3.4
lzop: Inappropriate ioctl for device: <stdin>
wal_e.retries WARNING  MSG: retrying after encountering exception
        DETAIL: Exception information dump:
        Traceback (most recent call last):
          File "/home/wal-e/venv3.4/lib/python3.4/site-packages/wal_e/retries.py", line 70, in shim
            return f(*args, **kwargs)
          File "/home/wal-e/venv3.4/lib/python3.4/site-packages/wal_e/worker/swift/swift_worker.py", line 73, in fetch_partition
            TarPartition.tarfile_extract(pl.stdout, self.local_root)
          File "/home/wal-e/venv3.4/lib/python3.4/site-packages/wal_e/tar_partition.py", line 292, in tarfile_extract
            cat_extract(tar, member, relpath)
          File "/home/wal-e/venv3.4/lib/python3.4/site-packages/wal_e/tar_partition.py", line 220, in cat_extract
            copyfileobj.copyfileobj(fp, pl.stdin)
          File "/home/wal-e/venv3.4/lib/python3.4/site-packages/wal_e/copyfileobj.py", line 15, in copyfileobj
            shutil.copyfileobj(src, dst, BUFSIZE)
          File "/usr/lib/python3.4/shutil.py", line 67, in copyfileobj
            buf = fsrc.read(length)
          File "/usr/lib/python3.4/tarfile.py", line 704, in readinto
            buf = self.read(len(b))
          File "/usr/lib/python3.4/tarfile.py", line 695, in read
            raise ReadError("unexpected end of data")
        tarfile.ReadError: unexpected end of data

python 3.5
wal_e.retries WARNING  MSG: retrying after encountering exception
        DETAIL: Exception information dump:
        Traceback (most recent call last):
          File "/usr/local/lib/python3.5/dist-packages/wal_e/retries.py", line 70, in shim
            return f(*args, **kwargs)
          File "/usr/local/lib/python3.5/dist-packages/wal_e/worker/swift/swift_worker.py", line 73, in fetch_partition
            TarPartition.tarfile_extract(pl.stdout, self.local_root)
          File "/usr/local/lib/python3.5/dist-packages/wal_e/tar_partition.py", line 292, in tarfile_extract
            cat_extract(tar, member, relpath)
          File "/usr/local/lib/python3.5/dist-packages/wal_e/tar_partition.py", line 220, in cat_extract
            copyfileobj.copyfileobj(fp, pl.stdin)
          File "/usr/local/lib/python3.5/dist-packages/wal_e/copyfileobj.py", line 17, in copyfileobj
            shutil.copyfileobj(src, dst, BUFSIZE)
          File "/usr/lib/python3.5/shutil.py", line 73, in copyfileobj
            buf = fsrc.read(length)
          File "/usr/lib/python3.5/tarfile.py", line 698, in readinto
            buf = self.read(len(b))
          File "/usr/lib/python3.5/tarfile.py", line 689, in read
            raise ReadError("unexpected end of data")
        tarfile.ReadError: unexpected end of data

Consider installing from "master". You may be seeing a bug in python 3.x's symlink handling.

i'm install wal-e over
pip install https://github.com/wal-e/wal-e/archive/master.zip

and try with python3.5 and python3.4 under ubuntu 16.04

Hello,
I think my problem is different from the one of @Slach . I don't have a python exception. I set log level to DEBUG and find the problem:
swiftclient  DEBUG    REQ: curl -i https://object-store.api.entreprise.com/swift/v1/TEST?format=json&prefix=/basebackups_005/ -X GET -H "Accept-Encoding: gzip" -H "X-Auth-Token: gAAAAABZn_Msqy6T..."
swiftclient  DEBUG    RESP STATUS: 200 OK
swiftclient  DEBUG    RESP HEADERS: {'X-Timestamp': '1503653193.00000', 'X-Storage-Policy': 'default-placement', 'Server': 'nginx', 'X-Container-Bytes-Used': '117465295', 'X-Container-Object-Count': '9', 'Content-Length': '2', 'Content-Type': 'application/json; charset=utf-8', 'X-Container-Bytes-Used-Actual': '117497856', 'Content-Security-Policy': "form-action 'none'; default-src 'self';", 'Accept-Ranges': 'bytes', 'X-Trans-Id': 'tx00000000000000076705a-00599ff32c-165797-default', 'Connection': 'keep-alive', 'Date': 'Fri, 25 Aug 2017 09:51:41 GMT'}
swiftclient  DEBUG    RESP BODY: b'[]'

The response code HTTP 200 with an empty body. The request is incorrect, the prefix should not with a slash.
The resquest should be:
curl -i https://object-store.api.entreprise.com/swift/v1/TEST?format=json&prefix=basebackups_005/ -X GET -H "Accept-Encoding: gzip" -H "X-Auth-Token: gAAAAABZn_Msqy6T..."

In class /worker/swift/swift_worker.py, we can see that a slash is inserted before the prefix value https://github.com/wal-e/wal-e/blob/fc4363def7b3ce9306f613b31722f46f853dfe4e/wal_e/worker/swift/swift_worker.py#L86-L88
If i remove it, the backup-list works correclty.
base_00000001000000000000000B_00000040	2017-08-25T09:50:01.000Z<PHONE_NUMBER>0000000000000B	00000040
base_00000001000000000000000D_00000040	2017-08-25T09:51:21.000Z<PHONE_NUMBER>0000000000000D	00000040
base_00000001000000000000000F_00000040	2017-08-25T09:51:33.000Z<PHONE_NUMBER>0000000000000F	00000040

But I m not sure it's right way to fix it. Can you confirm it ?
Best regards

I'm experiencing same issue. @vgramer have you solved it?

Hello @atipugin,
Not really, finally we choose another solution.
However removing the slash before the prefix in class /worker/swift/swift_worker.py,  seems to works.
Another solution may to use the S3 api if you're Swift is compatible with.

@vgramer got you. This PR https://github.com/wal-e/wal-e/pull/342 attempts to fix it, but looks like it will never be merged :( Going to maintain own fork for now, coz S3 isn't an option for me


testing: bad formatting in "Log in goroutine after" panic message

On go1.11, the following test silently drops a log message: https://play.golang.org/p/2gLqWOYcREv

package main

import (
	"os"
	"testing"
)

var done = make(chan struct{})
var logged = make(chan struct{})

func TestBadness(t *testing.T) {
	t.Parallel()
	go func() {
		defer close(logged)
		<-done
		t.Log("BWA ha ha ha ha!")
	}()
	t.Log("Hmm?")
}

func TestMain(m *testing.M) {
	code := m.Run()
	close(done)
	<-logged
	os.Exit(code)
}

On go1.12beta1, as a result of https://golang.org/cl/127596 (#26720), it instead prints:
$ go1.12beta1 test
PASS
panic: Log in goroutine after  has completed

goroutine 7 [running]:
testing.(*common).logDepth(0xc00009c000, 0xc0000142a0, 0x11, 0x4)
        /usr/local/google/home/bcmills/sdk/go1.12beta1/src/testing/testing.go:628 +0x256
testing.(*common).logDepth(0xc00009c100, 0xc0000142a0, 0x11, 0x3)
        /usr/local/google/home/bcmills/sdk/go1.12beta1/src/testing/testing.go:626 +0xa6
testing.(*common).log(...)
        /usr/local/google/home/bcmills/sdk/go1.12beta1/src/testing/testing.go:614
testing.(*common).Log(0xc00009c100, 0xc00003afb8, 0x1, 0x1)
        /usr/local/google/home/bcmills/sdk/go1.12beta1/src/testing/testing.go:639 +0x6a
golang.org/issue/scratch_test.TestBadness.func1(0xc00009c100)
        /tmp/tmp.RMuhgfzwru/bad_test.go:16 +0xae
created by golang.org/issue/scratch_test.TestBadness
        /tmp/tmp.RMuhgfzwru/bad_test.go:13 +0x51
exit status 2
FAIL    golang.org/issue/scratch        0.021s

Note the lack of test name in the log message: for some reason, c.name is no longer populated at that point.

Is this still considered a release blocker for 1.12?

This is not a release blocker for 1.12.

In fact, the core of this issue is fixed.  Opening the remaining portion as a separate issue in #30389.


Add japanese translation.

Not a native speaker myself but the translation should be correct with experience of working in Japan for quite a time though.

Thank you for the PR!


Tests for $$()

Placeholder for myself to work on testing the $$() API.

Tests are added. Build passes.


[WPF] [Gauge] Chart not filled and from/to labels not process on load

How to reproduce?
This is weird one, and very specific. Might be WPF related (?).
You have user control with view model, and child control with gauge charts. Child control inherits datacontex (view model) of parent control.
On child control, last gauge chart is not filled and from/to labels are not process on initial load. After raising change event on view model all draws ok. All other charts initialize ok.
It is always last gauge added in xaml. If you add one with visibility collapsed, all previous would initialize ok. Tried in grids, different panels. Always last one added to xaml fails on inital load.

Extra notes
i have attached solution to reproduce.
ChartTest.zip
I am using

Live-Charts version
<IP_ADDRESS>

.Net Version
4.5.2

Windows
Win 10

I checked this, this is very strange I had a bed time also understanding your design, something is confusing there and might be causing the issue.
I am sorry I am closing this for now, this issue seem not to be related with the library as you stated, it seems that something is going wrong in your current design, sadly I can't debug it for now.
I hope you understand.
Thanks for the report