<div dir="ltr">Ok, <div><br></div><div>After those changes I've added one log statement per line and this is where it crashes:</div><div>result = JNI_CreateJavaVM_fp(jvm, (void**) env, &args);<br></div><div><br></div><div>last line of log:</div><div>DEBUG <general>: CBlurayCallback::Logger - bdj.c:991: endif 2<br></div><div><br></div><div>code:</div><div>BD_DEBUG(DBG_CRIT | DBG_BDJ, "endif 2\n");<br>  result = JNI_CreateJavaVM_fp(jvm, (void**) env, &args);<br>    BD_DEBUG(DBG_CRIT | DBG_BDJ, "result = JNI_CreateJavaVM_fp(jvm, (void**) env, &args)\n");<br></div><div><br></div><div>so the other log never happens.</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 27, 2021 at 12:35 PM Vitor Dall'Acqua <<a href="mailto:veggav@gmail.com">veggav@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Made the changes.<div><br></div><div>I have forked the most recent libbluray I could find in github so it's easier on the eyes for you to see what I have changed:</div><div><br></div><div><a href="https://github.com/fandangos/libbluray/commit/ac3215bc416d4730f42b4f87dfdbd669767e7112" target="_blank">https://github.com/fandangos/libbluray/commit/ac3215bc416d4730f42b4f87dfdbd669767e7112</a><br></div><div><br></div><div>last lines of the log</div><div><a href="https://pastebin.com/MbCW61YT" target="_blank">https://pastebin.com/MbCW61YT</a><br></div><div><br></div><div>(shame on using a p2p source disk for testing)</div><div><br></div><div>And</div><div>#undef LIBBLURAY_CP<br>#define LIBBLURAY_CP "/mnt/expand/cab01563-bcca-48fa-a0bf-0fbddaf9b192/user/0/org.xbmc.kodi19DV/lib/aarch64/"<br></div><div><br></div><div>doesn't work I had to manually add the *.jar files into the apk. </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 27, 2021 at 11:53 AM Shaya Potter <<a href="mailto:spotter@gmail.com" target="_blank">spotter@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 27, 2021 at 4:46 PM Petri Hintukainen <<a href="mailto:phintuka@users.sourceforge.net" target="_blank">phintuka@users.sourceforge.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
Another thing that could be worth of trying is disabling JIT (I don't<br>
know if Android allows running user-generated code, or if JIT is even<br>
enabled in android build).<br>
This can be done by executing the following line unconditionally:<br>
<br>
    option[n++].optionString = str_dup("-Xint");<br>
<br>
(= replace if(getenv("BDJ_JVM_DISABLE_JIT")) with if(1) )<br></blockquote><div><br></div><div>I don't believe it uses the jit, I believe android use zerovm, which is total bytecode interpretation.  With that said, I'd guess that should be sufficient for bluray xlets from a perfomance perspective, as they were built to be run on very constrained devices?<br></div><div><br></div><div>yep: <a href="http://openjdk.java.net/projects/mobile/android.html" target="_blank">http://openjdk.java.net/projects/mobile/android.html</a>.  This is, I believe less because of not being able to have a jit on android (any web browser probabl jit's javascript) and more that it doesn't include any assembly, so its meat to be their most portable vm.<br></div><div><br></div></div></div>
_______________________________________________<br>
libbluray-devel mailing list<br>
<a href="mailto:libbluray-devel@videolan.org" target="_blank">libbluray-devel@videolan.org</a><br>
<a href="https://mailman.videolan.org/listinfo/libbluray-devel" rel="noreferrer" target="_blank">https://mailman.videolan.org/listinfo/libbluray-devel</a><br>
</blockquote></div>
</blockquote></div>