Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FATAL ERROR in native method #3036

Open
MrKangZuBin opened this issue Aug 29, 2024 · 7 comments
Open

FATAL ERROR in native method #3036

MrKangZuBin opened this issue Aug 29, 2024 · 7 comments

Comments

@MrKangZuBin
Copy link

[ 1][t 0][1724935265.820765257][tl_jni_object.cpp:37] Can't find class [org/drinkless/tdlib/Log]
FATAL ERROR in native method: Can't find class [org/drinkless/tdlib/Log]

@levlam
Copy link
Contributor

levlam commented Aug 29, 2024

You use incompatilble libtdjni.so and Java wrapper classes. You must use Java classes and libtdjni.so from exactly the same TDLib version.

@MrKangZuBin
Copy link
Author

I didn’t see libtdjni.so after I built it.

@levlam
Copy link
Contributor

levlam commented Aug 30, 2024

Did you build it as specified at https://tdlib.github.io/td/build.html?language=Java?

@MrKangZuBin
Copy link
Author

https://tdlib.github.io/td/build.html?language=Java I followed this method. Now I put the libs in the jdk bin and it works, but other errors occur. A fatal error has been detected by the Java Runtime Environment:

EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ff9c4a42f58, pid=19072, tid=21256

JRE version: Java(TM) SE Runtime Environment (17.0.11+7) (build 17.0.11+7-LTS-207)

Java VM: Java HotSpot(TM) 64-Bit Server VM (17.0.11+7-LTS-207, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, windows-amd64)

Problematic frame:

C [msvcp140.dll+0x12f58]

No core dump will be written. Minidumps are not enabled by default on client versions of Windows

According to the error message, I reinstalled Microsoft Visual C++ Redistributable and restarted the computer, but the error still occurred

@MrKangZuBin
Copy link
Author

hs_err_pid9696.log
this is log

@MrKangZuBin
Copy link
Author

Example is git clone的

@levlam
Copy link
Contributor

levlam commented Aug 30, 2024

See #2912 (comment) and the answer above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants