<div dir="ltr">Hi,<div><br></div><div>I&#39;m not sure if this is the right forum to ask this question, but I&#39;m currently running into following issue</div><div>with using the JavaScriptCore API:</div><div><br></div><div><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(36,39,41);font-family:arial,&quot;helvetica neue&quot;,helvetica,sans-serif"><i>I&#39;m building an application that uses <code style="margin:0px;padding:1px 5px;border:0px;font-size:13px;font-family:consolas,menlo,monaco,&quot;lucida console&quot;,&quot;liberation mono&quot;,&quot;dejavu sans mono&quot;,&quot;bitstream vera sans mono&quot;,&quot;courier new&quot;,monospace,sans-serif;background-color:rgb(239,240,241);white-space:pre-wrap">JavaScriptCore</code> on Android. So I&#39;m building my own API which has generally worked well, but now that it&#39;s running on complex back and forward code that has callbacks between JS code and C++ I&#39;m running into an issue where I&#39;m hitting a <code style="margin:0px;padding:1px 5px;border:0px;font-size:13px;font-family:consolas,menlo,monaco,&quot;lucida console&quot;,&quot;liberation mono&quot;,&quot;dejavu sans mono&quot;,&quot;bitstream vera sans mono&quot;,&quot;courier new&quot;,monospace,sans-serif;background-color:rgb(239,240,241);white-space:pre-wrap">EXC_BAD_ACCESS</code> in <code style="margin:0px;padding:1px 5px;border:0px;font-size:13px;font-family:consolas,menlo,monaco,&quot;lucida console&quot;,&quot;liberation mono&quot;,&quot;dejavu sans mono&quot;,&quot;bitstream vera sans mono&quot;,&quot;courier new&quot;,monospace,sans-serif;background-color:rgb(239,240,241);white-space:pre-wrap">JSLockHolder::JSLockHolder(JSC::ExecState*)</code>.</i></p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(36,39,41);font-family:arial,&quot;helvetica neue&quot;,helvetica,sans-serif"><i>It seems fairly inconsistent in that when I put breakpoints randomly in my code while debugging sometimes I hit this, sometimes I don&#39;t. When running the app straight though I always seem to hit the issue at the same point.</i></p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(36,39,41);font-family:arial,&quot;helvetica neue&quot;,helvetica,sans-serif"><i>For me right now this is hitting during a call to <code style="margin:0px;padding:1px 5px;border:0px;font-size:13px;font-family:consolas,menlo,monaco,&quot;lucida console&quot;,&quot;liberation mono&quot;,&quot;dejavu sans mono&quot;,&quot;bitstream vera sans mono&quot;,&quot;courier new&quot;,monospace,sans-serif;background-color:rgb(239,240,241);white-space:pre-wrap">JSValueProtect</code>, but if I were to remove that call it would just hit at the next call that uses <code style="margin:0px;padding:1px 5px;border:0px;font-size:13px;font-family:consolas,menlo,monaco,&quot;lucida console&quot;,&quot;liberation mono&quot;,&quot;dejavu sans mono&quot;,&quot;bitstream vera sans mono&quot;,&quot;courier new&quot;,monospace,sans-serif;background-color:rgb(239,240,241);white-space:pre-wrap">JSLockHolder</code>.</i></p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(36,39,41);font-family:arial,&quot;helvetica neue&quot;,helvetica,sans-serif"><i>I have a test demo that hits this on a Mac build that uses the JavaScriptCore.framework as well (so it doesn&#39;t appear to be any issues with my Android jsc library build).</i></p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(36,39,41);font-family:arial,&quot;helvetica neue&quot;,helvetica,sans-serif">Thanks in advance.<i> </i><span style="font-family:arial,&quot;helvetica neue&quot;,helvetica,sans-serif">Let me know if any more info could be provided for clarity.</span></p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(36,39,41);font-family:arial,&quot;helvetica neue&quot;,helvetica,sans-serif"><span style="font-family:arial,&quot;helvetica neue&quot;,helvetica,sans-serif">Avi Brenner</span></p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(36,39,41);font-family:arial,&quot;helvetica neue&quot;,helvetica,sans-serif"><i><br></i></p></div></div>