# Error: core/core/stack.pmt:168 : Assertion failed: s-\>stor\_begin != NULL.

**URL:** <https://igraph.discourse.group/t/error-core-core-stack-pmt-168-assertion-failed-s-stor-begin-null/1342>\
**Category:** Usage\
**Tags:** R\
**Created:** [1 September 2022 10:17 UTC](https://igraph.discourse.group/t/error-core-core-stack-pmt-168-assertion-failed-s-stor-begin-null/1342 "2022-09-01T10:17:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ilhom\_Sadriddinov](https://yyz2.discourse-cdn.com/free1/user_avatar/igraph.discourse.group/ilhom_sadriddinov/32/720_2.png) [@Ilhom\_Sadriddinov](https://igraph.discourse.group/u/Ilhom_Sadriddinov)\
**Post date:** [1 September 2022 10:17 UTC](https://igraph.discourse.group/t/error-core-core-stack-pmt-168-assertion-failed-s-stor-begin-null/1342/1 "2022-09-01T10:17:16Z")

</div>

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 :

```auto
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](https://igraph.discourse.group/uploads/short-url/rQHohFxMO9tEzc6MMjX3amcHc5h.Rdata) (72.2 KB)

---

<div class="post-metadata">

**Author:** ![KeesP](https://avatars.discourse-cdn.com/v4/letter/k/2bfe46/32.png) [@KeesP](https://igraph.discourse.group/u/KeesP)\
**Post date:** [1 September 2022 12:32 UTC](https://igraph.discourse.group/t/error-core-core-stack-pmt-168-assertion-failed-s-stor-begin-null/1342/2 "2022-09-01T12:32:20Z")

</div>

Works fine in my configuration :  
sessionInfo()

```auto
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

locale:
[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

```

---

<div class="post-metadata">

**Author:** ![Ilhom\_Sadriddinov](https://yyz2.discourse-cdn.com/free1/user_avatar/igraph.discourse.group/ilhom_sadriddinov/32/720_2.png) [@Ilhom\_Sadriddinov](https://igraph.discourse.group/u/Ilhom_Sadriddinov)\
**Post date:** [2 September 2022 05:57 UTC](https://igraph.discourse.group/t/error-core-core-stack-pmt-168-assertion-failed-s-stor-begin-null/1342/3 "2022-09-02T05:57:00Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![szhorvat](https://yyz2.discourse-cdn.com/free1/user_avatar/igraph.discourse.group/szhorvat/32/3_2.png) [@szhorvat](https://igraph.discourse.group/u/szhorvat)\
**Post date:** [2 September 2022 09:13 UTC](https://igraph.discourse.group/t/error-core-core-stack-pmt-168-assertion-failed-s-stor-begin-null/1342/4 "2022-09-02T09:13:47Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![szhorvat](https://yyz2.discourse-cdn.com/free1/user_avatar/igraph.discourse.group/szhorvat/32/3_2.png) [@szhorvat](https://igraph.discourse.group/u/szhorvat)\
**Post date:** [3 September 2022 21:40 UTC](https://igraph.discourse.group/t/error-core-core-stack-pmt-168-assertion-failed-s-stor-begin-null/1342/5 "2022-09-03T21:40:35Z")

</div>

@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](https://en.wikipedia.org/wiki/AddressSanitizer) and it did not crash which gives me confidence that there is no problem with igraph.

---

<div class="post-metadata">

**Author:** ![Ilhom\_Sadriddinov](https://yyz2.discourse-cdn.com/free1/user_avatar/igraph.discourse.group/ilhom_sadriddinov/32/720_2.png) [@Ilhom\_Sadriddinov](https://igraph.discourse.group/u/Ilhom_Sadriddinov)\
**Post date:** [5 September 2022 02:31 UTC](https://igraph.discourse.group/t/error-core-core-stack-pmt-168-assertion-failed-s-stor-begin-null/1342/6 "2022-09-05T02:31:32Z")

</div>

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