https://bugs.kde.org/show_bug.cgi?id=446832

            Bug ID: 446832
           Summary: Removed file layer generate warnings when linked file
                    doesn't exists anymore
           Product: krita
           Version: 5.0.0-beta5
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Layer Stack
          Assignee: krita-bugs-n...@kde.org
          Reporter: grum...@grum.fr
  Target Milestone: ---

SUMMARY

Krita's generate warning messages when file from a removed file layer doesn't
exist anymore.



STEPS TO REPRODUCE - CASE 1
1. Create/Open a document 
2. Add a file layer, linked to file /home/user/xxxx.jpg (for example)
3. Remove file layer 
4. Save document
5. Delete file /home/user/xxxx.jpg
6. Wait 10seconds, and then every 10seconds, the message is printed in
terminal:
-----
"WARNING: couldn't reconnect to a removed file layer's file
(/home/user/xxxx.jpg). File is not available for 10 seconds"
"WARNING: couldn't reconnect to a removed file layer's file
(/home/user/xxxx.jpg). File is not available for 20 seconds"
"WARNING: couldn't reconnect to a removed file layer's file
(/home/user/xxxx.jpg). File is not available for 30 seconds"
...
-----
7. Close document
The warning message still continue to be printed even if document is closed...


STEPS TO REPRODUCE - CASE 2
1. Create/Open a document 
2. Add a file layer, linked to file /home/user/xxxx.jpg (for example)
4. Save document
5. Close document
6. Delete file /home/user/xxxx.jpg
7. Wait 10seconds, and then every 10seconds, the message is printed in
terminal:
-----
"WARNING: couldn't reconnect to a removed file layer's file
(/home/user/xxxx.jpg). File is not available for 10 seconds"
"WARNING: couldn't reconnect to a removed file layer's file
(/home/user/xxxx.jpg). File is not available for 20 seconds"
"WARNING: couldn't reconnect to a removed file layer's file
(/home/user/xxxx.jpg). File is not available for 30 seconds"
...
-----



OBSERVED RESULT
Krita tries to keep a connection to linked file even if file layer is removed.

As error message is displayed when file doesn't exists anymore, it seems that
Krita keep a connection to file even if not needed anymore (file layer removed,
document closed)

EXPECTED RESULT
When file layer is removed, link to file should be completely stopped.
Also, when a document is closed, link to file should be completely stopped.


SOFTWARE/OS VERSIONS
Krita
 Version: 5.0.0-beta5

Qt
  Version (compiled): 5.12.12
  Version (loaded): 5.12.12

OS Information
  Build ABI: x86_64-little_endian-lp64
  Build CPU: x86_64
  CPU: x86_64
  Kernel Type: linux
  Kernel Version: 4.19.0-18-amd64
  Pretty Productname: Debian GNU/Linux 10 (buster)
  Product Type: debian
  Product Version: 10
  Desktop: KDE

ADDITIONAL INFORMATION
Problem was already here with Krita 4.4.7 didn't tested previous version)

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to