qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.5k stars 2.99k forks source link

Warning: Wrong JPEG library version: library is 62, caller expects 80 Segmentation fault (core dumped) #36017

Closed aua-style closed 4 years ago

aua-style commented 4 years ago

Describe the bug Problem started after my QGis upgraded to 3.10LTS La Coruna, and now i was installed 3.12 Bucuresti. I can't start the QGis from startup icon, so i used Terminal. When i run "qgis" in terminal, Warning showed, andQGis just stopped at the startup logo. The warning message is:

Warning: Wrong JPEG library version: library is 62, caller expects 80 Segmentation fault (core dumped)

I Was checked installed libjpeg version, and 80 is the current version. Please help me. My work was stacked... :cry:

QGIS and OS versions QGIS Version : 3.12 Bucuresti OS Version : Ubuntu 18.04.4 LTS

gioman commented 4 years ago

@aua-style This is not a general issue of course. I suggest you to purge all the qgis packages, check you are using the right qgis.org repos and try install again.

aua-style commented 4 years ago

@aua-style This is not a general issue of course. I suggest you to purge all the qgis packages, check you are using the right qgis.org repos and try install again.

Actually, i've purge all of QGis La Coruna after problem happened, then i change the Repository with erase the LTS of QGIS. Then i install Bucuresti, and problem still exist. But i'll do it (purge) the installed QGIS Again and report to this Issue. Thanks for your response.

aua-style commented 4 years ago

@gioman This is my Terminal :

auastyle@auastyle-corp:~$ sudo apt-get purge qgis
[sudo] password for auastyle: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libjs-leaflet libqgis-app3.12.2 libqgisgrass7-3.12.2 libqt5charts5
  qgis-common qgis-plugin-grass-common qgis-provider-grass qml-module-qtcharts
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  qgis* qgis-plugin-grass*
0 upgraded, 0 newly installed, 2 to remove and 4 not upgraded.
After this operation, 14,7 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 269206 files and directories currently installed.)
Removing qgis-plugin-grass (1:3.12.2+28bionic) ...
Removing qgis (1:3.12.2+28bionic) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for shared-mime-info (1.9-2) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for mime-support (3.60ubuntu1) ...

Then i reboot My Laptop auastyle@auastyle-corp:~$ sudo reboot now

Then i update my source, there is the repos of QGIS.

auastyle@auastyle-corp:~$ sudo apt-get update
Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease
Ign:2 http://dl.google.com/linux/earth/deb stable InRelease                    
Hit:3 http://dl.google.com/linux/chrome/deb stable Release                     
Get:4 https://dl.winehq.org/wine-builds/ubuntu bionic InRelease [6.259 B]      
Hit:5 https://packages.cloud.google.com/apt cloud-sdk InRelease                
Hit:6 http://dl.google.com/linux/earth/deb stable Release                      
Get:8 https://dl.winehq.org/wine-builds/ubuntu bionic/main i386 Packages [700 kB]
Hit:9 http://ppa.launchpad.net/gezakovacs/ppa/ubuntu bionic InRelease          
Get:10 http://security.ubuntu.com/ubuntu bionic-security InRelease [88,7 kB]   
Hit:11 http://id.archive.ubuntu.com/ubuntu bionic InRelease                    
Get:13 http://id.archive.ubuntu.com/ubuntu bionic-updates InRelease [88,7 kB]  
Hit:14 http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu bionic InRelease   
Hit:15 https://qgis.org/ubuntu bionic InRelease                                
Ign:16 http://liveusb.info/multisystem/depot all InRelease                     
Hit:17 http://ppa.launchpad.net/plushuang-tw/uget-stable/ubuntu bionic InRelease
Hit:18 http://liveusb.info/multisystem/depot all Release                       
Hit:19 http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease       
Get:21 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [692 kB]
Hit:22 http://ppa.launchpad.net/webupd8team/y-ppa-manager/ubuntu bionic InRelease
Get:23 http://id.archive.ubuntu.com/ubuntu bionic-backports InRelease [74,6 kB]
Get:24 https://dl.winehq.org/wine-builds/ubuntu bionic/main amd64 Packages [664 kB]
Get:25 http://id.archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages [669 kB]
Get:26 http://security.ubuntu.com/ubuntu bionic-security/main i386 Packages [459 kB]
Get:27 http://id.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [915 kB]
Get:28 http://security.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [38,7 kB]
Get:29 http://security.ubuntu.com/ubuntu bionic-security/universe i386 Packages [618 kB]    
Get:30 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [657 kB]   
Get:31 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 DEP-11 Metadata [42,1 kB]
Get:32 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 DEP-11 Metadata [2.464 B]
Ign:27 http://id.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages               
Get:33 http://id.archive.ubuntu.com/ubuntu bionic-updates/main amd64 DEP-11 Metadata [301 kB]
Get:34 http://id.archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages [1.014 kB] 
Get:35 http://id.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [1.065 kB]
Get:36 http://id.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 DEP-11 Metadata [273 kB]
Get:37 http://id.archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 64x64 Icons [458 kB]
Get:38 http://id.archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 DEP-11 Metadata [2.468 B]
Get:39 http://id.archive.ubuntu.com/ubuntu bionic-backports/universe amd64 DEP-11 Metadata [7.968 B]
Get:27 http://id.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [915 kB]      
Fetched 8.838 kB in 3min 20s (44,2 kB/s)                                                    
Reading package lists... Done

Then I install the QGis

auastyle@auastyle-corp:~$ sudo apt-get install qgis
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  qgis-plugin-grass
Suggested packages:
  gpsbabel
The following NEW packages will be installed:
  qgis qgis-plugin-grass
0 upgraded, 2 newly installed, 0 to remove and 7 not upgraded.
Need to get 0 B/10,2 MB of archives.
After this operation, 14,7 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Selecting previously unselected package qgis.
(Reading database ... 269075 files and directories currently installed.)
Preparing to unpack .../qgis_1%3a3.12.2+28bionic_amd64.deb ...
Unpacking qgis (1:3.12.2+28bionic) ...
Selecting previously unselected package qgis-plugin-grass.
Preparing to unpack .../qgis-plugin-grass_1%3a3.12.2+28bionic_amd64.deb ...
Unpacking qgis-plugin-grass (1:3.12.2+28bionic) ...
Setting up qgis (1:3.12.2+28bionic) ...
Setting up qgis-plugin-grass (1:3.12.2+28bionic) ...
Processing triggers for shared-mime-info (1.9-2) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...

And then i run QGis, problem still exist

auastyle@auastyle-corp:~$ qgis
Warning: Wrong JPEG library version: library is 62, caller expects 80
Segmentation fault (core dumped)
auastyle@auastyle-corp:~$ 
rouault commented 4 years ago

A likely cause would be if you build GDAL yourself, and use its internal libjpeg which is at version 6.2. In which case you'd want to rebuild it against system libjpeg

aua-style commented 4 years ago

I've never do anything myself, i always do whatever the update notification from ubuntu software updater. when i check the libjpeg, there are version 8.0 installed. I try to apt remove libjpeg 6.2, there is not exist.

Jwohnlf commented 4 years ago

A likely cause would be if you build GDAL yourself, and use its internal libjpeg which is at version 6.2. In which case you'd want to rebuild it against system libjpeg

I faced exactly the same pb on my Ubuntu 18.04.4 LTS when runing QGIS 3.12.3-Bucuresti. I have previously overridden the default installed GDAL lib with a compiled one for enabling the support of the FileGDB driver - as explained in this post How can I connect QGIS with compiled GDAL on linux?. Thank Even Rouault's advice :+1: I cleaned my local GDAL project and recompiled it to fix the problem.