Bug 481345 - Crash in libJasper in Jas_global.initialized function
Summary: Crash in libJasper in Jas_global.initialized function
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-DImg-JP2K (show other bugs)
Version: 8.2.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-15 01:41 UTC by coryjohnfrancis
Modified: 2024-02-17 08:53 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 8.3.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description coryjohnfrancis 2024-02-15 01:41:45 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Open digikam 
2. 
3. 

OBSERVED RESULT

Assertion failed!
Program: C:Program Files\digiKamNasper.dil
File: END jaspersrc\5eb260a2e4-ca02e25be6,clea... Jas_init.c
Line: 505
Expression: Jas_global.initialized

EXPECTED RESULT
To open normally?

SOFTWARE/OS VERSIONS
Windows: 10
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Here’s the error:

Assertion failed!
Program: C:Program Files\digiKamNasper.dil
File: END jaspersrc\5eb260a2e4-ca02e25be6,clea... Jas_init.c
Line: 505
Expression: Jas_global.initialized
Comment 1 caulier.gilles 2024-02-15 05:10:45 UTC
Please update to current 8.3.0 pre-release available here where we closed more than 200 bugs:

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

...and try again...

Gilles Caulier
Comment 2 Maik Qualmann 2024-02-15 07:29:13 UTC
Gilles, we need to do the same for the Windows bundle too:

Bug: 476290 : https://invent.kde.org/graphics/digikam/-/commit/197f6b8cf2a3d90eb1ff983c63036fe7c6575570

Maik
Comment 3 coryjohnfrancis 2024-02-15 13:54:29 UTC
(In reply to caulier.gilles from comment #1)
> Please update to current 8.3.0 pre-release available here where we closed
> more than 200 bugs:
> 
> https://files.kde.org/digikam/
> 
> ...and try again...
> 
> Gilles Caulier

Hey, thanks for the tip. I just tried that. Same result. Do you think deleting all my database files and starting from scratch, would help?
Comment 4 Maik Qualmann 2024-02-15 14:05:38 UTC
No, don't rebuild the database, the problem is clear. The libjasper library (JPEG200) is initialized twice. We will fix it.

Maik
Comment 5 caulier.gilles 2024-02-15 15:43:50 UTC
Git commit d98de46bafd0ecfa29b4255d1ebc860daf92b1f2 by Gilles Caulier.
Committed on 15/02/2024 at 15:43.
Pushed by cgilles into branch 'master'.

remove JPEG2000 plugin from KImageFormats under MXE build

M  +3    -4    project/bundles/mxe/04-build-installer.sh

https://invent.kde.org/graphics/digikam/-/commit/d98de46bafd0ecfa29b4255d1ebc860daf92b1f2
Comment 6 caulier.gilles 2024-02-15 15:49:57 UTC
Git commit a0db0245acbb3220849692b97027c6d332a024f8 by Gilles Caulier.
Committed on 15/02/2024 at 15:49.
Pushed by cgilles into branch 'master'.

remove Qt6 JPEG2000 plugin from VCPKG build

M  +4    -0    project/bundles/vcpkg/04-build-installer.sh

https://invent.kde.org/graphics/digikam/-/commit/a0db0245acbb3220849692b97027c6d332a024f8
Comment 7 caulier.gilles 2024-02-15 15:56:45 UTC
Git commit 23d2b76ae8a6d4f5d53a5d609eaa98a7cd9886d3 by Gilles Caulier.
Committed on 15/02/2024 at 15:55.
Pushed by cgilles into branch 'master'.

remove Qt5 jpeg200 plugin from macports build

M  +3    -0    project/bundles/macports/04-build-installer.sh

https://invent.kde.org/graphics/digikam/-/commit/23d2b76ae8a6d4f5d53a5d609eaa98a7cd9886d3
Comment 8 caulier.gilles 2024-02-15 16:57:35 UTC
Git commit af7dffcdd516d3075fb921cb7c04efa84aca2aca by Gilles Caulier.
Committed on 15/02/2024 at 16:56.
Pushed by cgilles into branch 'master'.

remove Qt6 JPEG200 plugin under Homebrew buil

M  +2    -0    project/bundles/homebrew/04-build-installer.sh

https://invent.kde.org/graphics/digikam/-/commit/af7dffcdd516d3075fb921cb7c04efa84aca2aca
Comment 9 coryjohnfrancis 2024-02-15 17:34:06 UTC
(In reply to Maik Qualmann from comment #4)
> No, don't rebuild the database, the problem is clear. The libjasper library
> (JPEG200) is initialized twice. We will fix it.
> 
> Maik

Awesome thanks for the info, let me know when I should redownload 8.3.

And damn, response time has been crazy fast.
Comment 10 caulier.gilles 2024-02-15 17:35:44 UTC
New Windows 8.3.0 will be uploaded in few minutes at usual place.

Gilles Caulier
Comment 11 coryjohnfrancis 2024-02-15 19:01:12 UTC
(In reply to caulier.gilles from comment #10)
> New Windows 8.3.0 will be uploaded in few minutes at usual place.
> 
> Gilles Caulier

Hey, so I just re-downloaded it and everything was going smooth until I used the scan Collection for faces function. After about five minutes and one percent of progress that same Microsoft visual C++ runtime library error popped up. One note where the chain from last time is that when I hit ignore the program continues to operate, whereas in the previous version the program would close no matter what option I selected
Comment 12 Maik Qualmann 2024-02-15 20:54:49 UTC
The file is still in the Windows bundle. Can you please delete the following file as a test and try to reproduce it again:

C:\Program Files\digiKam\plugins\imageformats\qjp2.dll

Maik
Comment 13 caulier.gilles 2024-02-16 08:13:08 UTC
Hi,

This evening, i will double check the bundle script to understand why dll still in the installer.

Gilles
Comment 14 coryjohnfrancis 2024-02-16 15:48:16 UTC
(In reply to caulier.gilles from comment #13)
> Hi,
> 
> This evening, i will double check the bundle script to understand why dll
> still in the installer.
> 
> Gilles

I just (In reply to Maik Qualmann from comment #12)
> The file is still in the Windows bundle. Can you please delete the following
> file as a test and try to reproduce it again:
> 
> C:\Program Files\digiKam\plugins\imageformats\qjp2.dll
> 
> Maik

I just did that delete you suggested, and appears to have resolved the issue. I’ve been messing around in the program for about 40 minutes without the error popping up. It’s in the middle of a long face recognition scan so I will reach out if it pops up again.
Comment 15 caulier.gilles 2024-02-16 17:14:52 UTC
Hi Maik,

I checked and none the VCPKG Qt6/plugin/imageformat/ directory and the temporary installer build directory do not contains the qjp2.dll on my Windows 10 VM. 

Perhaps a mix with older digiKam installation using MXE build and the new one with VCPKG as introduced this file mix.

Gilles
Comment 16 caulier.gilles 2024-02-16 17:17:00 UTC
And it's the same for the MXE installer version. No qjp2.dll is present...

Gilles
Comment 17 caulier.gilles 2024-02-17 08:53:59 UTC
All bundles are fixed now about the qjp2 plugin.

I close this file now

Gilles