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

No outputs written - Zambia replication #16

Open
Elgenied opened this issue Nov 15, 2023 · 9 comments
Open

No outputs written - Zambia replication #16

Elgenied opened this issue Nov 15, 2023 · 9 comments

Comments

@Elgenied
Copy link

Dear,

Thank you for your continuous support. I appreciate your assistance in helping me extend the MLED-OnSSET model to other countries that I am currently analyzing.

I have started by replicating the Zambia case study. However, I encountered some challenges during the installation of the R packages, (coming from Python background ) as there were several geospatial packages that have been deprecated since October 2023.

In my particular case, I ran the M-LED_hourly.R file for Zambia, and the log.txt file showed all the steps up until "## starting writing outputs," but the outputs were not actually written. I am working on Windows 10 with R version 4.3, using RStudio.

@Elgenied
Copy link
Author

image
These are the only results hown in mled/results file . the zambia file is empty.

@giacfalk
Copy link
Collaborator

Dear Elgenied, thanks for your interest in RE4AFAGRI and M-LED. Could you please indicate if particular warnings were reported in the RStudio console during the outputs writing phase, and if anything particular is reported when prompting library(sf) into RStudio?

@Elgenied
Copy link
Author

the first analyysis i guess because of memory issues , I was allowing Paralell operation to be True , this occured in the last step of writing the outpus after running for several hours , and got this error :

Error: cannot allocate vector of size 874 Kb In addition: There were 50 Warnings

Then I changed the boolen variable to F and it failed at step 10 , this was the error message :

At core/core/vector.pmt:1030 : Assertion failed: v->stor_begin != NULL. This is an unexpected igraph error; please report this as a bug, along with the steps to reproduce it.
Please restart your R session to avoid crashes or other surprising behavior.
In addition: There were 50 or more warnings (use warnings() to see the first 50)
Called from: add_edges(res, edges = t(as.matrix(el[, 1:2])), attr = weight)

I think it might be realted to 'igraph' tool. is there specific version of it youu'd recommend?

@giacfalk
Copy link
Collaborator

The first error is indeed a memory error given by the excessive use of resources (could you post the specs of your computer? How much RAM do you have?). Then, I am not familiar with this second error, I recommend restarting a clear RStudio session, and typing a remove.packages("igraph"), followed by an `"install.packages("igraph")``. After that, I would recommend re-running the model. Please let me know

@Elgenied
Copy link
Author

Thank you for your answer . regarding my specs it's 16 G RAM , Intel Core i7-10 G , the Laptop isn't at it's optimal condtions so i would expect lower perfromance.
I'll re-install the 'igrpah' package and re-run the workflow !

Thanks again for your answer

@giacfalk
Copy link
Collaborator

Thanks. It's certainly not an hardware issue then, as the model run on computers with much lower specs.

@giacfalk
Copy link
Collaborator

@Elgenied any news?

@szhorvat
Copy link

At core/core/vector.pmt:1030 : Assertion failed: v->stor_begin != NULL. This is an unexpected igraph error; please report this as a bug, along with the steps to reproduce it.

When you see a message like this, it is always a bug in igraph. This particular bug may already be fixed in igraph, which received a major update recently. Please test the latest version first (2.0.2 will be on CRAN soon).

If the issue is still present, please try to produce a minimal reproducer that does not depend on any other package than igraph, and open an issue in the R/igraph repo at https://github.com/igraph/rigraph/

@giacfalk
Copy link
Collaborator

At core/core/vector.pmt:1030 : Assertion failed: v->stor_begin != NULL. This is an unexpected igraph error; please report this as a bug, along with the steps to reproduce it.

When you see a message like this, it is always a bug in igraph. This particular bug may already be fixed in igraph, which received a major update recently. Please test the latest version first (2.0.2 will be on CRAN soon).

If the issue is still present, please try to produce a minimal reproducer that does not depend on any other package than igraph, and open an issue in the R/igraph repo at https://github.com/igraph/rigraph/

Many thanks for cross-posting this, might be useful for M-LED users!

@giacfalk giacfalk reopened this Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants