fast_change_detection icon indicating copy to clipboard operation
fast_change_detection copied to clipboard

Loading model... Error reading Obj file! Segmentation fault

Open CESI2Jaafar opened this issue 1 year ago • 4 comments

With the below two errors, I could run your models. image image When, I start running my model which is digital twin of a lab, I get this error: OpenGL Context Version 3.3 core profile GLEW initialized. OpenGL context version: 3.3 OpenGL vendor string : Microsoft Corporation OpenGL renderer string: D3D12 (NVIDIA GeForce RTX 2080) Loading model... Error reading Obj file! Segmentation fault

CESI2Jaafar avatar Apr 20 '23 14:04 CESI2Jaafar

Hi, sorry for the late response. It looks like a problem of the parser. It's been a lot and don't remember the code well, but I guess you can see what's wrong somewhere in https://github.com/PRBonn/fast_change_detection/blob/master/src/utils/obj_reader.cpp. You can try printing the actual exception here https://github.com/PRBonn/fast_change_detection/blob/master/src/example.cpp#L31, rather than the generic error... One simple question: is the data named correctly (in a structure similar to my dataset)?

Eman7C7 avatar Apr 25 '23 10:04 Eman7C7

Hi, Your response is highly apprecaited! Yes everything like yours and I have checked with notepad++. Also they are similar. I could open one and just it does show a part of 3D obj not entire of that. If run again, it does not works. Sound magic

CESI2Jaafar avatar Apr 25 '23 10:04 CESI2Jaafar

Just a easy question does groun_turth has affect on?

CESI2Jaafar avatar Apr 26 '23 08:04 CESI2Jaafar

No, ground_truth is for evaluation. The software doesn't require it.

The two things I suggests are:

  • try simplifying the mesh to verify that it's not a memory problem
  • try printing the original exception of the obj reader instead of the caught one by the example program

Eman7C7 avatar Apr 27 '23 14:04 Eman7C7