FS#75463 - [qgis] Error message when launching (cannot open shared object)

Attached to Project: Community Packages
Opened by Yu-Hsuan Tu (dobedobedo) - Sunday, 31 July 2022, 07:23 GMT
Last edited by Toolybird (Toolybird) - Tuesday, 02 August 2022, 05:53 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
QGIS crashes on my system very often recently, so I ran it from a terminal and got the following error message:
```
ERROR 1: libarrow.so.800: 無法開啟共用物件: 沒有此一檔案或目錄
ERROR 1: libarrow.so.800: 無法開啟共用物件: 沒有此一檔案或目錄
ERROR 1: libpodofo.so.0.9.8: 無法開啟共用物件: 沒有此一檔案或目錄
ERROR 1: libpodofo.so.0.9.8: 無法開啟共用物件: 沒有此一檔案或目錄
ERROR 1: libarrow.so.800: 無法開啟共用物件: 沒有此一檔案或目錄
ERROR 1: libarrow.so.800: 無法開啟共用物件: 沒有此一檔案或目錄
ERROR 1: libgdal.so.30: 無法開啟共用物件: 沒有此一檔案或目錄
ERROR 1: libgdal.so.30: 無法開啟共用物件: 沒有此一檔案或目錄
ERROR 1: libarrow.so.800: 無法開啟共用物件: 沒有此一檔案或目錄
ERROR 1: libarrow.so.800: 無法開啟共用物件: 沒有此一檔案或目錄
ERROR 1: libpodofo.so.0.9.8: 無法開啟共用物件: 沒有此一檔案或目錄
ERROR 1: libpodofo.so.0.9.8: 無法開啟共用物件: 沒有此一檔案或目錄
ERROR 1: libarrow.so.800: 無法開啟共用物件: 沒有此一檔案或目錄
ERROR 1: libarrow.so.800: 無法開啟共用物件: 沒有此一檔案或目錄
ERROR 1: libgdal.so.30: 無法開啟共用物件: 沒有此一檔案或目錄
ERROR 1: libgdal.so.30: 無法開啟共用物件: 沒有此一檔案或目錄
Warning: QLayout::removeWidget: Cannot remove a null widget.
ERROR 1: libarrow.so.800: 無法開啟共用物件: 沒有此一檔案或目錄
ERROR 1: libarrow.so.800: 無法開啟共用物件: 沒有此一檔案或目錄
ERROR 1: libpodofo.so.0.9.8: 無法開啟共用物件: 沒有此一檔案或目錄
ERROR 1: libpodofo.so.0.9.8: 無法開啟共用物件: 沒有此一檔案或目錄
ERROR 1: libarrow.so.800: 無法開啟共用物件: 沒有此一檔案或目錄
ERROR 1: libarrow.so.800: 無法開啟共用物件: 沒有此一檔案或目錄
ERROR 1: libgdal.so.30: 無法開啟共用物件: 沒有此一檔案或目錄
ERROR 1: libgdal.so.30: 無法開啟共用物件: 沒有此一檔案或目錄
load /home/o0331dobe/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/enmapboxresources_rc.py
load /home/o0331dobe/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/coreapps/enmapboxapplications/ressources_rc.py
load /home/o0331dobe/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/qgispluginsupport/qps/qpsresources_rc.py
Warning: QLayout::removeWidget: Cannot remove a null widget.
```
The application launch normally though.
After installing `arrow` and `podofo`, only libgdal.so.30 issue remain, which needs to make a symbolic link to libgdal.so.31 to resolve it.
It seems the application was compiled with the older gdal.

