Bug 348042 - Division by zero while scan or update the files from a network share
Summary: Division by zero while scan or update the files from a network share
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Database-Media (show other bugs)
Version: 4.10.0
Platform: Microsoft Windows Microsoft Windows
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-21 07:41 UTC by bug_rep
Modified: 2022-01-02 09:54 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 7.5.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bug_rep 2015-05-21 07:41:28 UTC
The Application crash if i scan for new pictures on a smb share every time at 65% progress

Executable: digikam.exe PID: 5000 Signal: EXCEPTION_INT_DIVIDE_BY_ZERO (0xc0000094)


Reproducible: Always

Steps to Reproduce:
1. Start Application
2. Scan Files in Network share
3.

Actual Results:  
crash


Application: digiKam (digikam.exe), signal: EXCEPTION_INT_DIVIDE_BY_ZERO


ntdll.dll!NtRemoveIoCompletion() [[unknown] @ -1] at 0x7788f955
kernel32.dll!BaseThreadInitThunk() [[unknown] @ -1] at 0x76ff336a
ntdll.dll!RtlInitializeExceptionChain() [[unknown] @ -1] at 0x778a92b2
ntdll.dll!RtlInitializeExceptionChain() [[unknown] @ -1] at 0x778a9285


ntdll.dll!ZwWaitForMultipleObjects() [[unknown] @ -1] at 0x77890159
kernel32.dll!BaseThreadInitThunk() [[unknown] @ -1] at 0x76ff336a
ntdll.dll!RtlInitializeExceptionChain() [[unknown] @ -1] at 0x778a92b2
ntdll.dll!RtlInitializeExceptionChain() [[unknown] @ -1] at 0x778a9285


QtGui4.dll!QPixmap::fromWinHICON() [[unknown] @ -1] at 0x6579f202
QtGui4.dll!QPixmap::fromWinHICON() [[unknown] @ -1] at 0x657a0510
QtGui4.dll!QImageReader::read() [[unknown] @ -1] at 0x65782180
QtGui4.dll!QImage::load() [[unknown] @ -1] at 0x657768be
QtGui4.dll!QImage::QImage() [[unknown] @ -1] at 0x6576e7be
QtCore4.dll!QHashData::allocateNode() [[unknown] @ -1] at 0x66b21f53
MSVCR100.dll!unlock() [[unknown] @ -1] at 0x66f30949
MSVCR100.dll!unlock_file() [[unknown] @ -1] at 0x66f3a48a
MSVCR100.dll!fclose() [[unknown] @ -1] at 0x66f3a8e2
digikamlib.dll!Digikam::GreycstorationContainer::GreycstorationContainer() [[unknown] @ -1] at 0x67466b3e
digikamlib.dll!Digikam::GreycstorationContainer::GreycstorationContainer() [[unknown] @ -1] at 0x6746660e
digikamlib.dll!Digikam::GreycstorationContainer::GreycstorationContainer() [[unknown] @ -1] at 0x6718742e


ntdll.dll!ZwWaitForMultipleObjects() [[unknown] @ -1] at 0x77890159
kernel32.dll!WaitForMultipleObjectsEx() [[unknown] @ -1] at 0x76ff19fc
kernel32.dll!WaitForMultipleObjects() [[unknown] @ -1] at 0x76ff41d8
QtCore4.dll!QString::contains() [[unknown] @ -1] at 0x66bd4313
QtCore4.dll!QThread::setTerminationEnabled() [[unknown] @ -1] at 0x66b07ddd
QtCore4.dll!QEventDispatcherWin32::`default constructor closure'() [[unknown] @ -1] at 0x66b076fd


ntdll.dll!ZwWaitForMultipleObjects() [[unknown] @ -1] at 0x77890159
kernel32.dll!WaitForMultipleObjectsEx() [[unknown] @ -1] at 0x76ff19fc
USER32.dll!PeekMessageW() [[unknown] @ -1] at 0x75d5086a
QtCore4.dll!QEventDispatcherWin32::processEvents() [[unknown] @ -1] at 0x66c171a6
QtGui4.dll!qt_getRegisteredWndClass() [[unknown] @ -1] at 0x6574a59f
digikam.exe!QMap<QString,QString>::unite() [[unknown] @ -1] at 0x1360fdd
QtGui4.dll!QApplicationPrivate::notify_helper() [[unknown] @ -1] at 0x656f04cd
kdeui.dll!QList<KSortableItem<QString,int> >::value() [[unknown] @ -1] at 0x66068c10
kdeui.dll!QList<KSortableItem<QString,int> >::value() [[unknown] @ -1] at 0x6621931b
QtCore4.dll!QCoreApplication::sendEvent() [[unknown] @ -1] at 0x66bf3cf6
QtCore4.dll!winGetMessage() [[unknown] @ -1] at 0x66c16389
USER32.dll!gapfnScSendMessage() [[unknown] @ -1] at 0x75d462fa
USER32.dll!CharPrevW() [[unknown] @ -1] at 0x75d477c4
USER32.dll!DispatchMessageW() [[unknown] @ -1] at 0x75d4788a
QtGui4.dll!qt_getRegisteredWndClass() [[unknown] @ -1] at 0x6574a59f
QtCore4.dll!QCoreApplication::exec() [[unknown] @ -1] at 0x66bf08cc
digikam.exe!QMap<QString,QString>::unite() [[unknown] @ -1] at 0x142de91
digikam.exe![unknown]() [[unknown] @ -1] at 0x1251125
kernel32.dll!BaseThreadInitThunk() [[unknown] @ -1] at 0x76ff336a
ntdll.dll!RtlInitializeExceptionChain() [[unknown] @ -1] at 0x778a9285
digikam.exe!QMap<QString,QString>::unite() [[unknown] @ -1] at 0x15396a4
[unknown]![unknown]() [[unknown] @ -1] at 0x7efde000


ntdll.dll!ZwWaitForMultipleObjects() [[unknown] @ -1] at 0x77890159
kernel32.dll!WaitForMultipleObjectsEx() [[unknown] @ -1] at 0x76ff19fc
kernel32.dll!WaitForMultipleObjects() [[unknown] @ -1] at 0x76ff41d8
QtCore4.dll!QString::contains() [[unknown] @ -1] at 0x66bd4313
QtCore4.dll!QThread::setTerminationEnabled() [[unknown] @ -1] at 0x66b07ddd
QtCore4.dll!QEventDispatcherWin32::`default constructor closure'() [[unknown] @ -1] at 0x66b076fd


ntdll.dll!NtWaitForWorkViaWorkerFactory() [[unknown] @ -1] at 0x77891f42
kernel32.dll!BaseThreadInitThunk() [[unknown] @ -1] at 0x76ff336a
ntdll.dll!RtlInitializeExceptionChain() [[unknown] @ -1] at 0x778a92b2
ntdll.dll!RtlInitializeExceptionChain() [[unknown] @ -1] at 0x778a9285


ntdll.dll!ZwWaitForMultipleObjects() [[unknown] @ -1] at 0x77890159
kernel32.dll!WaitForMultipleObjectsEx() [[unknown] @ -1] at 0x76ff19fc
kernel32.dll!WaitForMultipleObjects() [[unknown] @ -1] at 0x76ff41d8
QtCore4.dll!QString::contains() [[unknown] @ -1] at 0x66bd4313
QtCore4.dll!QThread::setTerminationEnabled() [[unknown] @ -1] at 0x66b07ddd
QtCore4.dll!QEventDispatcherWin32::`default constructor closure'() [[unknown] @ -1] at 0x66b076fd


ntdll.dll!ZwWaitForMultipleObjects() [[unknown] @ -1] at 0x77890159
kernel32.dll!BaseThreadInitThunk() [[unknown] @ -1] at 0x76ff336a
ntdll.dll!RtlInitializeExceptionChain() [[unknown] @ -1] at 0x778a92b2
ntdll.dll!RtlInitializeExceptionChain() [[unknown] @ -1] at 0x778a9285


ntdll.dll!ZwWaitForSingleObject() [[unknown] @ -1] at 0x7788f8cd
kernel32.dll!WaitForSingleObjectEx() [[unknown] @ -1] at 0x76ff1194
kernel32.dll!WaitForSingleObject() [[unknown] @ -1] at 0x76ff1148
QtCore4.dll!QWaitCondition::wait() [[unknown] @ -1] at 0x66b0881b
digikamlib.dll!Digikam::GreycstorationContainer::GreycstorationContainer() [[unknown] @ -1] at 0x67358f6d
QtCore4.dll!QEventDispatcherWin32::`default constructor closure'() [[unknown] @ -1] at 0x66b076fd
Comment 1 caulier.gilles 2015-05-21 07:47:44 UTC
There is no debug symbols in your trace. It's difficults to indentify where is the problem.

