Forum: gecon


RE: R session aborted error [ Reply ] By: Karol Podemski on 2025-04-14 18:58 | [forum:50078] |
If your model is large because contains many sectors, households and firms, you may try to scale it down and check if it solves when downsized. |
RE: R session aborted error [ Reply ] By: Manuel Molano on 2023-07-19 20:57 | [forum:49735] |
Thank you Karol! I’m able to run it on my Linux machines, which makes me happy enough. If I find a way to run it via Brew in Mac OS, I’ll let you know. |
RE: R session aborted error [ Reply ] By: Karol Podemski on 2023-07-19 19:26 | [forum:49732] |
Hi Sergio, Manuel, we were able to identify the source of the problem and remediate it. Please download the newest release of the package (1.2.2) and this should work fine both under Windows and Linux machines. |
RE: R session aborted error [ Reply ] By: Sergio Ramos on 2023-05-07 09:52 | [forum:49731] |
Dear all, I've been facing the same problem in two different computers, and the solution that worked for me was to execute R-Studio from anaconda (the python environment which allows you to install and run R). Once you install anaconda, instal R-Studio (takes some time) and then try to install the gEcon software. I hope this works for you, I've tried this procedure in both computers and it worked. |
RE: R session aborted error [ Reply ] By: Karol Podemski on 2023-04-08 13:34 | [forum:49632] |
Hi Manuel, the error you encountered is not caused by any new bugs in version 4.2.1 compared to the previous versions. I faced the same issue when I tried to build a model using sets with Ubuntu 18+ and previous versions of gEcon: 1.1.0 and 1.2.0. This may be caused either due to incompatibility of DLLs after upgrade to Ubuntu 18+, update of compiler or some other code issues (possibly with index sets as without them the package works fine). The package should work properly under Windows. We will try to come up with a solution. Regards, Karol Podemski |
RE: R session aborted error [ Reply ] By: Manuel Molano on 2023-04-08 06:11 | [forum:49631] |
Dear Amando and Prasanta, I am having the same issue, using R 4.2.3 and gEcon 1.2.1 on Debian Linux. I have tried on two machines, one with Intel processor and a tiny 2GB memory and other with an ARM processor and 8GB memory (Raspberry Pi). The phenomenon is more or less the same on both: R version 4.2.3 (2023-03-15) -- "Shortstop Beagle" Copyright (C) 2023 The R Foundation for Statistical Computing Platform: aarch64-unknown-linux-gnu (64-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. Natural language support but running in an English locale R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. [Previously saved workspace restored] > cge_gov <- make_model("cge_gov_templ.gcn") Error in make_model("cge_gov_templ.gcn") : could not find function "make_model" > cge_gov <- make_model("/home/mjmolano/Downloads/cge_gov_templ.gcn") Error in make_model("/home/mjmolano/Downloads/cge_gov_templ.gcn") : could not find function "make_model" > library(gEcon) Loading required package: MASS Loading required package: Matrix Loading required package: nleqslv Loading required package: Rcpp This is gEcon version 1.2.1 (2023-01-18) http://gecon.r-forge.r-project.org/ > cge_gov <- make_model("cge_gov_templ.gcn") *** caught segfault *** address 0x1000000000010, cause 'memory not mapped' Traceback: 1: make_model("cge_gov_templ.gcn") Possible actions: 1: abort (with core dump, if enabled) 2: normal R exit 3: exit R without saving workspace 4: exit R saving workspace Selection: 1 R is aborting now ... Segmentation fault. The model I am running is one of gEcon templates, 3-firm static with government. I tried to run "calibration" as well and have a similar issue. I believe this is a glitch in gEcon 1.2.1 programming, as I can run on 1.2.0 and R 3.5.x in Windows 10 and an equilibrium is found. The problem I have with said Windows machine is that it's really slow. I know the nice folks in Poland build and maintain this out of their good heart, and I am thankful for that. If I can help in any way, please let me know. I think gEcon is great. All the best, Manuel |
RE: R session aborted error [ Reply ] By: Amando Zanderigo on 2023-02-01 03:36 | [forum:49590] |
Hi Prasanta, I cannot say for sure whether the problem is a memory issue as I do not know your machine and also am not familiar with the package gEcon. However, the page https://gecon.r-forge.r-project.org/download.html says that some functions are compiled prior to being invoked and this may cause R to freeze. Check the red message towards the bottom of the page, it may be a good place to start. Amando |
R session aborted error [ Reply ] By: Prasanta Roy on 2023-01-28 20:21 | [forum:49589]![]() |
As I run the function make_model (see screenshot image attached), R session terminates abruptly. Is it due to memory constraints? I reinstalled R, Rstudio, all packages, still problem persists. How could I resolve it? |