Error: core/core/stack.pmt:168 : Assertion failed: s->stor_begin != NULL.

When I run cluster_edge_betweenness() function I’ve received the following error:

Error in cluster_edge_betweenness(train_network) :
At core/core/stack.pmt:168 : Assertion failed: s->stor_begin != NULL. This is an unexpected igraph error; please report this as a bug, along with the steps to reproduce it.

I converted my adjacency matrix to the network using this code :

train_network <- graph_from_adjacency_matrix(adj_mat_users,
                                          mode = "undirected", 
                                          weighted = NULL,
                                          diag = FALSE)

And my adjacancy matrix is here :
adj_mat_users.Rdata (72.2 KB)

Works fine in my configuration :

R version 4.1.3 (2022-03-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 22000)

Matrix products: default

[1] LC_COLLATE=Dutch_Netherlands.1252  LC_CTYPE=Dutch_Netherlands.1252    LC_MONETARY=Dutch_Netherlands.1252
[4] LC_NUMERIC=C                       LC_TIME=Dutch_Netherlands.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] igraph_1.3.4

loaded via a namespace (and not attached):
[1] compiler_4.1.3  magrittr_2.0.1  rlang_1.0.4     pkgconfig_2.0.3

Yes, when I rerun the piece of my code it was ok!

What version of igraph and R are you using? Are you certain that you were using the same version both times you tried? Can you reproduce it at least erratically if you run the same code multiple times?

@Ilhom_Sadriddinov It would have been useful to get an answer to that question, as there are types of bugs which could cause this but do not manifest themselves consistently.

Anyway, I ran this with AddressSanitizer and it did not crash which gives me confidence that there is no problem with igraph.

Sorry for my late reply!
Yes, definitely. It is the same.
R version: 4.1.2
Igraph version: 1.3.4