-
Notifications
You must be signed in to change notification settings - Fork 57
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
the openvino crash #236
Comments
Hi @oxidian24, The changes that you made look fine to me.
So Audacity runs fine by itself, without the plugins enabled in Edit->Preferences->Modules? |
Yep, when it's disabled so I can record the sound for example so Audacity seems to be working correctly (Audacity 3.5.1-alpha-20240615). |
Are you running Audacity from a terminal? If so, when it crashes does it give a backtrace (i.e. a crash report)? |
yep but the log is empty. Would you add lines to source code, I could recompile and rerun and send you the logs. |
If you're using an processor from 2009, then perhaps it is crashing because the whisper.cpp library enables AVX/AVX2 instructions by default (which didn't show up in processors until 2011 / 2012 timeframe). I would recommend recompiling the whisper.cpp library, but using this cmake command:
|
OK, so I will backup the current Release and then recompile, but I add more info on the CPU it was from end of 2008 (chatGPT). *-core |
Before I compile I want to make sure what folders of audacity backup. The backup is needed to transmit Audacity to different Notebook. So I originaly thought to backup the audacity / Release but now I see there are also directories lib lib-source, libraries, src or locale ... Should I backup them too? |
I would just back up your |
I am slowly running of the disk space... So I won't backup, I will just carefully rename the directory. |
Are these all the commands I need to perform? export WHISPERCPP_ROOTDIR=/home/user/OpenVino/whisper-build/installed cmake ../whisper.cpp -DWHISPER_OPENVINO=ON -DWHISPER_NO_AVX=ON -DWHISPER_NO_AVX2=ON -DWHISPER_NO_FMA=ON -DWHISPER_NO_F16C=ON If so, I am ready. |
To rebuild whisper.cpp, you'll just need these:
|
Compiled. I did not get message with a log. Audacity does not crash, but the OpenVino failed to be loaded. |
Are you launching Audacity from a terminal with all of the environment variables set (the same env. setup as the one you built within)? |
Yes... [100%] Linking CXX shared module ../../Release/lib/audacity/modules/mod-openvino.so ~/OpenVino$ cd ~/Audacity/audacity-5.3.1-openvino-no-avx/Release/bin |
Hmm, which version of libtorch did you download & use? |
libtorch-cxx11-abi-shared-with-deps-2.1.1+cpu.zip |
Gotcha, that looks right. In your terminal that you are running audacity from, can you do:
And send the output? |
There are no such .so files in the directory |
Oh, sorry, I think they must be located here:
|
./lib/audacity/modules/mod-flac.so |
$ ldd mod-openvino*.so |
I think this is your problem:
In the terminal that you are running Audacity, do you have your OpenVINO environment setup (this is done by sourcing OpenVINO's setupvars.sh) |
OK, now I run setupvars.sh and I rerun audacity and I send error report to you |
I can confirm, that I run |
Hmm, can you go to the openvino folder you have downloaded and do:
Does it find it? It should be located in some runtime/bin folder. Sourcing OpenVINO's setupvars.sh should add this folder to your LD_LIBRARY_PATH. You can confirm this by doing:
This is a |
~/OpenVino$ find . -name libopenvino.so.2400 I can give you steps which I have done, this is from .bash_history, but there is no date (!) with the commands
NEXT RESULT:
NOTE:
Not set. Please tell me what specific lines are you talking about from setupvars.sh and I will check it. Notice: I can pull the bash script if you want, so you can check it too. |
Hmm, |
The code I sent to you contains the input in terminal:
And empty line of the output result:
Variables is not set. I send you logs from setupvar.sh 2024-06-28 09:24:48 INSTALLDIR=/home/user/OpenVino/l_openvino_toolkit_ubuntu22_2024.0.0.14509.34caeefd078_x86_64 |
Hmm, I'm not really sure what is going on. I'm confused why your LD_LIBRARY_PATH would be empty. Is this also the same terminal where you ran this?
At the very least, it should be set to this. |
If there is something wrong with setupvars.sh, that is weird, but you ultimately just need to add
You may need to also add some TBB library path to your LD_LIBRARY_PATH as well, now that I think about it. After setting that LD_LIBRARY_PATH, you can do |
Now when I check the path I will ask chatGPT what's wrong with the script and why the exported variable is not set out of the bash script. When I will find out what's going on, I will reply again. |
So I have found the problem. I have run the setupvars.sh instead sourcing it echo "$INTEL_OPENVINO_DIR" echo "$OpenVINO_DIR" echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH" pwd user@Toshi:~/OpenVino/l_openvino_toolkit_ubuntu22_2024.0.0.14509.34caefind . -name libopenvino.so.2400 |
What do you mean? I have the script build-openvino-no-avx.sh
|
I was saying that if you want to set LD_LIBRARY_PATH manually, you probably need to add both the runtime path (the folder that contains libopenvino.so.2400) as well as the TBB path.
Hmm, this seems strange to me. There should be a TBB folder. Can you try downloading the OpenVINO package again and unzipping it? |
Hmm, maybe I don't quite understand the question. But, as with |
I wrote: Now, I'm having health and technical issues, so I will probably need few days rest before I can continue. |
Audacity 3.5.1 alpha crashed when I try to start it with OpenVino activated. My CPU is dual core Intel Celeron made in 2009. I know that the modules were compiled when I compiled the audio, I remember it. But do I have the cmakelists.txt correct? I added it like this, line 13. Is that enough? I see other modules also uses fnc. list(APPEND MODULE mod-...
Maybe this is why it crashes, because I skipped it? add_subdirectory is adding the subdirectory automatically.
The text was updated successfully, but these errors were encountered: