Skip to content
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

"[0:] unsupported os platform, architecture: arm64" while using version 1.5.0 #157

Open
Leonm99 opened this issue Jan 26, 2024 · 3 comments

Comments

@Leonm99
Copy link

Leonm99 commented Jan 26, 2024

im using whisper.net with MAUI to build an android app.

ive updated my Whisper.net.Runtime and Whisper.net to 1.5.0 a few days ago everything was okay but now i get
[0:] unsupported os platform, architecture: arm64 while using 1.5.0.

reverting back to 1.4.7 works fine.

ive tested everything else it has to be Whisper.net 1.5.0 thats causing this.

any ideas what could be the issue?

Thanks in advance i appreciate any help.

@Leonm99 Leonm99 changed the title [0:] unsupported os platform, architecture: arm64 while using version 1.5.0 "[0:] unsupported os platform, architecture: arm64" while using version 1.5.0 Jan 26, 2024
@sandrohanea
Copy link
Owner

Hello @Leonm99 ,
That code shouldn't be reached for Android, and loading should be automatically bypassed: https://github.com/sandrohanea/whisper.net/blob/7e3ee68a596ff4591651ae14327e9c2760e555b8/Whisper.net/LibraryLoader/NativeLibraryLoader.cs#L28C1-L28C42

I suspect you are using net6.0-android which was removed as targeted framework here: https://github.com/sandrohanea/whisper.net/pull/132/files#diff-1e6efca4d3eb5af047dd5e0628fad7df48807ca5628f85866b69ec30c5a083d8

This means that if you are using net6-android => you will reference the general available net6 build (not Android build) and this is why that #if Android is not reached.

The reason for this upgrade was that dotnet maui for net6.0 is out of support: https://dotnet.microsoft.com/en-us/platform/support/policy/maui

If that's the reason, please, upgrade to net8-android, and confirm/infirm if Whisper.net 1.5.0 is working as expected.

@Leonm99
Copy link
Author

Leonm99 commented Feb 3, 2024

Thank you for your help, I appreciate it.

I'm using .net8 actually, but I will try and test it again in the coming days.

I'll report back when I've done so.

Have a great evening!

@Kayrrhan
Copy link

Kayrrhan commented Aug 1, 2024

Hello ! I know it's been a few month already but I encounter the same issue for a demo application I'm currently developing.
This application is made on Unity and is supposed to be built on Hololens 2 which has ARM64 architecture.

However I get the same error : PlatformNotSupportedException: Unsupported OS platform, architecture: Arm64 and I don't know if it's related to the same pattern as before, however I don't encounter this problem when trying directly on the Unity Editor. The only major change I make is changing the whisper.dll according to the target device as they don't have the same OS architecture and Unity doesn't manage projects with multiple dlls with the same name (causing errors & preventing builds).
The reason why it blocks me exactly is because this errors prevent any WhisperFactory to exist.

Is there any workaround to fix this issue ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants