When crow-translate starts, it automatically creates a new file in the user directory
Hi, I'm Poplar. I have an issue. When crow-translate starts, it automatically creates a new file named tesseract_opencl_profile_devices.dat in the user directory. This file contains the following information:
poplar@c004-h0:~> cat tesseract_opencl_profile_devices.dat <version>v0.1</version> <device><type></type><score>�N�></score></device>
Steps to reproduce: 1. Installing crow-translate with zypper: sudo zypper in crow-translate 2. Just click to start it. 3. And then that strange file appeared in the user directory. 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 the package info: 软件包 crow-translate 的信息: ------------------------------ 软件源 : 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. According to the developer's feedback, this phenomenon should be caused by the Tesseract library. The related packages installed on my computer are: libtesseract5 and libtesseract5-x86-64-v3. Do you have any ideas? - Original GitHub BUG report: https://github.com/crow-translate/crow-translate/issues/593 Regards, Poplar
On Fri, 28 Jul 2023 11:48:35 -0000 "Poplar.at.twilight " <poplar.cubic@gmail.com> wrote:
Hi,
I'm Poplar. I have an issue. When crow-translate starts, it automatically creates a new file named tesseract_opencl_profile_devices.dat in the user directory. This file contains the following information:
poplar@c004-h0:~> cat tesseract_opencl_profile_devices.dat <version>v0.1</version> <device><type></type><score>�N�></score></device>
Steps to reproduce:
1. Installing crow-translate with zypper: sudo zypper in crow-translate 2. Just click to start it. 3. And then that strange file appeared in the user directory.
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
the package info:
软件包 crow-translate 的信息: ------------------------------ 软件源 : 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.
According to the developer's feedback, this phenomenon should be caused by the Tesseract library. The related packages installed on my computer are: libtesseract5 and libtesseract5-x86-64-v3.
Do you have any ideas?
- Original GitHub BUG report: https://github.com/crow-translate/crow-translate/issues/593
Regards, Poplar
What you don't say is exactly what the problem is! Is it simply that this file is in what you (probably correctly) believe is the wrong place? Or does it stop crow-translate working or something else? As regards solving your issue, it seems to be rather specialist, so you might want to take it up with tesseract people directly e.g. as suggested on https://tesseract-ocr.github.io/tessdoc/ : "If you have a question, first read the documentation, particularly the FAQ to see if your problem is addressed there. If not, search the Issues List, Tesseract user forum, and if you still can’t find what you need, please ask your question in Tesseract user forum Google group."
Hi, Dave Howorth, This file doesn't cause crow-translate to stop working, it seems to be some kind of cache file, I don't quite understand what it is. I think the configuration files or cache files generated by the application should be stored in the appropriate directory (such as ~/.config or ~/.cache), or exist in the form of hidden files. It popped up in my user directory every time after crow-translate started, and it made me feel like there might be something wrong. Regards, Poplar.
Hi, I deleted that file and started crow-translate in terminal, here is the log file: ------ 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 ----- It looks like it should be the file in the correct location as you said. Regards, Poplar.
On Fri, 28 Jul 2023 15:02:32 -0000 "Poplar.at.twilight " <poplar.cubic@gmail.com> wrote:
Hi,
I deleted that file and started crow-translate in terminal, here is the log file:
------
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
-----
It looks like it should be the file in the correct location as you said.
Given what was said in the github issue (i.e. not reproducible) it sounds like it might be a packaging error, so I'd suggest opening an opensuse bug report if you want to get it fixed: https://en.opensuse.org/openSUSE:Submitting_bug_reports I suspect that the more you can discover about why it places that file there rather than elsewhere, and how the location can be changed, the faster it will be to get it fixed.
Regards, Poplar.
Hi, Dave Howorth, I've submitted the report, thanks for your help. https://bugzilla.opensuse.org/show_bug.cgi?id=1213764 Regards, Poplar.at.twilight.
participants (2)
-
Dave Howorth
-
Poplar.at.twilight