Open
Description
When running newer versions (from 3.3.0 higher) with any model, the JVM crashes.:
Extracted 'ggml.dll' to 'C:\Users\user\AppData\Local\Temp\ggml.dll'
Extracted 'llama.dll' to 'C:\Users\user\AppData\Local\Temp\llama.dll'
Extracted 'jllama.dll' to 'C:\Users\user\AppData\Local\Temp\jllama.dll'
You are an AI assistant who gives a quality response to whatever users ask of you.
Problem: Write a short poem about deep blue sea.
A fatal error has been detected by the Java Runtime Environment:
EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffdbd4a2f58, pid=25224, tid=18764
JRE version: Java(TM) SE Runtime Environment (23.0+37) (build 23+37-2369)
Java VM: Java HotSpot(TM) 64-Bit Server VM (23+37-2369, 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
An error report file with more information is saved as:
C:\eclipse\workspace\llama\hs_err_pid25224.log
[21.786s][warning][os] Loading hsdis library failed
Using.: latest visual studio redistributable 2022 for this platform
jar used was downloaded via maven (https://jar-download.com/artifacts/de.kherud/llama). Pprevious versions up to llama-3.2.1.jar worked without error from the same source.
Metadata
Metadata
Assignees
Labels
No labels
Activity
boaoqian commentedon Oct 15, 2024
same issue
JakobPogacnikSouvent commentedon Oct 22, 2024
I'm also having the same Issue. My project is set up in the following way.
Filestructure
Maven dependency
I have added the dependency to my
pom.xmlfile.Code
Example.javacontains the following code.Error
When I try to run
Example.javaI get the following outputDarrenCHoffman commentedon Nov 10, 2024
same issue
nyutiz commentedon Jan 2, 2025
same issue with 3.4.1
toystorynova commentedon Jan 20, 2025
Also experiencing this, think you could take a look @kherud ? Maybe even update to latest llama.cpp? Tried to update it myself but common.h class was missing? Thanks!
dodo-bear commentedon Feb 5, 2025
Can confirm the same issue, 3.4.1. Does anyone else have a fix?
natanfudge commentedon Jun 2, 2025
Still going strong in 4.1.0
riza-milani commentedon Sep 13, 2025
I had the same issue and the problem was "msvcp140.dll" in the Java JDK path. In my case:
C:\Program Files\Java\jdk-17\bin\.Thanks to Chat-GPT5:
Temporary fix; Rename
msvcp140.dllfile to something else (e.gxmsvcp140.dll) and run your app againDownload a new modern JDK and set the new JDK in you IDE (IntelliJ SDKs). I tested this JDK from Microsoft and it worked properly
bernardladenthin commentedon May 22, 2026
I noticed the repository hasn't seen recent activity, so I've taken the liberty of forking it and continuing development at: https://github.com/bernardladenthin/java-llama.cpp
See also #125