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
STORESCU fails on opencv_java #1341
Comments
We are still investigating this issue, but we're not as familiar with Java and OpenCV and a direction would certainly be helpful. |
Do you mean the command line storescu or with the Java API? |
@nroduit Command line StoreSCU |
Did you modify the bat file? because I do not understand why you get "<file path>\opencv_java.dll" Or do you change the environment variable %DCM4CHE_HOME% or %JAVA_OPTS% To debug, add "echo %JAVA_OPTS%" before the last command line of the bat file to show the command option. |
Thanks for guidance. We do change the bat file. I'll take a look at this soon. |
We haven't upgraded to the latest version yet. |
echo -Djava.library.path="<filepath>\dcm4che\bin..\lib\windows-x86-64" -XX:+IgnoreUnrecognizedVMOptions --add-opens=java.desktop/javax.imageio.stream=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED |
To clarify: <filepath> is me replacing my computer's file path with <filepath>. That's not how it shows up in the error. (I just don't want my computer's file path available on the internet.) |
(I hope you don't mind if I ping you @nroduit.) |
Please check with the original file first, as we cannot respond to issues that contain modifications. |
Ok. I don't think I'll be able to do that where the issue occurs, but I'll see what I can do. |
Describe the bug
When using the storescu process, we get the following error:
Exception in thread "main" java.lang.UnsatisfiedLinkError: <file path>\opencv_java.dll: Can't find dependent libraries
at java.base/jdk.internal.loader.NativeLibraries.load(Native Method)
at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:388)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:232)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:174)
at java.base/jdk.internal.loader.NativeLibraries.findFromPaths(NativeLibraries.java:315)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:287)
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2422)
at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:818)
at java.base/java.lang.System.loadLibrary(System.java:1989)
at org.opencv.osgi.OpenCVNativeLoader.init(OpenCVNativeLoader.java:17)
at org.dcm4che3.opencv.StreamSegment.(StreamSegment.java:76)
at org.dcm4che3.opencv.NativeImageReader.getNativeImage(NativeImageReader.java:260)
at org.dcm4che3.opencv.NativeImageReader.read(NativeImageReader.java:251)
at org.dcm4che3.imageio.codec.Decompressor.decompressFrame(Decompressor.java:299)
at org.dcm4che3.imageio.codec.Decompressor.writeFrameTo(Decompressor.java:285)
at org.dcm4che3.imageio.codec.Decompressor.writeTo(Decompressor.java:269)
at org.dcm4che3.imageio.codec.Decompressor$1.writeTo(Decompressor.java:202)
at org.dcm4che3.io.DicomOutputStream.writeAttribute(DicomOutputStream.java:213)
at org.dcm4che3.io.DicomOutputStream.writeAttribute(DicomOutputStream.java:189)
at org.dcm4che3.data.Attributes.writeTo(Attributes.java:3123)
at org.dcm4che3.data.Attributes.writeTo(Attributes.java:3062)
at org.dcm4che3.io.DicomOutputStream.writeDataset(DicomOutputStream.java:150)
at org.dcm4che3.net.DataWriterAdapter.writeTo(DataWriterAdapter.java:67)
at org.dcm4che3.net.PDUEncoder.writeDIMSE(PDUEncoder.java:475)
at org.dcm4che3.net.Association.invoke(Association.java:1286)
at org.dcm4che3.net.Association.invoke(Association.java:1274)
at org.dcm4che3.net.Association.cstore(Association.java:939)
at org.dcm4che3.tool.storescu.StoreSCU.send(StoreSCU.java:511)
at org.dcm4che3.tool.storescu.StoreSCU.sendFiles(StoreSCU.java:415)
at org.dcm4che3.tool.storescu.StoreSCU.main(StoreSCU.java:294)
This causes the store process to stop and fail.
To Reproduce
We're not sure what causes this and how to reproduce this behavior.
Desktop (please complete the following information):
Additional context
The storescu process works for some studies but fails for others. We've had this issue intermittently occur on certain other machines as well starting as far back as May 18th 2023.
The text was updated successfully, but these errors were encountered: