-
Notifications
You must be signed in to change notification settings - Fork 21
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
Cannot load qgis_process - corrupted size vs. prev_size in fastbins Aborted (core dumped) #205
Comments
Thanks @temospena for your elaborate analysis, it may add more hints to solve this problem in QGIS. The problem pops up with several QGIS-versions built to work with library versions from the ubuntugis-unstable PPA, like your LTR version (which I didn't test, so it's good to know). It's definitely the The problem has been reported here: qgis/QGIS#56285. Initially there was yet another problem but this one still remains. The problem also just started popping up in the GitHub Actions package check here for the ubuntugis QGIS build. It's actually the first time that I also see the crash happening with a mere
This is interesting too. There should be some difference that explains it. Did you already update the system packages on that other system? Is the output of the |
Thank you @florisvdh for the analysis. Regarding the other machine, something weird is happening. >library(qgisprocess)
Attempting to load the package cache ... Success!
QGIS version: 3.28.15-Firenze
Having access to 653 algorithms from 5 QGIS processing providers.
Run `qgis_configure(use_cached_data = TRUE)` to reload cache and get more details. but in terminal this message is thrown (and same for ~$ qgis_process
qt.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
Aborted (core dumped) But it works fine within R! Regarding the ppa, i have these: /etc/apt/sources.list.d/ubuntugis-ubuntu-ubuntugis-unstable-jammy.list:deb https://ppa.launchpadcontent.net/ubuntugis/ubuntugis-unstable/ubuntu/ jammy main
/etc/apt/sources.list.d/ubuntugis-ubuntu-ubuntugis-unstable-jammy.list:# deb-src https://ppa.launchpadcontent.net/ubuntugis/ubuntugis-unstable/ubuntu/ jammy main
/etc/apt/sources.list.d/ubuntugis-ubuntu-ubuntugis-unstable-jammy.list.save:deb https://ppa.launchpadcontent.net/ubuntugis/ubuntugis-unstable/ubuntu/ jammy main
/etc/apt/sources.list.d/ubuntugis-ubuntu-ubuntugis-unstable-jammy.list.save:# deb-src https://ppa.launchpadcontent.net/ubuntugis/ubuntugis-unstable/ubuntu/ jammy main And I can see the differences between the 2 machines, when I do apt update & apt upgrade to the one where qgis_process is working: The following NEW packages will be installed:
linux-headers-6.5.0-18-generic linux-hwe-6.5-headers-6.5.0-18 linux-image-6.5.0-18-generic
linux-modules-6.5.0-18-generic linux-modules-extra-6.5.0-18-generic linux-modules-nvidia-535-6.5.0-18-generic
linux-objects-nvidia-535-6.5.0-18-generic linux-signatures-nvidia-6.5.0-18-generic
The following packages will be upgraded:
base-files coreutils dns-root-data gdm3 gh gir1.2-gdm-1.0 iptables language-pack-en language-pack-en-base
libegl-mesa0 libgbm1 libgdm1 libgl1-mesa-dev libgl1-mesa-dri libgl1-mesa-dri:i386 libglapi-mesa
libglapi-mesa:i386 libglx-mesa0 libglx-mesa0:i386 libip4tc2 libip6tc2 libxatracker2 libxtables12
linux-generic-hwe-22.04 linux-headers-generic-hwe-22.04 linux-image-generic-hwe-22.04
linux-modules-nvidia-535-generic-hwe-22.04 login mesa-common-dev mesa-va-drivers mesa-vdpau-drivers
mesa-vulkan-drivers passwd python-apt-common python3-apt python3-distupgrade tailscale
ubuntu-release-upgrader-core ubuntu-release-upgrader-gtk uidmap I did not proceed with the installation because Still, for further investigation, I get the following in the both machines: $ apt policy libpdal-dev
libpdal-dev:
Installed: (none)
Candidate: 2.6.2+ds-1~jammy0
Version table:
2.6.2+ds-1~jammy0 500
500 https://ppa.launchpadcontent.net/ubuntugis/ubuntugis-unstable/ubuntu jammy/main amd64 Packages
2.3.0+ds-2ubuntu4 500
500 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages Is there anything else that I should look at? Anyway, maybe I'll try to install the LTR stable version (https://qgis.org/ubuntu-ltr) and check if it works. 🤔 |
Yes, it works fine with the qgis LTR stable version. I will wait for an update that solves this issue before going back to unstable. |
Thanks, interesting! OK, good to know that LTR stable works fine for you (so far). But it is not built against more recent GDAL, GEOS etc, which you already have installed on your system (from the ubuntugis-unstable PPA = more recent versions than those from Ubuntu repo; but the ubuntu-ltr QGIS is built against the latter). So one could get in trouble when doing processing since that QGIS was built against older versions. The version differences should be explicit from The problems with running
That is how all Oh yes, the You could just run |
My best current workaround so far is the following. I expect it to work for all QGIS 'ubuntugis' releases (meant to work with ubuntugis-unstable PPA = including the GDAL, GEOS, PROJ versions distributed from there and which you have installed):
It will also remove a series of PDAL plugins (listed below).
This appears to make the I'm not sure about potential consequences though, in case you're using PDAL algorithms. Any further observations of potential side effects are welcome. Of course this is not an ideal solution, but it will probably help in the meantime. I wait for further follow-up at qgis/QGIS#56285. Reverting the removal of all above packages, after the QGIS-PDAL issue is resolved, can be done with a simple |
Purging libpdal16. See also r-spatial#205.
Hey @florisvdh, |
current work-around starting from QGIS 3.34, see r-spatial/qgisprocess#205
I confirm. I could run the processes from R smoothly 👌 |
Based on current observations with latest QGIS 3.35.0 for ubuntugis (ubuntugis-nightly repo of QGIS), the new QGIS ubuntugis releases (and at least upcoming 3.36) will automatically (re)install This (re)introduces the aborting problem. However |
Wrapping up now that QGIS 3.36 has arrived in the QGIS 'ubuntugis' repo. The The problem, if present, can be verified by running some example code in a shell: $ qgis_process plugins 1> /dev/null
double free or corruption (!prev)
Aborted (core dumped)
$
$ qgis_process help native:buffer 1> /dev/null
double free or corruption (!prev)
Aborted (core dumped) If you have this problem, an efficient solution is to purge $ apt purge libpdal-util13
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
libpdal-base13* libpdal-plugin-draco* libpdal-util13*
0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
After this operation, 6410 kB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 571982 files and directories currently installed.)
Removing libpdal-plugin-draco (2.5.0+ds-1~jammy3) ...
Removing libpdal-base13 (2.5.0+ds-1~jammy3) ...
Removing libpdal-util13 (2.5.0+ds-1~jammy3) ...
Processing triggers for libc-bin (2.35-0ubuntu3.6) ... Then the problems should be gone. $ qgis_process plugins 1> /dev/null
$ qgis_process help native:buffer 1> /dev/null
$ Eventually the incompatibility between the more recent PDAL version (which QGIS now depends on) and these older packages should be resolved at some point in the ubuntugis-unstable PPA. Closing this issue since the workaround is clear and the upstream problems can be tracked in qgis/QGIS#56285 and https://trac.osgeo.org/ubuntugis/ticket/87. |
Things to check beforehand
Are QGIS plugins the cause?
The problem remains with all plugins disabled.
Description of the observed problem
I cannot load qgis_process in R - apparently it does not find qgisprocess.
But qgis_process exists, and lives in the default place (see minimal reproducible example).
In terminal, when calling
qgis_process
or any other variaton (qgis_process --list
,qgis_process --version
,qgis_process plugins
), it shows some stuff but always ends with(see entire output bellow)
I would say that both are related (this problem is affecting the correct loading in R).
I am struggling with this because in another machine I have the exactly same setup and it runs smoothly.
I also tried to free memory with
free -h && sudo sysctl -w vm.drop_caches=3 && sudo sync && echo 3 | sudo tee /proc/sys/vm/drop_caches && free -h
but it does not solve anything.I purged and reinstalled qgis and r-spatial/qgisprocess, and the problem remains.
Any suggestion would be helpful :)
Minimal reproducible example
in terminal
Backend versions
QGIS plugin state
But they exist
R session info
Additional context
I have QGIS installed following the official instructions.
My
/etc/apt/sources.list.d/qgis.sources
is:I installed
r-spatial/qgisprocess
withRscript -e "remotes::install_github('r-spatial/qgisprocess')"
The text was updated successfully, but these errors were encountered: