Bug 404894 - 6.0.0 x86-64 appimage startup complains about mssing ']' (startup bash script being called) ?
Summary: 6.0.0 x86-64 appimage startup complains about mssing ']' (startup bash script...
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Bundle-AppImage (show other bugs)
Version: 6.0.0
Platform: Appimage Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-28 07:59 UTC by Simon J Mudd
Modified: 2019-03-24 07:58 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.1.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon J Mudd 2019-02-28 07:59:44 UTC
SUMMARY

Immediately on startup there is what looks like an internal shell script being called which can not find expected closing brace ']'.

Startup seems to work but this looks ugly and seems to imply that the initialisation is not quite complete.

STEPS TO REPRODUCE
1. download digikam-6.0.0-x86-64.appimage to CentOS 7
2. start it

OBSERVED RESULT

on startup I see:

[user@host ~]$ Downloads/digikam-6.0.0-x86-64.appimage 
libfreetype.so
/tmp/.mount_digikaTboVC5/AppRun: line 21: [: missing `]'
/tmp/.mount_digikaTboVC5/AppRun: line 23: [: missing `]'
libudev.so
/tmp/.mount_digikaTboVC5/AppRun: line 21: [: missing `]'
/tmp/.mount_digikaTboVC5/AppRun: line 23: [: missing `]'
-- digiKam AppImage Bundle
-- Use 'help' as CLI argument to know all available options for digiKam application
-- Preloading shared libs: 
Digikam::DXmlGuiWindow::setupIconTheme: Breeze icons resource file found
Digikam::AlbumWatch::AlbumWatch: AlbumWatch use QFileSystemWatcher
Digikam::AlbumManager::setDatabase: Database Parameters:
   Type:                     "QMYSQL"
   DB Core Name:             "<db>"
   DB Thumbs Name:           "<db>"
   DB Face Name:             "<db>"
   DB Similarity Name:       "<db>"
   Connect Options:          ""
   Host Name:                "<hostname>"
   Host port:                3306
   Internal Server:          false
   Internal Server Path:     ""
   Internal Server Serv Cmd: ""
   Internal Server Init Cmd: ""
   Username:                 "<username>"
   Password:                 "XXXXXXXXXXX"

Digikam::DbEngineConfigSettingsLoader::readConfig: Loading SQL code from config file "/tmp/.mount_digikatbGGye/usr/share/digikam/database/dbconfig.xml"
Digikam::DbEngineConfigSettingsLoader::readConfig: Checking XML version ID => expected:  3  found:  3
Digikam::CoreDbSchemaUpdater::update: Core database: running schema update
Digikam::CoreDbSchemaUpdater::startUpdates: Core database: have a structure version  10
Digikam::CoreDbSchemaUpdater::makeUpdates: Core database: makeUpdates  10  to  10
Digikam::AlbumRootLocation::AlbumRootLocation: Creating new Location  "/<user>/Pictures"  uuid  "volumeid:?uuid=b4e10e45-be16-47b3-9e3b-a08e5ec4a7af"
Digikam::AlbumRootLocation::AlbumRootLocation: Creating new Location  "<nfs_mounted_album_root_dir>"  uuid  "volumeid:?uuid=452a5f06-c3bd-4f2b-84cd-d141172975dc"
Digikam::CollectionManager::updateLocations: location for  "/home/<user>/Pictures"  is available  true
Digikam::CollectionManager::updateLocations: location for  "/<nfs_mounted_album_root_dir>"  is available  true
Digikam::KMemoryInfo::update: KMemoryInfo: Platform identified :  "LINUX"
Digikam::KMemoryInfo::bytes: KMemoryInfo: TotalRam:  16565063680
Digikam::LoadingCache::setCacheSize: Allowing a cache size of 200 MB
Digikam::ThumbsDb::getSetting: ThumbDB SelectThumbnailSetting val ret =  0
Digikam::ThumbsDb::getSetting: ThumbDB SelectThumbnailSetting val ret =  0
Digikam::ThumbsDbSchemaUpdater::startUpdates: Thumbs database: have a structure version  "3"
Digikam::ThumbnailLoadThread::initializeThumbnailDatabase: Thumbnails database ready for use
Digikam::SimilarityDb::getSetting: SimilarityDb SelectSimilaritySetting val ret =  0
Digikam::SimilarityDb::getSetting: SimilarityDb SelectSimilaritySetting val ret =  0
Digikam::SimilarityDbSchemaUpdater::startUpdates: Similarity database: have a structure version  "1"
Digikam::AlbumManager::setDatabase: Similarity database ready for use
Digikam::IccSettings::Private::scanDirectories: ("/usr/share/color/icc", "/home/<user>/.local/share/icc")
Digikam::IccSettings::Private::profileFromWindowSystem: Found X.org XICC monitor profile  "DELL U2412M"
Digikam::CameraList::CameraList: Camera XML data:  "/home/<user>/.local/share/digikam/cameras.xml"
Digikam::FaceDb::setting: FaceDB SelectFaceSetting val ret =  0
Digikam::FaceDb::setting: FaceDB SelectFaceSetting val ret =  0
Digikam::FaceDbSchemaUpdater::startUpdates: Face database: have a structure version  "3"
...

Note: startup does complete so this is non-fatal but looks wrong.

EXPECTED RESULT

no errors during startup logging, or a clearer, meaningful one if appropriate.

SOFTWARE/OS VERSIONS
Windows: 
MacOS: 
Linux/KDE Plasma: CentOS 7 / x86_64
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 
appimage: digikam-6.0.0-x86-64.appimage 

ADDITIONAL INFORMATION

backend data store using MySQL. (as should be visible)
Comment 1 caulier.gilles 2019-02-28 09:23:18 UTC
This is due to UTF8 encoding of hidden characters in bash script. I already fixed this problem for next 6.1.0.

To test : https://files.kde.org/digikam/

Gilles Caulier
Comment 2 Nicofo 2019-03-20 18:49:12 UTC
Hello Gilles,
this bug is back with your last digikam bundle:


$ ./digikam-6.1.0-git-20190320T143140-x86-64.appimage 
libfontconfig.so
/tmp/.mount_digikaOG2FUr/AppRun: line 21: [: missing `]'
/tmp/.mount_digikaOG2FUr/AppRun: line 23: [: missing `]'
libfreetype.so
/tmp/.mount_digikaOG2FUr/AppRun: line 21: [: missing `]'
/tmp/.mount_digikaOG2FUr/AppRun: line 23: [: missing `]'
libudev.so
/tmp/.mount_digikaOG2FUr/AppRun: line 21: [: missing `]'
/tmp/.mount_digikaOG2FUr/AppRun: line 23: [: missing `]'
-- digiKam AppImage Bundle
-- Use 'help' as CLI argument to know all available options for digiKam application
-- Preloading shared libs: 
...
Comment 3 caulier.gilles 2019-03-24 07:58:02 UTC
Fixed with 

https://files.kde.org/digikam/digikam-6.1.0-git-20190323T220709-x86-64.appimage.mirrorlist

Gilles Caulier