tail-feather / python-ricoh-camera-sdk

MIT License
0 stars 2 forks source link

Segmentation fault upon connect #1

Open mangobot opened 4 years ago

mangobot commented 4 years ago

Hi, I'm using this python binding sdk on an ARM7 Debian platform. Ended up getting a segmentation fault error that gives no debug feedback when I tried to connect to my Pentax KP, as follows:

ricoh_camera_sdk.CameraDeviceDetector.detect(ricoh_camera_sdk.DeviceInterface.USB) Device 0 (VID=25fb and PID=017f) is a Ricoh Imaging PENTAX KP. [<ricoh_camera_sdk.CameraDevice object at 0xb69e4520>] ricoh_camera_sdk.CameraDeviceDetector.detect(ricoh_camera_sdk.DeviceInterface.USB)[0].connect(ricoh_camera_sdk.DeviceInterface.USB) Device 0 (VID=25fb and PID=017f) is a Ricoh Imaging PENTAX KP. Segmentation fault

Not really sure how to proceed from here, any ideas on how I can more thoroughly debug?

mangobot commented 4 years ago

As an update, ran it on an X64 debian system, which seems to not have the segfault issue. Perhaps there's a problem with the Ricoh ARM SDK? Would be interesting to be able to use this python interface on Raspberry Pi's and the like.

tail-feather commented 4 years ago

Hi, thanks for report. The libRicohCameraSDKCpp.so seems to depend on the libmtp.so.9 in the same folder. Enter the sdk's lib folder and execute the following command.

$ ldd libRicohCameraSDKCpp.so

If you have libmtp.so on your system, it can cause a crash.

There are several ways to get around that.

I hope this helps.