Create HTML Gallery tool chrashes DK

Gilles Caulier caulier.gilles at gmail.com
Fri Dec 6 06:29:36 GMT 2024


Hi Maik,

Yes, we can do it. It's easy. Look in the bash script Building the last
stage for the Windows installer :

https://invent.kde.org/graphics/digikam/-/blob/master/project/bundles/vcpkg/04-build-installer.sh?ref_type=heads#L296

Look especially the comment code here :

https://invent.kde.org/graphics/digikam/-/blob/master/project/bundles/vcpkg/04-build-installer.sh?ref_type=heads#L315

A similar if condition must be written to bypass the Qt6Core debug dll.
Note that debug symbols are hosted in a dedicated dll under Windows using
"pdb" extension. Dropping these files in the bundle removes the debug
symbols.

Best

Gilles

Le jeu. 5 déc. 2024 à 16:13, Maik Qualmann <metzpinguin at gmail.com> a écrit :

> It crashes deep in Qt6Core. I can't get any further in the Visual C++
> debugger, it's not clear which thread it is.
> Gilles, can we add the debug symbols for the Qt6Core (Qt6Core.pdb) in the
> bundle?
>
> Maik
>
> Am Mi., 4. Dez. 2024 um 19:40 Uhr schrieb Maik Qualmann <
> metzpinguin at gmail.com>:
>
>> I can reproduce the problem on a relatively fast Windows machine here. I
>> use a
>> set of 500 images, it doesn't crash all the time, but quite often. It's
>> not a
>> lack of memory. I don't know yet if it's a coincidence, but it never
>> crashes
>> on square thumbnails, even with the option disabled. I made a change,
>> we'll
>> see with the next version.
>>
>> Maik
>>
>> Am Montag, 2. Dezember 2024, 20:55:27 Mitteleuropäische Normalzeit
>> schrieb
>> Gilles Caulier:
>> > Hi,
>> >
>> > It sounds like a memory leak...
>> >
>> > Best
>> >
>> > Gilles Caulier
>> >
>> > Le lun. 2 déc. 2024 à 18:33, Andrej Valencic <andrej.valencic at zoho.com>
>> a
>> >
>> > écrit :
>> > > Hi Maik,
>> > >
>> > > I tested the latest version so here are some observations:
>> > >
>> > > - first time I ran this version it was ok with cca. 200 pictures
>> > > - then I tried with around 300 photos and DK crashed
>> > > - I tried again and now it crashes even with around 150 photos
>> > > - it runs OK with up to cca. 120 photos
>> > >
>> > > Regards,
>> > > Andrej
>> > >
>> > > On 02/12/2024 12:27, Maik Qualmann wrote:
>> > > > We have made some changes to the HTML Gallery Tool (image loading
>> etc.).
>> > >
>> > > Can
>> > >
>> > > > you please test if the problem can still be reproduced with the
>> current
>> > >
>> > > pre-
>> > >
>> > > > release version of digiKam-8.6.0 ?
>> > > >
>> > > > https://files.kde.org/digikam/
>> > > >
>> > > > Maik
>> > > >
>> > > > Am Freitag, 22. November 2024, 12:48:00 Mitteleuropäische Normalzeit
>> > >
>> > > schrieb
>> > >
>> > > > Andrej Valencic:
>> > > >> There is some more memory used by DK when I run the tool, but not
>> much
>> > > >> -
>> > > >> about 200MB more before the crash. And I still have about 60% free
>> > > >> memory on my PC.
>> > > >>
>> > > >> On 22/11/2024 12:33, Gilles Caulier wrote:
>> > > >>> Hum no more info.
>> > > >>>
>> > > >>> But look on the top/right side, the memory allocated rises up just
>> > > >>> before it crashes. This can be the reason...
>> > > >>>
>> > > >>> Did you confirm ?
>> > > >>>
>> > > >>> Gilles Cauleir
>> > > >>>
>> > > >>> Le ven. 22 nov. 2024 à 11:46, Andrej Valencic
>> > > >>>
>> > > >>> <andrej.valencic at zoho.com> a écrit :
>> > > >>>      So I tried this with the 8.5.0 version that you pointed to
>> and
>> > > >>>      the
>> > > >>>      results are a little bit different but not much.
>> > > >>>
>> > > >>>      Regards
>> > > >>>
>> > > >>>      On 22/11/2024 11:32, Andrej Valencic wrote:
>> > > >>>>      Well, I installed the debug version from here:
>> > > >>>>      https://files.kde.org/digikam/
>> > > >>>>      I will try again - I see there is a new build from today.
>> > > >>>>
>> > > >>>>      Regards
>> > > >>>>
>> > > >>>>      On 22/11/2024 11:26, Gilles Caulier wrote:
>> > > >>>>>      Hi,
>> > > >>>>>
>> > > >>>>>      Your digiKam install is not the debug version for Windows.
>> We
>> > > >>>>>      package Windows installer with debug symbols in the
>> download
>> > >
>> > > area :
>> > >
>> > >
>> > > https://download.kde.org/stable/digikam/8.5.0/digiKam-8.5.0-Qt6-Win6
>> > >
>> > > >>>>>      4-debug.exe.mirrorlist
>> > > >>>>>
>> > > >>>>>      Best
>> > > >>>>>
>> > > >>>>>      Gilles Caulier
>> > > >>>>>
>> > > >>>>>      Le ven. 22 nov. 2024 à 11:18, Andrej Valencic
>> > > >>>>>
>> > > >>>>>      <andrej.valencic at zoho.com> a écrit :
>> > > >>>>>          Hi Gilles,
>> > > >>>>>
>> > > >>>>>          I tried the debugger run and I got to the point where
>> DK
>> > > >>>>>          throws an exception. Here is the screenshot of Visual
>> > > >>>>>          Studio
>> > > >>>>>          windows (I'm sorry but  don't know any other way how
>> to get
>> > > >>>>>          the info from VS).
>> > > >>>>>
>> > > >>>>>          Regards,
>> > > >>>>>          Andrej
>> > > >>>>>
>> > > >>>>>          On 22/11/2024 10:09, Gilles Caulier wrote:
>> > > >>>>>>          Hi Andrej,
>> > > >>>>>>
>> > > >>>>>>          The log does not show any value to hack the problem.
>> > > >>>>>>
>> > > >>>>>>          It's better to run digiKam in the debugger to see
>> where
>> > > >>>>>>          the
>> > > >>>>>>          crash appears in source code. Please follow
>> instruction
>> > >
>> > > >>>>>>          from this page :
>> > > https://www.digikam.org/contribute/#dealing-with-crashes-in-dig
>> > >
>> > > >>>>>>          ikam
>> > > >>>>>>
>> > > >>>>>>          best
>> > > >>>>>>
>> > > >>>>>>          Gilles Caulier
>> > > >>>>>>
>> > > >>>>>>
>> > > >>>>>>          Le ven. 22 nov. 2024 à 10:03, Andrej Valencic
>> > > >>>>>>
>> > > >>>>>>          <andrej.valencic at zoho.com> a écrit :
>> > > >>>>>>              Hello!
>> > > >>>>>>
>> > > >>>>>>              Anybody has recent experience with the Create Html
>> > > >>>>>>              Gallery tool?
>> > > >>>>>>
>> > > >>>>>>              I used to use it a couple of time in the past and
>> it
>> > > >>>>>>              worked OK but now
>> > > >>>>>>              it crashes DK if I try to use this tool on some
>> bigger
>> > > >>>>>>              number of
>> > > >>>>>>              photos.  I'm using latest 8.6.0 DK on Win11 with
>> 32GB
>> > > >>>>>>              of RAM and
>> > > >>>>>>              internal SSD drive. If I use a smaller number of
>> > > >>>>>>              photos
>> > > >>>>>>              it works but
>> > > >>>>>>              with a big gallery it crashes - I'm not sure
>> where the
>> > > >>>>>>              limit is but it
>> > > >>>>>>              definitely crashes if I chose more than 100 items
>> to
>> > > >>>>>>              add to the gallery.
>> > > >>>>>>              In the past with some older version of DK I easily
>> > > >>>>>>              made
>> > > >>>>>>              html gallery
>> > > >>>>>>              with more than 400 items!
>> > > >>>>>>
>> > > >>>>>>              Included is the log file from DK start and ends
>> when
>> > > >>>>>>              it
>> > > >>>>>>              crashes.
>>
>>
>>
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/digikam-users/attachments/20241206/25e50f4c/attachment-0001.htm>


More information about the Digikam-users mailing list