-
Notifications
You must be signed in to change notification settings - Fork 31
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 #315
Comments
Hi Elizabeth. Thanks for opening this issue. Everything looks fine with the installation from what I can see. Could you please restart your R session and run this code below?
This should give you this ouput:
Please, let me know if it works. If not, please paste the error message you get. ps. I've never seen an error message with the picture of a bomb before, so now I'm really curious. If it happens again, could please share a printscreen of the picture ? |
It also left me a note (error log) in my project folder with some error details that points to Java being the culprit. I can do some further digging unless something comes to your mind in dealing with this!
|
Ah, that bomb! Did you install your jdk from here? |
yes, but version 11 right? I had 19 installed, then got a different error, so I installed 11 and then had both and finally, got rid of 19. Then the bombs began... |
Yes, it's version 11. I can only suspect that some important files must have been deleted when you unnistaled v. 19. Try reinstalling jdk 11 again and see it works |
nothin' but bombs. I uninstalled and re-installed Java. No luck. Had a friend try with a slightly older Mac - we followed the identical steps and her's ended up running. So its not you! Will keep searching for a solution. |
Hey Elizabeth, any updates? I hope you've managed to disarm the bombs. I assume it is something to do with the Java installation |
Nope ☹… still searching for a cure.
From: Rafael H M Pereira ***@***.***>
Date: Friday, February 3, 2023 at 12:25 PM
To: ipeaGIT/r5r ***@***.***>
Cc: Delmelle, Elizabeth ***@***.***>, Author ***@***.***>
Subject: Re: [ipeaGIT/r5r] Fatal Error (Issue #315)
Hey Elizabeth, any updates? I hope you've managed to disarm the bombs. I assume it is something to do with the Java installation
—
Reply to this email directly, view it on GitHub<https://urldefense.com/v3/__https:/github.com/ipeaGIT/r5r/issues/315*issuecomment-1416175709__;Iw!!IBzWLUs!S6gdrhwPDiw0zo32Z4Kb3fDHqliH0hxGa5PkRGjfsweyZ1FFWpM62UlWlWgZ1hR6CeJwGnYWJCGastelunG-ziAgUziVdMo$>, or unsubscribe<https://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/A2P63VR47XDSORVWXVJZIQTWVU5ODANCNFSM6AAAAAAUNYXAGY__;!!IBzWLUs!S6gdrhwPDiw0zo32Z4Kb3fDHqliH0hxGa5PkRGjfsweyZ1FFWpM62UlWlWgZ1hR6CeJwGnYWJCGastelunG-ziAgTIWpito$>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Gee. Ok, try this.
|
Yes, I tried that. I believe that my issue could stem from having an ARM processor (my two friends who tried with slightly older macs and did not have problems, had intel processors). I see some threads on this issue for Java and will see if I can get something to work…
From: Rafael H M Pereira ***@***.***>
Date: Friday, February 3, 2023 at 3:35 PM
To: ipeaGIT/r5r ***@***.***>
Cc: Delmelle, Elizabeth ***@***.***>, Author ***@***.***>
Subject: Re: [ipeaGIT/r5r] Fatal Error (Issue #315)
Gee.
Ok, try this.
* Restart R
* Open command prompt (I think it's called 'terminal' in MacOS) and run "ulimit -c unlimited"
* Then try running the code of the example above
—
Reply to this email directly, view it on GitHub<https://urldefense.com/v3/__https:/github.com/ipeaGIT/r5r/issues/315*issuecomment-1416374701__;Iw!!IBzWLUs!X6Ptv7CU8VupeFn2wdutLLFlaKqlZl701dkE3Kjo_4gHl8O4oUfjAHNlEDkpfg80KsRxFst0PKGhYo9vA00qqt_iE--DSj0$>, or unsubscribe<https://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/A2P63VQYTHDRURMGMH2GOMTWVVTZPANCNFSM6AAAAAAUNYXAGY__;!!IBzWLUs!X6Ptv7CU8VupeFn2wdutLLFlaKqlZl701dkE3Kjo_4gHl8O4oUfjAHNlEDkpfg80KsRxFst0PKGhYo9vA00qqt_ipMxmvho$>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
On a quick search, I came across this possible patch to the problem https://stackoverflow.com/questions/67849830/how-to-install-rjava-package-in-mac-with-m1-architecture |
Hi @ECDelmelle . Have you had any success with this problem? |
Hi Rafapereirabr. I know I'm not the original poster, but I am also having the same Issue. I followed thelink above, and I was able to install jdk version 11 and load the rjava library just fine, however, I am still getting the bomb! I have attached the error report generated by the session in case that is helpful. Let me know if you need anymore information! |
Thanks for your message @charperflow. I see you also use MacBook with ARM cpu processor, so it serves as additional evidence this is a compatibility issue between jdk 11 and ARM cpu processors. I'm sorry there is nothing we can do from our side to help address this issue |
Had the same issue with my ARM mac. Would love to know if anyone figures out a work around! |
For any future users with mac ARM processors facing this issue, I followed the steps from https://stackoverflow.com/questions/67849830/how-to-install-rjava-package-in-mac-with-m1-architecture (installing a x86_64 build of Java SDK version 11 from AdoptOpenJDK to be compatible with a x86_64 build of R) and was able to bypass the fatal error and run the example in this thread (albeit with some warnings during setup_r5). |
Thanks so much for sharing the solution you have found @hphoebe ! |
I can confirm the sample code above now works fine with the dev version and Java SDK 21 on my M2 MacBook! |
This is great. Thanks @higgicd . @ECDelmelle , @hphoebe, @jleape and @charperflow. Could any of you please check wether the issue persists in your computer? See code below: Clean install of dev version
Test code
|
Yes!! It works! I Just had to install Java Development Kit 21 and got an output!
from_id to_id travel_time_p50
1: public_market public_market 0
2: public_market bus_central_station 14
3: public_market gasometer_museum 12
4: public_market santa_casa_hospital 15
5: public_market townhall 3
6: public_market piratini_palace 17
From: Rafael H M Pereira ***@***.***>
Date: Monday, December 4, 2023 at 2:39 PM
To: ipeaGIT/r5r ***@***.***>
Cc: Delmelle, Elizabeth ***@***.***>, Mention ***@***.***>
Subject: Re: [ipeaGIT/r5r] Fatal Error (Issue #315)
This is great. Thanks @higgicd<https://urldefense.com/v3/__https:/github.com/higgicd__;!!IBzWLUs!SIbl8yfdI_zcc41y0hgsKAQ1vi5OojbKVyK9I-gBfzEyJlA0aX21_Y4RVXhrwYxaRClcYLG0X6LIEYFv-tqeJ7NhrnQVJrM$> .
@ECDelmelle<https://urldefense.com/v3/__https:/github.com/ECDelmelle__;!!IBzWLUs!SIbl8yfdI_zcc41y0hgsKAQ1vi5OojbKVyK9I-gBfzEyJlA0aX21_Y4RVXhrwYxaRClcYLG0X6LIEYFv-tqeJ7Nhkz4V6WI$> , @hphoebe<https://urldefense.com/v3/__https:/github.com/hphoebe__;!!IBzWLUs!SIbl8yfdI_zcc41y0hgsKAQ1vi5OojbKVyK9I-gBfzEyJlA0aX21_Y4RVXhrwYxaRClcYLG0X6LIEYFv-tqeJ7Nh8CyFXlU$>, @jleape<https://urldefense.com/v3/__https:/github.com/jleape__;!!IBzWLUs!SIbl8yfdI_zcc41y0hgsKAQ1vi5OojbKVyK9I-gBfzEyJlA0aX21_Y4RVXhrwYxaRClcYLG0X6LIEYFv-tqeJ7NhrHUXVFs$> and @charperflow<https://urldefense.com/v3/__https:/github.com/charperflow__;!!IBzWLUs!SIbl8yfdI_zcc41y0hgsKAQ1vi5OojbKVyK9I-gBfzEyJlA0aX21_Y4RVXhrwYxaRClcYLG0X6LIEYFv-tqeJ7NhddyV9vo$>. Could any of you please check wether the issue persists in your computer? See code below:
Clean install of dev version
utils::remove.packages('r5r')
devtools::install_github("ipeaGIT/r5r", subdir = "r-package")
Test code
options(java.parameters = '-Xmx4G')
library(r5r)
# build transport network
data_path <- system.file("extdata/poa", package = "r5r")
r5r_core <- setup_r5(data_path, overwrite = T)
# load origin/destination points
points <- read.csv(file.path(data_path, "poa_points_of_interest.csv"))
departure_datetime <- as.POSIXct(
"13-05-2019 14:00:00",
format = "%d-%m-%Y %H:%M:%S"
)
ttm <- travel_time_matrix(
r5r_core,
origins = points,
destinations = points,
mode = c("WALK", "TRANSIT"),
departure_datetime = departure_datetime,
max_trip_duration = 60,
progress = T
)
head(ttm)
—
Reply to this email directly, view it on GitHub<https://urldefense.com/v3/__https:/github.com/ipeaGIT/r5r/issues/315*issuecomment-1839349404__;Iw!!IBzWLUs!SIbl8yfdI_zcc41y0hgsKAQ1vi5OojbKVyK9I-gBfzEyJlA0aX21_Y4RVXhrwYxaRClcYLG0X6LIEYFv-tqeJ7NhrM8Bk3g$>, or unsubscribe<https://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/A2P63VUA6MAMMIZU6AL4CJTYHYRFJAVCNFSM6AAAAAAUNYXAG2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZZGM2DSNBQGQ__;!!IBzWLUs!SIbl8yfdI_zcc41y0hgsKAQ1vi5OojbKVyK9I-gBfzEyJlA0aX21_Y4RVXhrwYxaRClcYLG0X6LIEYFv-tqeJ7NhoyXQs_Q$>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Wonderful. Thanks for the feedback, @ECDelmelle . Closing this issue for now. We're planning a new update of |
I am getting a 'fatal error' (with a scary picture of a bomb) that shuts down R studio when I try to run r5r -- either with the sample data or my own.
Here are the details:
The text was updated successfully, but these errors were encountered: