Bug 158159

Summary: Crash on Deepl Translate
Product: LibreOffice Reporter: Timur <timur>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: major CC: aron.budea, stephane.guillou, telesto
Priority: high Keywords: bibisectRequest, regression
Version: 24.2.0.0 alpha0+   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=152247
https://bugs.documentfoundation.org/show_bug.cgi?id=152706
https://bugs.documentfoundation.org/show_bug.cgi?id=158171
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 158359    
Attachments: Sample ODT

Description Timur 2023-11-10 10:10:42 UTC
Created attachment 190779 [details]
Sample ODT

Open sample ODT
Select from the beginning to the end of text - not all with Ctrl+A
Tools - Translate (provided you have Experimental and set Deepl before)

Crash in 24.2. No crash for me with 7.5. I mark regression so far. 

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: c32bf48b7446808ffc47472021ec32cb7c70eea7
CPU threads: 16; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 1 Timur 2023-11-10 10:37:31 UTC
Crash is in my local build.
No crash in bibi repo before curl change. Repo still not updated to check now when curl changed.
Comment 2 Stéphane Guillou (stragu) 2023-11-10 13:39:39 UTC Comment hidden (obsolete)
Comment 3 Timur 2023-11-10 13:40:54 UTC
Stéphane, that is different. You do not have the Translate working. 
It needs to work for thish ticket.
Comment 4 Stéphane Guillou (stragu) 2023-11-10 13:52:13 UTC
(In reply to Stéphane Guillou (stragu) from comment #2)
> Using the free DeepL API with domain https://www.deepl.com/docs-api
Ugh, sorry, obviously copied the wrong API domain.
Now I don't get 152706, but:
- I still can't reproduce your crash
- I can still reproduce my comment 2 double-click crash
Comment 5 Stéphane Guillou (stragu) 2023-11-10 14:04:30 UTC
Hm actually I take that back, I have reproduced the crash _once_ but it's inconsistent.
I get garbage in last list element of the type:

Math (Gleichungseditor)1 Base (Datenbank)1殐ڹ㎀ۄA澐ڹ뙰ͨ鱠ͩ୑⾴붺쀙
-@Q&#56048;ں&#56064;ں&#56064;ںﱠͪں뀸돳缗ٕ俸ڽ㓠ۄ돎缗-?Q&#55920;ں!&#55920;ںMath (equation editor)

I always get random garbage, but once after that I waited a few seconds, it froze, then crashed.

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 3aca2d9776a871f15009a1aa70628ba3a03ee147
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded
Comment 6 Stéphane Guillou (stragu) 2023-11-10 17:43:25 UTC
(In reply to Stéphane Guillou (stragu) from comment #2)
Reported as bug 158171.