Additional info:
* package version(s): 3.26.1-1
* config and/or log files etc.
```
ERROR 1: libarrow.so.800: 無法開啟共用物件: 沒有此一檔案或目錄
ERROR 1: libarrow.so.800: 無法開啟共用物件: 沒有此一檔案或目錄
ERROR 1: libpodofo.so.0.9.8: 無法開啟共用物件: 沒有此一檔案或目錄
ERROR 1: libpodofo.so.0.9.8: 無法開啟共用物件: 沒有此一檔案或目錄
ERROR 1: libarrow.so.800: 無法開啟共用物件: 沒有此一檔案或目錄
ERROR 1: libarrow.so.800: 無法開啟共用物件: 沒有此一檔案或目錄
ERROR 1: libgdal.so.30: 無法開啟共用物件: 沒有此一檔案或目錄
ERROR 1: libgdal.so.30: 無法開啟共用物件: 沒有此一檔案或目錄
ERROR 1: libarrow.so.800: 無法開啟共用物件: 沒有此一檔案或目錄
ERROR 1: libarrow.so.800: 無法開啟共用物件: 沒有此一檔案或目錄
ERROR 1: libpodofo.so.0.9.8: 無法開啟共用物件: 沒有此一檔案或目錄
ERROR 1: libpodofo.so.0.9.8: 無法開啟共用物件: 沒有此一檔案或目錄
ERROR 1: libarrow.so.800: 無法開啟共用物件: 沒有此一檔案或目錄
ERROR 1: libarrow.so.800: 無法開啟共用物件: 沒有此一檔案或目錄
ERROR 1: libgdal.so.30: 無法開啟共用物件: 沒有此一檔案或目錄
ERROR 1: libgdal.so.30: 無法開啟共用物件: 沒有此一檔案或目錄
Warning: QLayout::removeWidget: Cannot remove a null widget.
ERROR 1: libarrow.so.800: 無法開啟共用物件: 沒有此一檔案或目錄
ERROR 1: libarrow.so.800: 無法開啟共用物件: 沒有此一檔案或目錄
ERROR 1: libpodofo.so.0.9.8: 無法開啟共用物件: 沒有此一檔案或目錄
ERROR 1: libpodofo.so.0.9.8: 無法開啟共用物件: 沒有此一檔案或目錄
ERROR 1: libarrow.so.800: 無法開啟共用物件: 沒有此一檔案或目錄
ERROR 1: libarrow.so.800: 無法開啟共用物件: 沒有此一檔案或目錄
ERROR 1: libgdal.so.30: 無法開啟共用物件: 沒有此一檔案或目錄
ERROR 1: libgdal.so.30: 無法開啟共用物件: 沒有此一檔案或目錄
load /home/o0331dobe/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/enmapboxresources_rc.py
load /home/o0331dobe/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/coreapps/enmapboxapplications/ressources_rc.py
load /home/o0331dobe/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/qgispluginsupport/qps/qpsresources_rc.py
Warning: QLayout::removeWidget: Cannot remove a null widget.
```
* link to upstream bug report, if any

Steps to reproduce:
1. Install QGIS, without `arrow` and `podofo` installed.
2. Launch qgis from the terminal, and you'll see the error message.
This task depends upon

