Javet icon indicating copy to clipboard operation
Javet copied to clipboard

Cannot get the engine

Open Temtaime opened this issue 2 years ago • 8 comments

Hello ! Thanks for a great project. However, i wrote an app that works on my machine(tm), but fails to start on the production server. It throws EngineNotAvailable without any additional information. I cannot find any info about this exception in the docs. Can you point me where should i dig ? Thanks !

Temtaime avatar Apr 24 '23 19:04 Temtaime

Usually that's related to permission issues. Please verify that your application has write access to the /tmp. And, you may join the discord to discuss with me in realtime.

caoccao avatar Apr 24 '23 22:04 caoccao

So... i added logs, and figured out that libc on prod server is 2.27, and javet is built with 2.29. Maybe consider linking native libraries with static libc ? For now feel free to close the issue, i'm going to trying build native library with 2.27.

Temtaime avatar Apr 26 '23 09:04 Temtaime

hs_err_pid72563.log Sorry for bumping this topic again, but i built javet on ubuntu 18.04 following the guide, but it crashes. Maybe you seen this error before / there are other things to consider when building ?

Temtaime avatar May 02 '23 09:05 Temtaime

It's very strict to use the function cache.

  • Same V8 version
  • Same OS env
  • Same CPU arch
  • ...

May I know if you tried to load a function cache generated in another env?

caoccao avatar May 02 '23 10:05 caoccao

I'm just trying to load and executre a script in NodeJs env. I don't know if underlying caches are involved. Maybe javet uses some type of cache storage by default that i should clear?

Temtaime avatar May 02 '23 14:05 Temtaime

I see. It seems your build is corrupted. You may consider using some legacy Javet builds that are friendly to Ubuntu 18.04.

caoccao avatar May 03 '23 00:05 caoccao

Would you kindly point me to the right one? I've had tried 1.1.7 with no luck. Also maybe a page with compatibility info should be updated? Thank you !

Temtaime avatar May 03 '23 09:05 Temtaime

Sorry, I don't have enough time testing every Linux distributions. In general, the older the release is, the better compatibility does Javet have.

caoccao avatar May 03 '23 09:05 caoccao