[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#868704: Various Thunar frezes/crashes in bugs 837708, 868704, 862397, 884799, etc.



Dear Maintainer,

I just did some testing with Thunar 1.6.11 (on my main system - Debian Stretch) and with Thunar 1.8.2 (on my VM system - Debian Stretch + Thunar and its dependences from Sid/Stretch Backports). It seems that various random freezes/crashes do not happen with Thunar 1.8.2 - I used the following Bash script to test:

#!/usr/bin/env bash

declare -i loopNumber=0
declare -i continueLoop=1
echo 'Testing started.'

while true; do
    echo 'TEST' > ./a
    mkdir ./d
    mv ./a ./d/b
    tar -cf ./a.tar ./d
    mv ./d ./f
    tar -xf ./a.tar
    cp ./d/b ./a
    rm ./a
    shred -zu ./d/b
    rm -rf ./d ./f ./a.tar
    loopNumber+=1
    continueLoop=$(($loopNumber % 100))

    if [ $continueLoop -eq 0 ]; then
        echo "Loop number $loopNumber passed."
        echo 'Sleping for 5 seconds so you can safely hit CTRL+C.'
        sleep 5
        echo "Testing started again."

        if [ -f ./Document.odt ]; then
            echo "Testing ODT extract and archive."
            mv -f ./Document.odt ./Document.odt.extracted.zip
            unar -f -q ./Document.odt.extracted.zip
            mv -f ./Document.odt.extracted.zip ./Document.odt
            cd ./Document.odt.extracted
            zip -0 -X ../New.zip ./mimetype
            zip -r -q ../New.zip ./* -x ./mimetype
            cd ..
            mv -f ./New.zip ./Document.odt
            echo "Tested ODT extract and archive."
            echo 'Sleping for 5 seconds so you can safely hit CTRL+C.'
            sleep 5
        fi
    fi
done

The script causes Thunar 1.6.11 on my main system to freeze very soon when testing ODT extract and archive (any ODT file can be used for testing). In general Thunar 1.6.11 regularly stops responding when scripts or custom actions manipulate contents of directories opened with Thunar on my main Debian Stretch system. With Thunar 1.8.2 this seems not to happen, but maybe it would be good to adapt/improve the test script just to be more sure before closing the bugs.

Regards
Bakhelit


Reply to: