bytedeco / procamcalib

A User-Friendly Method to Calibrate Cameras and Projector-Camera Systems
GNU General Public License v2.0
73 stars 26 forks source link

Crashes on open - realsense.dll #27

Open eldrickm opened 2 years ago

eldrickm commented 2 years ago

Hello,

I'm receiving the following error (full log attached) upon opening the application.

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007fffa4c121f3, pid=33116, tid=17012
#
# JRE version: Java(TM) SE Runtime Environment (17.0.2+8) (build 17.0.2+8-LTS-86)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (17.0.2+8-LTS-86, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, windows-amd64)
# Problematic frame:
# C  [realsense.dll+0x521f3]

I'm on Windows 10 with Oracle JDK 17.02

It seems to be an issue with the realsense dll - has this been seen before?

Thanks! hs_err_pid33116.log

saudet commented 2 years ago

If you don't have a RealSense camera, you can just remove those files from the modules subdirectory.

eldrickm commented 2 years ago

Hi Samuel,

Unfortunately I am using a RealSense camera. I can confirm that removing librealsense.jar does prevent the crash, but I cannot open the RealSense camera device in the application.

Are there other workarounds?

Thank you!

saudet commented 2 years ago

Well, it's obviously some issue with librealsense itself. Someone will need to debug this...

poqudrof commented 2 years ago

Hello, I have been tagged here.

A possible issue would be that the DLL does not match the same API as the Intel SDK. I am not sure how the code evolved in the past years, however the java versions were much older and the Intel Realsense SDKs changed a lot. I still have a realsense camera, but I am not sure to be able to make it work.

What camera do you use, and which version of Realsense Drivers ? 

eldrickm commented 2 years ago

Hi Jeremy,

I'm using the L515 (the ToF one) and am using the v2.5.0 of the SDK (https://github.com/IntelRealSense/librealsense/releases/tag/v2.50.0)

saudet commented 2 years ago

If you have a camera that works with version 2.x of the SDK, use "RealSense2" instead. You can ignore "RealSense".