It's clear that a 0 div make a exception.

I know that share library Exiv2 has this problem with video files. Do you have this kind of files (mp4, avi, mkv, mpeg, etc) in your collection to scan.

If yes, please follow instruction in this page using debugview .exe program to see what's wrong at startup.

https://www.digikam.org/contrib

Gilles Caulier
Comment 2 caulier.gilles 2015-05-21 07:49:31 UTC
Also, what's happen if file are in local harddrive ?

Gilles Caulier
Comment 3 bug_rep 2015-05-21 10:03:36 UTC
I found the Problem. It was an .xcf and .bmp file they make the problems, deleted and it works! I dont no why there is a problem with this files?! The file size was bigger then 35 MB.
Comment 4 caulier.gilles 2015-05-21 10:07:54 UTC
I suspect a problem with Exiv2. Here i use XCF without crash, but Exiv2 is last implementation from source repository. With Windows package, i think Exiv2 is an older release.

Please check in Help/Components info dialog for details.

Did you try to get a debug trace with debugview.exe ?

Gilles Caulier
Comment 5 bug_rep 2015-05-21 10:19:07 UTC
The LibExiv2 version : 0.24

Yes i look with debugview so i found the .xcf file, the bmp have i found with the access log from the NAS.

in Debugview are a loot of messages like this:
[7360] QFileSystemWatcher: failed to add paths: X:/Pic/other
is this a Problem?

Thank you for Help.
Comment 6 caulier.gilles 2015-05-21 11:20:13 UTC
>[7360] QFileSystemWatcher: failed to add paths: X:/Pic/other
>is this a Problem?

No. It's a warning. At least file will be ingnored.

Can you share the XCF file on the web to try here ?

You talk about BMP file. You have also a .bmp on your collection ?

Gilles
Comment 7 caulier.gilles 2015-05-21 11:20:52 UTC
If you import your XCF in a local collection, scan crash again ?

Gilles Caulier
Comment 8 bug_rep 2015-05-26 14:37:11 UTC
Yes, i create a new local folder with the .xcf file an digikam crash.

[3480] digikam(3480)/KEXIV2: Cannot load metadata from file   (Error # 11 :  D:/testBild/IMG_7686.xcf: The file contains data of an unknown image type 
[3480] digikam(3480)/KEXIV2: Cannot load metadata using Exiv2   (Error # 11 :  D:/testBild/IMG_7686.xcf: The file contains data of an unknown image type 
[3480] digikam(3480) bool __thiscall XCFImageFormat::readXCF(class QIODevice *,class QImage *): gimp xcf file   3000   4000   0

the bmp file is the export from the xcf file.
Comment 9 caulier.gilles 2015-05-26 14:48:25 UTC
The problem is not the XCF file. It's the BMP which crash Qt image loader...

Gilles Caulier

*** This bug has been marked as a duplicate of bug 310798 ***
Comment 10 bug_rep 2015-05-26 14:56:39 UTC
Thats right, the xcf alone works. 

but now i can not open any picture. digikam freeze if i select a folder in the treeview. 
no Message in Debugview. I delete the testfolder with the xcf and bmp.