Repeated Assertion Failed Error During Simulation

20 views
Skip to first unread message

Nothing else

unread,
Mar 24, 2026, 5:59:03 AMMar 24
to Dinamica EGO
Hello everyone, , I’m having a recurring problem with Dinamica EGO 8 and was wondering whether anyone here might have some suggestions. During the simulation step, I often get an “Assertion Failed” error, with messages related to AFS_functor and !probabilities.empty(). The strange thing is that the model occasionally runs successfully, but in most cases it crashes with the same error. I’ve tried several possible fixes on my side, but I still haven’t been able to solve it.  Has anyone experienced something similar, or have any idea what I should check next? I’d really appreciate any advice.image.pngimage2.png

Hermann Oliveira Rodrigues

unread,
Mar 24, 2026, 1:14:30 PMMar 24
to Dinamica EGO
Hi,

I don't know how you are generating the probability map, but can you change it so that it is represented using integer values?

To do that, change the output type of CalcWOfEProbabilityMap to a 32-bit signed integer. Alternatively, if you are using a probability map generated by some other method, apply a linear interpolation to map 0.0 to 0 and 1.0 to 2147483647. Then run the model as usual.

Representing the probability as a 32-bit integer provides sufficient resolution, so the values will not be distorted. However, it is important for the cell type of the probability map to be a 32-bit signed integer so that Patcher and Expander can determine the probability ranges based on the cell type.

hermann

----------------------------------------------------------------------
Hermann Rodrigues
Centro de Sensoriamento Remoto / UFMG
https://csr.ufmg.br | https://dinamicaego.com




On Tue, Mar 24, 2026 at 5:59 AM Nothing else via Dinamica EGO <dinami...@googlegroups.com> wrote:
>
> Hello everyone, , I’m having a recurring problem with Dinamica EGO 8 and was wondering whether anyone here might have some suggestions. During the simulation step, I often get an “Assertion Failed” error, with messages related to AFS_functor and !probabilities.empty(). The strange thing is that the model occasionally runs successfully, but in most cases it crashes with the same error. I’ve tried several possible fixes on my side, but I still haven’t been able to solve it.  Has anyone experienced something similar, or have any idea what I should check next? I’d really appreciate any advice.
>
> --
> You received this message because you are subscribed to the Google Groups "Dinamica EGO" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to dinamica-ego...@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/dinamica-ego/be130285-ae01-4962-9d9d-06905cf5d36an%40googlegroups.com.

Nothing else

unread,
Mar 25, 2026, 5:14:55 AMMar 25
to Dinamica EGO

Dear Hermann,

Thank you very much for your reply and for your helpful suggestion!

My probability map was also generated using Calc W Of E Probability Map. Originally, the output type was set to IEEE 754 32-bit real. After changing it to 32-bit signed integer as you suggested, the model was able to run normally.

Previously, I had even tried using Python to replace null values in the probability map with 0, but the simulation still did not work. I had not realized that the issue was related to the output cell type. Your advice helped me identify and solve the problem.

I really appreciate your help. Thank you again for taking the time to respond!

Wishing you all the best.

Best regards,
Lynx

Reply all
Reply to author
Forward
0 new messages