Closed by  Toolybird (Toolybird)
Tuesday, 02 August 2022, 05:53 GMT
Reason for closing:  Not a bug
Additional comments about closing:  See comments
Comment by David Thurstenson (thurstylark) - Sunday, 31 July 2022, 08:50 GMT
Can you prepend `LANG=C` to the command line and capture that output again? The full command will be `LANG=C qgis`
Comment by Yu-Hsuan Tu (dobedobedo) - Sunday, 31 July 2022, 09:12 GMT
Hi,
The error messege is
```
ERROR 1: libarrow.so.800: cannot open shared object file: No such file or directory
ERROR 1: libarrow.so.800: cannot open shared object file: No such file or directory
ERROR 1: libpodofo.so.0.9.8: cannot open shared object file: No such file or directory
ERROR 1: libpodofo.so.0.9.8: cannot open shared object file: No such file or directory
ERROR 1: libarrow.so.800: cannot open shared object file: No such file or directory
ERROR 1: libarrow.so.800: cannot open shared object file: No such file or directory
ERROR 1: libgdal.so.30: cannot open shared object file: No such file or directory
ERROR 1: libgdal.so.30: cannot open shared object file: No such file or directory
ERROR 1: libarrow.so.800: cannot open shared object file: No such file or directory
ERROR 1: libarrow.so.800: cannot open shared object file: No such file or directory
ERROR 1: libpodofo.so.0.9.8: cannot open shared object file: No such file or directory
ERROR 1: libpodofo.so.0.9.8: cannot open shared object file: No such file or directory
ERROR 1: libarrow.so.800: cannot open shared object file: No such file or directory
ERROR 1: libarrow.so.800: cannot open shared object file: No such file or directory
ERROR 1: libgdal.so.30: cannot open shared object file: No such file or directory
ERROR 1: libgdal.so.30: cannot open shared object file: No such file or directory
Warning: QLayout::removeWidget: Cannot remove a null widget.
ERROR 1: libarrow.so.800: cannot open shared object file: No such file or directory
ERROR 1: libarrow.so.800: cannot open shared object file: No such file or directory
ERROR 1: libpodofo.so.0.9.8: cannot open shared object file: No such file or directory
ERROR 1: libpodofo.so.0.9.8: cannot open shared object file: No such file or directory
ERROR 1: libarrow.so.800: cannot open shared object file: No such file or directory
ERROR 1: libarrow.so.800: cannot open shared object file: No such file or directory
ERROR 1: libgdal.so.30: cannot open shared object file: No such file or directory
ERROR 1: libgdal.so.30: cannot open shared object file: No such file or directory
load /home/o0331dobe/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/enmapboxresources_rc.py
load /home/o0331dobe/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/coreapps/enmapboxapplications/ressources_rc.py
load /home/o0331dobe/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/qgispluginsupport/qps/qpsresources_rc.py
Warning: QLayout::removeWidget: Cannot remove a null widget.
```
Installing `arrow` and `podofo` resolve the libarrow and libpodofo issue, but the gdal error remains.
Comment by David Thurstenson (thurstylark) - Sunday, 31 July 2022, 09:28 GMT
Is there a specific action that triggers this crash, or does this happen immediately after running qgis?
Comment by Doug Newgard (Scimmia) - Sunday, 31 July 2022, 09:28 GMT
What's before that? It looks to me like you probably have something in your home dir that needs rebuilt.
Comment by Yu-Hsuan Tu (dobedobedo) - Sunday, 31 July 2022, 09:33 GMT
Hi,
Those error messages appear right after launching qgis.
When the application crashes, it only shows `QGIS died on signal 11`. Not very helpful.
I tried several actions. It sometimes crashes when running GDAL algorithms.
The only plugins I installed are QuickMapService, EnMap-Box, and Geoogle Earth Engine.
Comment by Toolybird (Toolybird) - Monday, 01 August 2022, 05:25 GMT
> ERROR 1: libgdal.so.30: cannot open shared object file: No such file or directory

Where is that reference coming from? qgis-3.26.1-1 was compiled against gdal-3.5.1-1 which contains:

libgdal.so.31

It appears your system is partially updated or messed up in some other way.
Comment by Yu-Hsuan Tu (dobedobedo) - Monday, 01 August 2022, 06:38 GMT
Thanks for the clarification. I think that the libgdal.so.30 issue is caused by grass. Recompiling it solves the issue.
How about libarrow and libpodofo issues? Do you think we need to include arrow and podofo as dependencies?
Comment by Toolybird (Toolybird) - Monday, 01 August 2022, 22:17 GMT
> Do you think we need to include arrow and podofo as dependencies?

They are already listed as optdeps for gdal, so technically this is covered.

Is the app now running without crashing and we can close this?
Comment by Yu-Hsuan Tu (dobedobedo) - Tuesday, 02 August 2022, 05:45 GMT
Can't be certain at the moment, but probably not related to this error message, so this issue can be closed. Thanks.

Loading...