serenadeai / java-tree-sitter

Java bindings for tree-sitter
MIT License
126 stars 34 forks source link

SIGSEGV error when load class #15

Closed qwtsc closed 1 year ago

qwtsc commented 1 year ago

Does any body know how to solve this issue? I cannot load the dylib which I build myself using python script.


#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x0000000128237d4c, pid=31714, tid=9987
#
# JRE version: OpenJDK Runtime Environment Zulu11.54+25-CA (11.0.14.1+1) (build 11.0.14.1+1-LTS)
# Java VM: OpenJDK 64-Bit Server VM Zulu11.54+25-CA (11.0.14.1+1-LTS, mixed mode, tiered, compressed oops, g1 gc, bsd-aarch64)
# Problematic frame:
# C  [libjava-tree-sitter.dylib+0x37d4c]  ts_tree_root_node+0x0
qwtsc commented 1 year ago

I figured it out that I should use the v0.19.0 tree-sitter-bash/python/css to build .dynlib file. The core api of newest tree-sitter has changed.