Bug 1213764 - There may be an issue with the packaging of crow-translate, libtesseract5, and libtesseract5-x86-64-v3.
Summary: There may be an issue with the packaging of crow-translate, libtesseract5, an...
Status: NEW
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Maintenance (show other bugs)
Version: Current
Hardware: x86-64 openSUSE Tumbleweed
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Martin Hauke
QA Contact: E-mail List
URL: https://github.com/crow-translate/cro...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-28 16:06 UTC by Poplar.at.twilight
Modified: 2023-08-02 10:35 UTC (History)
2 users (show)

See Also:
Found By: Community User
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Poplar.at.twilight 2023-07-28 16:06:22 UTC
Hi,

I am Poplar, I've run into an issue and after discussing it with others I think it might be a packaging related issue.

Symptom: When I start crow-translate, it prompts that the configuration file is missing, and then create a new tesseract_opencl_profile_devices.dat file in the user directory. This file will not affect the normal operation of crow-translate.

How to reproduce:

1. Install crow-translate with zypper
2. Then start it
3. Then crow-translate will create a new configuration file in the user directory.

Regarding tesseract_opencl_profile_devices.dat, its content is:

> poplar@c004-h0:~> cat tesseract_opencl_profile_devices.dat
> <version>v0.1</version>
> <device><type></type><score>�N�></score></device>

After deleting this file and restarting crow-translate, the terminal will have the following output information:

> poplar@c004-h0:~> crow-translate
> [DS] Profile file not available (tesseract_opencl_profile_devices.dat); performing profiling.
> 
> [DS] Device: "(null)" (Native) evaluation...
> Error in pixCloseBrick: pixs not 1 bpp
> Error in pixOpenBrick: pixs not defined
> Error in pixSubtract: pixs1 not defined
> Error in pixOpenBrick: pixs not defined
> Error in pixOpenBrick: pixs not defined
> [DS] Device: "(null)" (Native) evaluated
> [DS]          composeRGBPixel: 0.029100 (w=1.2)
> [DS]            HistogramRect: 0.068931 (w=2.4)
> [DS]       ThresholdRectToPix: 0.047114 (w=4.5)
> [DS]        getLineMasksMorph: 0.000045 (w=5.0)
> [DS]                    Score: 0.412594
> [DS] Scores written to file (tesseract_opencl_profile_devices.dat).
> [DS] Device[1] 0:(null) score is 0.412594
> [DS] Selected Device[1]: "(null)" (Native)
> ^C

My system environment:

> Operating System: openSUSE Tumbleweed 20230724
> KDE Plasma Version: 5.27.6
> KDE Frameworks Version: 5.108.0
> Qt Version: 5.15.10
> Kernel Version: 6.4.4-1-default (64-bit)
> Graphics Platform: X11
> Processors: 8 × Intel® Core™ i5-8250U CPU @ 1.60GHz
> Memory: 15.4 GiB of RAM
> Graphics Processor: Mesa Intel® UHD Graphics 620

Package information:

> 软件源     : openSUSE-Tumbleweed-Oss
> 名称       : crow-translate
> 版本       : 2.10.0-1.4
> 架构       : x86_64
> 出品方     : openSUSE
> 已安装大小 : 2.7 MiB
> 已安装     : 是
> 状态       : 最新
> 源代码包   : crow-translate-2.10.0-1.4.src
> 上游网址   : https://crow-translate.github.io/
> 摘要       : A Qt GUI for Google, Yandex and Bing translators
> 描述       : 
>     A simple and lightweight translator that allows to translate and speak
>     text using Google, Yandex and Bing written with Qt5.

The upstream developer stated that he was unable to reproduce the error and thought it might be a problem with Tesseract library files or distribution packaging.

Related discussion links:

- https://github.com/crow-translate/crow-translate/issues/593
- https://lists.opensuse.org/archives/list/support@lists.opensuse.org/thread/LFBBZB6MD3BRTRAI45TEMLSSZIXQOBDE/

If any other information is required, please specify.

Regards,
Poplar.at.twilight.
Comment 1 Poplar.at.twilight 2023-07-28 16:12:53 UTC
The reason this tesseract_opencl_profile_devices.dat caught my attention is that it has a .dat suffix. This made me a little anxious, wondering if something was wrong.

I think such files should be placed in the application's data directory or public config/cache folder (eg ~/.config), or as a hidden file like .gitconfig.

But it didn't, which got my attention.