<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>488606</bug_id>
          
          <creation_ts>2024-06-17 01:01:49 +0000</creation_ts>
          <short_desc>After Krita launches and you first open a file, the canvas will not show up until you rotate the screen orientation</short_desc>
          <delta_ts>2026-01-03 23:06:59 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>krita</product>
          <component>Usability</component>
          <version>nightly build (please specify the git hash!)</version>
          <rep_platform>Android</rep_platform>
          <op_sys>Android 13.x</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>regression</keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="AppTest">xeses16388</reporter>
          <assigned_to name="Krita Bugs">krita-bugs-null</assigned_to>
          <cc>dimula73</cc>
    
    <cc>dra.w.p.il.e+bugskde</cc>
    
    <cc>edwardmowah</cc>
    
    <cc>fpmangaka</cc>
    
    <cc>halla</cc>
    
    <cc>mixalhs006</cc>
    
    <cc>osteotripleshield2</cc>
    
    <cc>penguinflyer2222</cc>
    
    <cc>songbird58</cc>
    
    <cc>tysontanx</cc>
          
          <cf_commitlink>https://invent.kde.org/graphics/krita/-/commit/fa6e2c76a543ad9e5f69e53403e9acabfbb61127</cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2328543</commentid>
    <comment_count>0</comment_count>
    <who name="AppTest">xeses16388</who>
    <bug_when>2024-06-17 01:01:49 +0000</bug_when>
    <thetext>SUMMARY
Launch Krita, and open the first file after launch (tested with .kra and .png files), and the canvas will not show up until you rotate the Android device&apos;s screen orientation. 

If you close all the open files, and then open another file again, the behavior will return to normal, with the canvas appearing without the need to change screen orientation.

The bug will happen again if you quit Krita, launch Krita again, and open a file, so this is an issue that only happens with the first open file after launch.

This occurs in the 5.3 nightly. This issue does not happen in Krita 5.2.2.

STEPS TO REPRODUCE
1. See above.
2. 
3. 

OBSERVED RESULT
See above.

EXPECTED RESULT
Krita should show the canvas right away without needing to change the screen orientation.


SOFTWARE/OS VERSIONS
Android 13
Krita 5.3.0-prealpha (git 7fb0cda)
(2024, June 14)
arm64 APK</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2332655</commentid>
    <comment_count>1</comment_count>
    <who name="Freya Lupen">penguinflyer2222</who>
    <bug_when>2024-06-27 14:28:56 +0000</bug_when>
    <thetext>I can confirm this on 5.2.3, the window requires a manual update trigger (rotating the screen, minimizing the app, etc. Opening a menu triggers a partial update).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2333680</commentid>
    <comment_count>2</comment_count>
    <who name="Freya Lupen">penguinflyer2222</who>
    <bug_when>2024-06-30 22:08:50 +0000</bug_when>
    <thetext>*** Bug 489518 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2338222</commentid>
    <comment_count>3</comment_count>
    <who name="Dmitry Kazakov">dimula73</who>
    <bug_when>2024-07-18 12:04:01 +0000</bug_when>
    <thetext>Hi, Freya!

Do you know, is it possible to reproduce this issue in an emulator? Or it is real hardware only?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2338379</commentid>
    <comment_count>4</comment_count>
    <who name="Freya Lupen">penguinflyer2222</who>
    <bug_when>2024-07-19 00:07:38 +0000</bug_when>
    <thetext>Yes, it&apos;s possible to reproduce in the Android emulator, but I see a different behavior than on my physical device, I don&apos;t know why.

On my virtual arm64 device, the window will fail to update, but the floating message about the zoom level will appear, at first partially (on show()) and then fully (on hide()) updating the window. If the floating messages are disabled in Settings-&gt;General-&gt;Window, then the window will remain un-updated.

On my physical arm32 device, the floating message about the zoom level doesn&apos;t appear when opening an image, and the window remains un-updated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2338571</commentid>
    <comment_count>5</comment_count>
    <who name="Freya Lupen">penguinflyer2222</who>
    <bug_when>2024-07-19 15:53:52 +0000</bug_when>
    <thetext>*** Bug 490505 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2343863</commentid>
    <comment_count>6</comment_count>
    <who name="Freya Lupen">penguinflyer2222</who>
    <bug_when>2024-08-07 14:11:56 +0000</bug_when>
    <thetext>On the 5.3 branch this bug is now avoided with the reintroduction of a QML-using docker (the Text Properties docker instead of the Touch Docker). 
The issue is still present on the 5.2 branch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2346820</commentid>
    <comment_count>7</comment_count>
    <who name="Freya Lupen">penguinflyer2222</who>
    <bug_when>2024-08-19 19:31:18 +0000</bug_when>
    <thetext>*** Bug 491912 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2351103</commentid>
    <comment_count>8</comment_count>
    <who name="Halla Rempt">halla</who>
    <bug_when>2024-09-03 12:47:15 +0000</bug_when>
    <thetext>Git commit e959198d9a2c10722db0df799e41e71b9c73650e by Halla Rempt.
Committed on 03/09/2024 at 12:47.
Pushed by rempt into branch &apos;krita/5.2&apos;.

Re-add the throttle docker to 5.2

It&apos;s not very useful, but it uses QML, which apparently is enough
to make the initialization of the canvas work on Android...

M  +3    -0    plugins/dockers/CMakeLists.txt
A  +17   -0    plugins/dockers/throttle/CMakeLists.txt
A  +77   -0    plugins/dockers/throttle/Throttle.cpp     [License: LGPL]
A  +58   -0    plugins/dockers/throttle/Throttle.h     [License: LGPL]
A  +83   -0    plugins/dockers/throttle/ThrottlePlugin.cpp     [License: LGPL]
A  +35   -0    plugins/dockers/throttle/ThrottlePlugin.h     [License: LGPL]
A  +9    -0    plugins/dockers/throttle/krita_throttle.json
A  +64   -0    plugins/dockers/throttle/qml/slider.qml  *
A  +5    -0    plugins/dockers/throttle/throttle.qrc

The files marked with a * at the end have a non valid license. Please read: https://community.kde.org/Policies/Licensing_Policy and use the headers which are listed at that page.


https://invent.kde.org/graphics/krita/-/commit/e959198d9a2c10722db0df799e41e71b9c73650e</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2351107</commentid>
    <comment_count>9</comment_count>
    <who name="Tyson Tan">tysontanx</who>
    <bug_when>2024-09-03 12:51:50 +0000</bug_when>
    <thetext>Thank you, Halla! :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2351108</commentid>
    <comment_count>10</comment_count>
    <who name="Halla Rempt">halla</who>
    <bug_when>2024-09-03 12:57:03 +0000</bug_when>
    <thetext>Sorry, but that was broken :-(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2360633</commentid>
    <comment_count>11</comment_count>
    <who name="Tyson Tan">tysontanx</who>
    <bug_when>2024-09-28 05:28:56 +0000</bug_when>
    <thetext>Now this bug has been fixed in the 5.3 branch. However, it still happens in 5.2.5. Do we need to backport the fix?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2360660</commentid>
    <comment_count>12</comment_count>
    <who name="Halla Rempt">halla</who>
    <bug_when>2024-09-28 08:41:37 +0000</bug_when>
    <thetext>Well, my fix wasn&apos;t what fixed the bug; I had to revert that. The reason it&apos;s fixed in 5.3 is because the text tool adds a new qml-based component. Having one is what fixes the issue, for whatever weird Qt-internal reason.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2456516</commentid>
    <comment_count>13</comment_count>
    <who name="">dra.w.p.il.e+bugskde</who>
    <bug_when>2025-09-22 21:35:38 +0000</bug_when>
    <thetext>*** Bug 497103 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2456535</commentid>
    <comment_count>14</comment_count>
    <who name="Tiar">tamtamy.tymona</who>
    <bug_when>2025-09-22 22:37:06 +0000</bug_when>
    <thetext>*** Bug 509748 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2456698</commentid>
    <comment_count>15</comment_count>
    <who name="">dra.w.p.il.e+bugskde</who>
    <bug_when>2025-09-23 14:00:56 +0000</bug_when>
    <thetext>Git commit fa6e2c76a543ad9e5f69e53403e9acabfbb61127 by Carsten Hartenfels.
Committed on 22/09/2025 at 21:40.
Pushed by dkazakov into branch &apos;krita/5.2&apos;.

[android] Fix main window not showing document

On some Android devices, the main window will sometimes fail to repaint
after a document has loaded. The user can interact with the invisible
contents of the window, but it won&apos;t actually show them properly until
Krita is sent to the background once or the user fiddles with the main
menu bar.

Any attempts to call repaint or update don&apos;t work, but hiding and
showing the window on subsequent event loop iterations does, so that&apos;s
what this commit does. A QML docker existing also happens to fix this
somehow, so 5.3 with its text properties docker doesn&apos;t need this.

M  +14   -0    libs/ui/KisMainWindow.cpp

https://invent.kde.org/graphics/krita/-/commit/fa6e2c76a543ad9e5f69e53403e9acabfbb61127</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2456944</commentid>
    <comment_count>16</comment_count>
    <who name="Tyson Tan">tysontanx</who>
    <bug_when>2025-09-24 01:27:06 +0000</bug_when>
    <thetext>Thank you, guys! :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2467500</commentid>
    <comment_count>17</comment_count>
    <who name="">dra.w.p.il.e+bugskde</who>
    <bug_when>2025-11-03 06:08:05 +0000</bug_when>
    <thetext>*** Bug 511559 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>