-
Notifications
You must be signed in to change notification settings - Fork 4
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
Fortran runtime error: Bad value during integer read #3
Comments
I've just filled in any missing values in the legis.data, and it proceeded without the previous error. But now I am getting something else, namely " *** caught segfault *** address 0x7fff2c600d3c, cause 'memory not mapped'". I browsed through stackoverflow and it seems the cause of this type of error can be very diverse..
|
The NA's are an issue. I didn't think to handle NA values for the legislator data, so I should fix that. As for the segfault, my first two questions are:
Assuming the example runs and you installed the package with gfortran 4.8, I can look through the fortran code to try to get an idea of where the segfault occurred. Fair warning though, this can be difficult to debug and I don't know if I will be able to give you the answer or how long it'll take me to find it. (Though I will definitely give it a try because these segfaults annoy me.) Do you really only have 2 congresses in your data? The DW-NOMINATE fortran code won't estimate a dynamic model unless there are at least 5 congresses, so the results, if it runs, should be nearly identical to W-NOMINATE. The wnominate package is much more stable and mature than this one and I definitely recommend it unless you specifically need to estimate a dynamic model. |
Thanks for the quick response! The senate example did work, but not my own data. And yes, I used gfortran 4.8. But when I used another laptop (also MacOS) later, it did work and gave me output, so it might be that my configuration in this laptop is somehow off. I currently only have 2 congresses but am in the process of cleaning some more data and adding more. This was more of a learning/trial process for me, and the codes did give me outputs which seems to have some face validity, but as you said they also seem to be very close to W-Nominate. Thanks! |
I made a series of commits that should fix the legis.data NA problem, and hopefully a lot of the segfault problems as well, so I'm going to mark this as closed (unless you find that it still isn't working). |
Thanks for providing this package!
I'm trying to run dw-nominate in a setting where there is only a small number of rollcall votes (and relatively small number of legislators). I'm getting an error that says "Fortran runtime error: Bad value during integer read" and am not sure whether it's because of the data constraint, about my session environment, something with the gcc/fortran, or all of these.
I ran these on a mac command-line R. My output and sessionInfo posted below as well. If you could point me towards some direction as to how I might be able to fix this, I'd greatly appreciate it. Thanks!
The text was updated successfully, but these errors were encountered: