Bug 431832

Summary: Could not set current file 0 "brushes/rake_sparse.png"
Product: [Applications] krita Reporter: Peter Eszlari <peter.eszlari>
Component: GeneralAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: halla
Priority: NOR    
Version: 4.4.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Peter Eszlari 2021-01-19 23:54:36 UTC
full build log and test build:
https://github.com/flathub/org.kde.krita/pull/34

I want to update Krita on Flathub to 4.4.2, but the build produces a lot of warning messages (not sure how relevant they are):

Could not set current file 0 "brushes/rake_sparse.png"
krita.general: Bundle is broken. File "brushes/rake_sparse.png" is missing
                Could not set current file 0 "brushes/rock_pitted.gih"
krita.general: Bundle is broken. File "brushes/rock_pitted.gih" is missing
                Could not set current file 0 "brushes/square_rough.png"
krita.general: Bundle is broken. File "brushes/square_rough.png" is missing
krita.general: Due to missing files and wrong entries in the manifest,  "/app/share/krita/bundles/RGBA_brushes.bundle"  will be recreated.
QuaZipFile::open(): file open mode 2 incompatible with ZIP open mode 0
Could not open "brushes/Craig_02.png" 0
krita.lib.store: KoStore: You must open before writing 

krita.lib.store: You must open before closing
QuaZipFile::open(): file open mode 2 incompatible with ZIP open mode 0
Could not open "brushes/DA_RGBA bluegreen_small.png" 0
QBuffer::setBuffer: Buffer is open
krita.lib.store: KoStore: You must open before writing 

krita.lib.store: You must open before closing
QuaZipFile::open(): file open mode 2 incompatible with ZIP open mode 0
Could not open "brushes/DA_RGBA bluegreen_small1.png" 0
QBuffer::setBuffer: Buffer is open
krita.lib.store: KoStore: You must open before writing 

krita.lib.store: You must open before closing
QuaZipFile::open(): file open mode 2 incompatible with ZIP open mode 0
Could not open "brushes/DA_Triangle grain.png" 0
QBuffer::setBuffer: Buffer is open
krita.lib.store: KoStore: You must open before writing 

krita.lib.store: You must open before closing
QuaZipFile::open(): file open mode 2 incompatible with ZIP open mode 0
Could not open "brushes/Mountain_Brush_01.png" 0
QBuffer::setBuffer: Buffer is open
krita.lib.store: KoStore: You must open before writing 

krita.lib.store: You must open before closing
QuaZipFile::open(): file open mode 2 incompatible with ZIP open mode 0
Could not open "brushes/RGBA anim 01.gih" 0
QBuffer::setBuffer: Buffer is open
krita.lib.store: KoStore: You must open before writing 

krita.lib.store: You must open before closing
                Could not set current file 0 "brushes/rake_sparse.png"
                Could not set current file 0 "brushes/rock_pitted.gih"
                Could not set current file 0 "brushes/square_rough.png"
QuaZipFile::open(): file open mode 2 incompatible with ZIP open mode 0
Could not open "paintoppresets/m)_RGBA_01_Thick-dry.kpp" 0
QBuffer::setBuffer: Buffer is open
krita.lib.store: KoStore: You must open before writing 

krita.lib.store: You must open before closing
QuaZipFile::open(): file open mode 2 incompatible with ZIP open mode 0
Could not open "paintoppresets/m)_RGBA_02_Thickpaint.kpp" 0
QBuffer::setBuffer: Buffer is open
krita.lib.store: KoStore: You must open before writing 

krita.lib.store: You must open before closing
QuaZipFile::open(): file open mode 2 incompatible with ZIP open mode 0
Could not open "paintoppresets/m)_RGBA_03_Rake.kpp" 0
QBuffer::setBuffer: Buffer is open
krita.lib.store: KoStore: You must open before writing 

krita.lib.store: You must open before closing
QuaZipFile::open(): file open mode 2 incompatible with ZIP open mode 0
Could not open "paintoppresets/m)_RGBA_04_Impasto.kpp" 0
QBuffer::setBuffer: Buffer is open
krita.lib.store: KoStore: You must open before writing 

krita.lib.store: You must open before closing
QuaZipFile::open(): file open mode 2 incompatible with ZIP open mode 0
Could not open "paintoppresets/m)_RGBA_05_Impasto-details.kpp" 0
QBuffer::setBuffer: Buffer is open
krita.lib.store: KoStore: You must open before writing 

krita.lib.store: You must open before closing
QuaZipFile::open(): file open mode 2 incompatible with ZIP open mode 0
Could not open "paintoppresets/m)_RGBA_06_Rock.kpp" 0
QBuffer::setBuffer: Buffer is open
krita.lib.store: KoStore: You must open before writing 

krita.lib.store: You must open before closing
QuaZipFile::open(): file open mode 2 incompatible with ZIP open mode 0
Could not open "preview.png" 0
QBuffer::setBuffer: Buffer is open
krita.general: Could not open preview.png
krita.lib.store: KoStore: You must open before writing 

krita.general: Could not write preview.png
krita.lib.store: You must open before closing
QuaZipFile::open(): file open mode 2 incompatible with ZIP open mode 0
Could not open "META-INF/manifest.xml" 0
QBuffer::setBuffer: Buffer is open
krita.lib.store: KoStore: You must open before writing 

krita.lib.store: You must open before closing
QuaZipFile::open(): file open mode 2 incompatible with ZIP open mode 0
Could not open "meta.xml" 0
QBuffer::setBuffer: Buffer is open
krita.lib.store: KoStore: You must open before writing 

krita.lib.store: You must open before closing
QuaZip::close(): ZIP is not open
Could not remove "/app/share/krita/bundles/RGBA_brushes.bundle" "Read-only file system"
Could not copy the tmp file to the store "/app/share/krita/bundles/RGBA_brushes.bundle" "/app/share/krita/bundles/RGBA_brushes.bundle.tmp" false "Destination file exists"
QObject::startTimer: Timers cannot have negative intervals
/app/lib/krita-python-libs/krita added to PYTHONPATH
QLayout: Attempting to add QLayout "" to QWidget "", which already has a layout
Comment 1 Halla Rempt 2021-01-20 09:39:51 UTC
Hm... Looks like the RGBA brush bundle is broken, and Krita tries to recreate it, but in a read-only folder, which fails.
Comment 2 Halla Rempt 2021-01-21 09:30:22 UTC
Git commit da1c5a579eb01504df150a753c33b3674a2e3e82 by Halla Rempt.
Committed on 21/01/2021 at 09:28.
Pushed by rempt into branch 'krita/4.3'.

Fix RGBA_brushes.bundle

M  +-    --    krita/data/bundles/RGBA_brushes.bundle

https://invent.kde.org/graphics/krita/commit/da1c5a579eb01504df150a753c33b3674a2e3e82