swisseph icon indicating copy to clipboard operation
swisseph copied to clipboard

call swe_set_ephe_path(NULL)

Open Igor-A1 opened this issue 5 years ago • 2 comments

Even if you don’t want to set an ephemeris path and use the Moshier ephemeris, it is nevertheless recommended to call swe_set_ephe_path(NULL), because this function makes important initializations. If you don’t do that, the Swiss Ephemeris may work, but the results may be not 100% consistent. on run this code eph.swe_set_ephe_path(null)

FATAL ERROR: v8::ToLocalChecked Empty MaybeLocal.
 1: 00007FF6DEEBF0DF napi_wrap+121039
 2: 00007FF6DEE651D6 v8::base::CPU::has_sse+34470
 3: 00007FF6DEE65E96 v8::base::CPU::has_sse+37734
 4: 00007FF6DF6617D5 v8::V8::ToLocalEmpty+53
 5: 00007FFE5D813DFD node_swe_set_ephe_path+397 [d:\git\node_modules\swisseph\src\pos.cc]:L645
 6: 00007FFE5D801767 Nan::imp::FunctionCallbackWrapper+231 [d:\git\node_modules\nan\nan_callbacks_12_inl.h]:L177
 7: 00007FF6DF4A4B80 v8::internal::StubCache::Set+1600
 8: 00007FF6DF60C4A2 v8::internal::Builtins::builtin_handle+331970
 9: 00007FF6DF60C7E8 v8::internal::Builtins::builtin_handle+332808
10: 00007FF6DF60C5EE v8::internal::Builtins::builtin_handle+332302
11: 00007FF6DFA7234D v8::internal::SetupIsolateDelegate::SetupHeap+575821
12: 00007FF6DF9EFCFC v8::internal::SetupIsolateDelegate::SetupHeap+41724
13: 00007FF6DF9EFCFC v8::internal::SetupIsolateDelegate::SetupHeap+41724
14: 00007FF6DF9EFCFC v8::internal::SetupIsolateDelegate::SetupHeap+41724
15: 00007FF6DF9EFCFC v8::internal::SetupIsolateDelegate::SetupHeap+41724
16: 00007FF6DF9EFCFC v8::internal::SetupIsolateDelegate::SetupHeap+41724
17: 00007FF6DF9EFCFC v8::internal::SetupIsolateDelegate::SetupHeap+41724
18: 00007FF6DF9EFCFC v8::internal::SetupIsolateDelegate::SetupHeap+41724
19: 00007FF6DF9ED651 v8::internal::SetupIsolateDelegate::SetupHeap+31825
20: 00007FF6DF9ED23C v8::internal::SetupIsolateDelegate::SetupHeap+30780
21: 00007FF6DF56654C v8::internal::StackGuard::InitThread+972
22: 00007FF6DF565236 v8::internal::Execution::Call+182
23: 00007FF6DF6375BB v8::Function::Call+603
24: 00007FF6DEE89FCE node::Start+1150
25: 00007FF6DEE8A277 node::Start+1831
26: 00007FF6DEE8914A node::LoadEnvironment+26
27: 00007FF6DEE2E135 v8::internal::AsmJsScanner::GetIdentifierString+28981
28: 00007FF6DEE89C63 node::Start+275
29: 00007FF6DED4C91C AES_cbc_encrypt+15180
30: 00007FF6DFB20218 v8::internal::SetupIsolateDelegate::SetupHeap+1288216
31: 00007FFE973D7BD4 BaseThreadInitThunk+20
32: 00007FFE97A6CE71 RtlUserThreadStart+33

in original library this null path replaced by DIR_GLUE ("/")

Igor-A1 avatar Sep 01 '19 21:09 Igor-A1

Thanks, need to be fixed.

mivion avatar Jan 28 '20 04:01 mivion

Thanks @mivion for creating the repository. So far I am giving a directory path: swisseph.swe_set_ephe_path('./ephe'); to make the initialization.

robbiedood avatar Dec 11 '22 03:12 robbiedood