Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error when using cluster_leading_eigen function #203

Closed
yangstat opened this issue Jun 28, 2017 · 7 comments
Closed

Fatal error when using cluster_leading_eigen function #203

yangstat opened this issue Jun 28, 2017 · 7 comments

Comments

@yangstat
Copy link

yangstat commented Jun 28, 2017

I was using cluster_leading_eigen function for community detection. I keep getting a fatal error. For example, if I try the examples in the help file,

g <- make_full_graph(5) %du% make_full_graph(5) %du% make_full_graph(5)
g <- add_edges(g, c(1,6, 1,11, 6, 11))
lec <- cluster_leading_eigen(g)

The third line will give a fatal error and restart the R session. What is wrong here?

@fairmiracle
Copy link

yes, I got the same problem. 'cluster_leading_eigen' seems not working on the new R 3.4.0 but OK with R 3.2.5 and 3.3.1

@gaborcsardi
Copy link
Contributor

Try the igraph_1.1.0.zip file from here: https://github.com/igraph/rigraph/releases/tag/v1.1.0

@yangstat
Copy link
Author

yangstat commented Jul 1, 2017

I installed the 1.1.0 version. When I library igraph, I got

library("igraph", lib.loc="~/R/win-library/3.4")
Error: package or namespace load failed for ‘igraph’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘pkgconfig’

@gaborcsardi
Copy link
Contributor

It depends on the pkgconfig package, you need to install that, too.

@yangstat
Copy link
Author

yangstat commented Jul 1, 2017

Thanks. It's working now.

@MichaelChirico
Copy link

I just encountered this on version 1.2.11 (so, more recent than this issue).

It appears fixed on CRAN (1.3.5 as of now) but I don't see any associated NEWS item, it seems pretty important given the R session crashes.

Here's an MRE in case the bug was fixed incidentally and it can serve as a regression test:

library(igraph)
g = make_graph("Zachary")
cluster_leading_eigen(g, callback = function(...) stop())

cc @ntamas in case you don't get notifications for the old / closed issue.

@szhorvat
Copy link
Member

szhorvat commented Dec 29, 2022

@MichaelChirico Your issue is much more likely to be related to #253 (which is partially fixed in 1.3) than this issue here.

@github-actions github-actions bot locked and limited conversation to collaborators Mar 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants