-
Notifications
You must be signed in to change notification settings - Fork 79
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
New version crashes R #343
Comments
Thanks for the report, sorry for the trouble. Can you try running from a shell, is there an output before the crash? Can you compile RPostgres from source to do a |
What does |
RPostgres:::client_version() generates 130004 for both 1.3.3 and 1.4.0.
|
Thanks, that helps. Can you compile RPostgres from source to do a git clone https://github.com/r-dbi/RPostgres.git
cd RPostgres
git bisect bad v1.4.0
git bisect good v1.3.3
cp ... test.R
git bisect run R -q -f test.R with system("git clean -fdx")
pkgload::load_all()
dbConnect(...) The process might run for ~1 hour, much faster if Let me know if you need more info. |
Looking at the changes to the C++ code since v1.3.3, I think I might have found the problem. |
The first PR might fix the cause, the second PR the symptoms (but crash at the first query). Can you please install with remotes::install_github("r-dbi/RPostgres#345") and test? |
Problem solved. Thank God that I don't have to do the one-hour git bisect. Thank you for this great package and quick reply. |
- Avoid crash by dereferencing 0-size vector (#343).
RPostgres 1.4.1 - Avoid crash by dereferencing 0-size vector (#343).
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary. |
The recent updated RPostgres crashes R when running a code that used to work (account information is not disclosed):
My session information is as follows:
I reverted to version 1.3.3 and it works again.
The text was updated successfully, but these errors were encountered: