Bug 330739

Summary: [ multiline text tool] freeze ( then crash) while editing, feature unstable
Product: [Applications] krita Reporter: David REVOY <info>
Component: GeneralAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash CC: halla
Priority: NOR    
Version: 2.8 Beta   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: [ ^ gdb output ]

Description David REVOY 2014-02-04 09:26:55 UTC
Created attachment 84984 [details]
[ ^  gdb output ]

Hi, after getting exiting results with the new fix for 'Artistic Text' tool ( it works really well ), I started a project of a full book cover for a client to see how 2.8 can manage a production environment. I had issue with text outline, text shadows, and my last one is about 'Multiline text tool' frame... Multiline got a large amount of bug on my machine with 2.8 ; selections keeps visible ( Bug 306181 , text are outlined if you select it , you need to copy/paste the frame and delete the previous to get rid of it ) , rendering in edit mode show double overlay ( the text edited, and the text rendered are seen in double and not sync ) but today I managed to got even a full freeze of Krita with it. So, I applied the GDB method Boud learnt me ( output in attachment ) ; I hope this output can be useful.

Reproductible :
=============
I didn't try , because creating same circumstances are hard. But I guess it can be done playing around with the multiline tool as it is unstable.

What I was doing ? :
=================
 I opened a large desktop publishing file ( *.kra ) containing a multiline text frame ( made yesterday )  ; and I made an attempt to change the text content of the frame. So, to delete all the content of the frame,  I simply clicked cursor before first character then I press 'delete' key during 30s ( Ctrl+A to 'select all' doesn't work in frame ; internal keyboard shortcut conflict , Bug 273898 ). Frame gets empty, I tried to copy/paste the clients text in it ( a simple *.txt , no formating , no special char. too  ) and then I got a freeze and started the inspection in gdb. 

For now , I'll redo all my desktop publishing with Gimp to keep a text frame with editing ability but then I'll lost my CMYK optimisations for the artwork cover ... ( and remaking all in Scribus is not an option as it's a bit too much work  and my client expect a *.psd output ) . Frustrating, I thought it would be my first cover 100% made in Krita  xD  I tried to early ! ( note : I didn't tested CMYK PSD output in Krita for ages too , it's hard to check or test them here as my PhotoshopCs2 license on Wine expired with server refusing the authentication now ... bleeee  ).
Comment 1 Halla Rempt 2014-02-04 09:37:08 UTC
Pity Scribus doesn't work... I've come to love Scribus myself, doing the krita pdf's and flyers in it. It supports cmyk very well, as well as the cmyk tiff files Krita produces. In any case, I am not sure that doing text in Krita and then export to PSD won't just drop the text layers...

For testing with PS, I am using the generic licenses that Adobe provided some time ago...

The gdb output seems to indicate that this is another XCB problem. XCB is the "modern" way of talking to the X server that Qt uses these days, and we're getting lots of synchronization errors that end up in hangs with it.
Comment 2 David REVOY 2014-02-04 10:41:24 UTC
Oh, I see. I finally went this ways for my actual production :
- I kept a *.kra with dynamic text ( exept for shadows, I baked them ) ; I can edit this file , if I do one action at a time : delete content. Save, close then open .  Paste text . Save, close then open . Formating . Save, close then open  . etc... For one frame , it was less painful.  
- I baked all texts and vector to pixels and made a simple layer stack for a *.psd ( my client will replace text himself , creating new frame in his Photoshop  )
- I exported also flat the base artworks to *.png 
- I joined the fonts used inside a folder. 
If you are curious about the *.kra , I can send a link in private.
Thanks for the infos about Scribus. It's one year I didn't test it ; since the personal work production for the "Little Red Ridding Hood".
Comment 3 Halla Rempt 2014-02-04 10:42:52 UTC
Yes, I'd like to investigate the .kra file.
Comment 4 Halla Rempt 2014-02-06 15:25:45 UTC

*** This bug has been marked as a duplicate of bug 306181 ***