Bug 472900 - PSD import crash on Android (works fine on desktop)
Summary: PSD import crash on Android (works fine on desktop)
Status: RESOLVED DUPLICATE of bug 464015
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: 5.1.5
Platform: Android Android 13.x
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-01 23:30 UTC by pinkdama
Modified: 2023-10-05 13:18 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pinkdama 2023-08-01 23:30:17 UTC
It seems that PSD import is not working properly. I use it along with Ibis and MediBang Paint, so I hope it will be improved soon. The device I am using is the Galaxy Tab S8 with Android 13.

I am writing to you today to report a bug in your product. I have been using your product since January, and I have been experiencing a bug since the January update. I have been waiting for the bug to be fixed, but it has not been fixed yet.

I am a Japanese user, so I am not very good at English. I would appreciate it if you could respond to me as soon as possible.

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 wolthera 2023-08-02 11:50:36 UTC
Hi,

We do not support the full PSD file format, because it is very very large and many parts are not relevant to Krita. We'll need to know which parts are not working, and also will need a sample file that show cases the problem. Such a file doesn't need to be anything special, it just needs to showcase the problem. Would it be possible for you to provide such a file?
Comment 2 Bug Janitor Service 2023-08-17 03:45:18 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 pinkdama 2023-08-21 05:57:21 UTC
(In reply to wolthera from comment #1)
> Hi,
> 
> We do not support the full PSD file format, because it is very very large
> and many parts are not relevant to Krita. We'll need to know which parts are
> not working, and also will need a sample file that show cases the problem.
> Such a file doesn't need to be anything special, it just needs to showcase
> the problem. Would it be possible for you to provide such a file?

I apologize for not being able to respond for a long time.
Because I don't understand English, I rely on machine translation. Does it mean you want me to provide the problematic PSD data?
I can't load all PSD data, regardless of their file size.
I'm not sure if I need to provide PSD data from my side, but for now, I will give you a few samples that I created.

https://drive.google.com/file/d/1Qv1ZJKzpX3neWdJMhSWndzbwgV02OwDo/view?usp=sharing
Comment 4 Dmitry Kazakov 2023-08-21 08:44:34 UTC
Hi, pinkdama!

Could you please tell what is the problem with the file you linked? It seems to load fine here. It seems to have correct colors and only one layer included.

We need an example of the file that Krita fails to load and a screenshot from PS how this file should look like. Then we could look into that. You can remove all the artistic bits from the file and keep color blobs only to make sure your sensitive information doesn't leak.

Please also take it into account that Krita doesn't support vector and text extensions of PSD file. They are imported as rasterized layers. We have no plans to implement these two features.
Comment 5 Dmitry Kazakov 2023-08-21 08:44:48 UTC
Mark as needsinfo again
Comment 6 pinkdama 2023-08-21 09:47:39 UTC
(In reply to Dmitry Kazakov from comment #4)
> Hi, pinkdama!
> 
> Could you please tell what is the problem with the file you linked? It seems
> to load fine here. It seems to have correct colors and only one layer
> included.
> 
> We need an example of the file that Krita fails to load and a screenshot
> from PS how this file should look like. Then we could look into that. You
> can remove all the artistic bits from the file and keep color blobs only to
> make sure your sensitive information doesn't leak.
> 
> Please also take it into account that Krita doesn't support vector and text
> extensions of PSD file. They are imported as rasterized layers. We have no
> plans to implement these two features.

Hello Dmitry Kazakov,

In Krita on Windows, the PSD file can be loaded without issues. However, on Android's Krita, the image doesn't load and it crashes. I have reinstalled Krita for Android multiple times already.

I have taken a screenshot of the state when it crashed.
Please take a look.

https://drive.google.com/file/d/1R2rgc9Kt2FiB0bYoozJcygyrZ6wcEYfu/view?usp=sharing
Comment 7 pinkdama 2023-08-21 09:57:12 UTC
(In reply to Dmitry Kazakov from comment #4)
> Hi, pinkdama!
> 
> Could you please tell what is the problem with the file you linked? It seems
> to load fine here. It seems to have correct colors and only one layer
> included.
> 
> We need an example of the file that Krita fails to load and a screenshot
> from PS how this file should look like. Then we could look into that. You
> can remove all the artistic bits from the file and keep color blobs only to
> make sure your sensitive information doesn't leak.
> 
> Please also take it into account that Krita doesn't support vector and text
> extensions of PSD file. They are imported as rasterized layers. We have no
> plans to implement these two features.

The PSD data I sent you should not have any issues. The problem lies with the Android version of Krita not being able to load the PSD data. While the PSD data can be loaded without any issues on the Windows version of Krita, on the Android version, all the images crash.

Other users on Twitter have also encountered a similar bug. I believe that there has been a problem with this PSD import since it was updated back in January of this year.
Comment 8 Dmitry Kazakov 2023-08-29 08:31:33 UTC
Hi, pinkdama!

Could you please check if the crash happens in the latest Krita 5.2.0 Beta2 builds? 

https://krita.org/en/item/second-beta-for-krita-5-2-0-released/

I have a feeling that the bug could have been fixed in bug 464015, and the fix wasn't included in 5.1.x release cycle...
Comment 9 pinkdama 2023-08-29 10:41:12 UTC
(In reply to Dmitry Kazakov from comment #8)
> Hi, pinkdama!
> 
> Could you please check if the crash happens in the latest Krita 5.2.0 Beta2
> builds? 
> 
> https://krita.org/en/item/second-beta-for-krita-5-2-0-released/
> 
> I have a feeling that the bug could have been fixed in bug 464015, and the
> fix wasn't included in 5.1.x release cycle...

Thank you for your response.
I immediately downloaded the Android version from the URL, but I couldn't install any of the files.

The CPU processor for the Galaxy Tab S8+ is 'Snapdragon 8 Gen 1', so I believe it's not supported because it's not AMD or Intel.
Is there no version that supports the tablet's Android OS?
Comment 10 Bug Janitor Service 2023-08-30 03:45:23 UTC
Thanks for your comment!

Automatically switching the status of this bug to REPORTED so that the KDE team
knows that the bug is ready to get confirmed.

In the future you may also do this yourself when providing needed information.
Comment 11 Dmitry Kazakov 2023-08-30 13:16:26 UTC
Hi, pinkdama!

You need to use this package for mobile tablets:
https://download.kde.org/unstable/krita/5.2.0-beta2/krita-arm64-v8a-5.2.0-beta2-release-unsigned.apk

Please take it into account that these packages of Krita are "unsigned", so that might also cause a security flag for your tablet...
Comment 12 sh_zam 2023-09-04 06:58:21 UTC
Hi Dmitry and pinkdama, I'm afraid but a user can't download an unsigned APK (so they have to sign it themselves, for which they'll need android developer tools, which can be too much :) ). So can you please try the Nightly instead and see if it crashes, I am thinking it shouldn't since the crash has been long fixed in master and our release branch:https://binary-factory.kde.org/job/Krita_Nightly_Android_arm64-v8a_Build/lastSuccessfulBuild/artifact/krita-arm64-v8a-5.2.0-prealpha-nightly-unsigned.apk

(Note: it says unsigned, but it is actually signed :) )
Comment 13 sh_zam 2023-09-04 07:10:23 UTC
I can reproduce the bug on 5.1.5 release, but not on beta1, so I guess we can close this? 

> I have a feeling that the bug could have been fixed in bug 464015, and the fix wasn't included in 5.1.x release cycle...

Yes, I think this was one of the reasons Halla wanted to do 5.1.6 release, but since dependency build proved to be issue, we dropped the idea.

*** This bug has been marked as a duplicate of bug 464015 ***
Comment 14 pinkdama 2023-09-04 07:32:57 UTC
(In reply to sh_zam from comment #13)
> I can reproduce the bug on 5.1.5 release, but not on beta1, so I guess we
> can close this? 
> 
> > I have a feeling that the bug could have been fixed in bug 464015, and the fix wasn't included in 5.1.x release cycle...
> 
> Yes, I think this was one of the reasons Halla wanted to do 5.1.6 release,
> but since dependency build proved to be issue, we dropped the idea.
> 
> *** This bug has been marked as a duplicate of bug 464015 ***

Hi sh_zam,
Thank you! I was able to download and install it without any problems.

I tried using the development version of Krita that I installed, and I was able to display PSD files. However, the Krita app crashes frequently. I tried other PSD files, and I got the same symptoms. Can you confirm it?
Comment 15 sh_zam 2023-09-06 02:41:40 UTC
The PSD files crash? or any file? or do you think the crashes you're facing are similar to these: https://bugs.kde.org/show_bug.cgi?id=472705?
Comment 16 pinkdama 2023-10-05 13:18:09 UTC
(In reply to sh_zam from comment #15)
> The PSD files crash? or any file? or do you think the crashes you're facing
> are similar to these: https://bugs.kde.org/show_bug.cgi?id=472705?

I apologize for the delayed response. I'm experiencing a crash when loading the PSD data.
Sometimes PSD files can be loaded successfully, but it seems that trying to save them in Krita format afterwards causes a crash.