dthuerck / mapmap_cpu

A high-performance general-purpose MRF MAP solver, heavily exploiting SIMD instructions.
BSD 3-Clause "New" or "Revised" License
103 stars 51 forks source link

crashed at runtime when linked to tbb 2018_U5 #13

Closed Mad-Thanos closed 5 years ago

Mad-Thanos commented 6 years ago

hi, Daniel I'm not sure if this is the right place to open this issue. forgive me if wrong. I have tried to compile in xcode 9.4 mvs-texturing which depends on master branch of mapmap_cpu , but mvs-texturing's demo app(namely texrecon) crashed at runtime. The call trace show that it crashes at mapmap's DynamicProgramming Solver, like this:(each time it crashes at line 99) image It crashes when DynamicProgrammingTableEntry<COSTTYPE, SIMDWIDTH>::optimize_entry() is ready to return, releasing the local variable named solver which is an unique_ptr instance. The wierd thing is: when i switch to xcode 9.2 and compile and run it, it turns out everything is fine. Do you figure out why did that crash happen?

dthuerck commented 6 years ago

Hi,

did you encounter the same problem in other OS's? DUe to lack of access to a mac around here, I'm having a hard time reproducing this bug ;)

Mad-Thanos commented 6 years ago

Hi, so far I've just tried on MacOS High Serria 10.13.6 and iOS 11.4.1.

xcode 9.4 is wierd, xcode 9.2 is ok.

I'll try on ubuntu and windows and see if I can reproduce this issue.

Mad-Thanos commented 6 years ago

hi @dthuerck , I've tried on Ubuntu 16.0.4+Gcc 5.5.0+tbb2018_U5, and as expected, everything is fine.