clj-python / libpython-clj

Python bindings for Clojure
Eclipse Public License 2.0
1.06k stars 69 forks source link

How to see some error logs why a repl closes #119

Closed zendevil closed 3 years ago

zendevil commented 4 years ago

I load a piece of code into the repl. o3d is open 3d:

(let [img-path "/foo/000000_11.png"
         img (img-path->np img-path)
         depth (->
                (midas/infer img)
                (midas-utils/to_depth)) ; works
         cam-intrinsics (py.. o3d/camera
                              (PinholeCameraIntrinsic
                               (py/get-item (py.- depth shape) 0)
                               (py/get-item (py.- depth shape) 1)
                               525.0 525.0 319.5 239.5)) ; seems to work
         ]

     (->>
      [(py.. o3d/geometry -RGBDImage
             (create_from_color_and_depth
              (py. o3d/io read_image img-path)
              (py. o3d/io read_image img-path)
              ))]
      (py. o3d/visualization draw_geometries)
      )))

And the last line

(py. o3d/visualization draw_geometries)

when uncommented, inexplicably closes the repl.

*** Closed on Thu Sep  3 20:11:34 2020 ***

How to find more about why the repl got closed?

cnuernber commented 3 years ago

There should be a java dump file around - these look like hs_err_pid30064.log and will tell you where the crash was.