caprica / vlcj

Java framework for the vlc media player
http://www.capricasoftware.co.uk/projects/vlcj
1.1k stars 260 forks source link

JVM crash on `jni_CallVoidMethod` frames using MacOS (m1) #1206

Closed SrRapero720 closed 1 month ago

SrRapero720 commented 7 months ago

https://gist.github.com/SrRapero720/5887241df214dd418c56e008f5959a9d https://gist.github.com/SrRapero720/cf1b2d7b4fd5eb81359f5800e78f5bf1

Problem "starts happening" (because i am not sure) since VLC release 3.0.19. i was having a quite large discussion about it and issue was more confusing for me. See https://github.com/SrRapero720/watermedia/issues/29

I can't test old versions on my side because i haven't a mac. I open this issue in case can be solved/replicable on VLCJ.

caprica commented 7 months ago

Is there a minimal, executable, single-class test case that reproduces this problem?

SrRapero720 commented 7 months ago

here is

https://github.com/SrRapero720/watermedia/blob/master/src/test/java/me/srrapero720/watermedia/tests/uncannonical/RawMacOSTester.java

caprica commented 7 months ago

Please also write here the exact versions of vlcj and the JDK you're using, including the JDK vendor. Also the macOS version. I don't have access to latest mac hardware/OS, only previous generation.

I will try and find some time to take a look but I can't promise a timescale.

SrRapero720 commented 7 months ago

Is on Gist hs_err_pid_xxxx.log

caprica commented 7 months ago

Well, it would be nice and convenient if you were to write it here rather than refer me to a hard-to read hotspot log.

SrRapero720 commented 7 months ago

I am on phone RN, thats why i reffer to hostpot log

JRE version: OpenJDK Runtime Environment Microsoft-8035246 (17.0.8+7) (build 17.0.8+7-LTS)

Java VM: OpenJDK 64-Bit Server VM Microsoft-8035246 (17.0.8+7-LTS, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, bsd-aarch64)

Host: "MacBookAir10,1" arm64, 8 cores, 8G, Darwin 21.6.0, macOS 12.6 (21G115)

caprica commented 5 months ago

I suppose nothing has changed and this is still a problem?

SrRapero720 commented 5 months ago

no idea people with the issue is not longer interesting on test and i didn't get any bug report about. i suggest keep this open until someone with the same issue appears and help us to find why this happen. Because try to do something is try to cross the street blinded.

caprica commented 5 months ago

I am going to close this issue. I don't have access to M1 hardware to even try to reproduce it.

If in future someone posts additional information, it can be reopened.

SrRapero720 commented 4 months ago

someone reports me downgrading to VLC 3.0.18 fixes the issue...

caprica commented 4 months ago

Interesting, this gives hope that it might actually also be fixed in a later version of VLC at some point.

Him188 commented 2 months ago

Having the same issue... Downgrading to VLc 3.0.18 did not work for me

Using vlcj 4.8.2

Him188 commented 2 months ago

@SrRapero720 Which version of vlcj are you using, please? @SrRapero720

Him188 commented 2 months ago

Added dependency "net.java.dev.jna:jna:5.12.1" and it now works!

SrRapero720 commented 2 months ago

4.7.3. but 4.7.3 and 4.8.x doesn't have any difference

caprica commented 2 months ago

Added dependency "net.java.dev.jna:jna:5.12.1" and it now works!

Interesting.

caprica commented 2 months ago

If this is confirmed, probably worth making a new release with updated depdendencies.

Him188 commented 1 month ago

There are already many similar issues about JNA versions on Mac.

https://github.com/caprica/vlcj/issues?q=is%3Aissue+is%3Aclosed+m1

1145: Oh wow, my bad 5.11.0 does actually fix it

I think it is worth making a new release.

caprica commented 1 month ago

4.8.3 released today with latest JNA dependency.