dthuerck / mapmap_cpu

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

Crash in dp_node_solver.impl.h #37

Closed melhashash closed 1 year ago

melhashash commented 1 year ago

I am facing a crash here, looks like m_label_union_size exceeds the allocated memory. Any idea what might be the cause?

https://github.com/dthuerck/mapmap_cpu/blob/9f14751761a7a18561f3cc4425d3071090733de8/mapmap/source/optimizer_instances/dp_node_solver.impl.h#L618

I am using Windows with VS2022

melhashash commented 1 year ago

Attached is a binary file for the problem I have with the same format used in the demo.

problem.zip

melhashash commented 1 year ago

Solved by making sure labels are sorted.