xiaoyifang / goldendict-ng

The Next Generation GoldenDict
https://xiaoyifang.github.io/goldendict-ng/
Other
1.53k stars 83 forks source link

Particular dictionary audio pronunciation crash on Arch linux #1376

Open BEST8OY opened 6 months ago

BEST8OY commented 6 months ago

Describe the bug Particular dictionary audio pronunciation cause crash on Arch Linux

To Reproduce Steps to reproduce the behavior:

  1. Add the dictionary
  2. search a word
  3. try the pronunciation ( it only happens in word pronunciation and sentence pronunciation is alright!)

Affected Dictionaries Link To Dictionary OS and software versions

Goldendict-ng 24.01.22 at 2024-01-23T17:36:50 Qt 6.6.1 GCC 13.2.1 20230801 arch linux 6.7.0-arch3-1 x86_64-little_endian-lp64 Flags:USE_XAPIAN MAKE_ZIM_SUPPORT USE_ICONV MAKE_CHINESE_CONVERSION_SUPPORT

Additional context It has no issue on Windows 11

LOG

send dicts(stemmed): "groupId:0,word:image/audio_name_initial.svg,dictId:"
====reading  3161 of (3161) bytes . Finished: 0
====reading  0 of (3161) bytes . Finished: 0
====reading  0 of (3161) bytes . Finished: 0
====reading  0 of (3161) bytes . Finished: 0
====reading  389 of (3550) bytes . Finished: 1
article view loaded url: "gdlookup://localhost/?word=contraceptive&group=4294967294&muted=3c5e49734b7db41600488fab9321af2d,b82de941a7e4bcdcdc22af43285ec96e,36fd95f84540c3b0fb0c4866ffd8ae5b,4a3d1347da96b57b89170b93241da759,e8bb" true
js: Canvas2D: Multiple readback operations using getImageData are faster with the willReadFrequently attribute set to true. See: https://html.spec.whatwg.org/multipage/canvas.html#concept-canvas-will-read-frequently
open link url: QUrl("gdau://5895fa4cbffa2ccb49e21ab906392522/xcontraceptive__gb_1.mp3")
getResource: "gdau://5895fa4cbffa2ccb49e21ab906392522/xcontraceptive__gb_1.mp3"
scheme: "gdau"
host: "5895fa4cbffa2ccb49e21ab906392522"
QFSFileEngine::map: Mapping a file beyond its size is not portable
xiaoyifang commented 6 months ago

goldendict-ng use QMultimedia to play the audio . the crash is more likely a qt bug.

you can configure the external audio player in the preference ->audio tab

xiaoyifang commented 6 months ago

https://bugreports.qt.io/browse/QTBUG-16285

BEST8OY commented 6 months ago

you can configure the external audio player in the preference ->audio tab

I'm not sure, because I get the same behavior with ffplay -autoexit -nodisp

xiaoyifang commented 6 months ago

can you save the audio and upload the audio file here?

BEST8OY commented 6 months ago

can you save the audio and upload the audio file here?

Well it seems I can't even save the sound!

send dicts(stemmed): "groupId:0,word:image/audio_name_initial.svg,dictId:"
====reading  3161 of (3161) bytes . Finished: 0
====reading  0 of (3161) bytes . Finished: 0
====reading  0 of (3161) bytes . Finished: 0
====reading  0 of (3161) bytes . Finished: 0
====reading  389 of (3550) bytes . Finished: 1
js: Access to fetch at 'https://dictionary.cambridge.org/external/images/cdo-sprite.png?version=5.0.365' from origin 'gdlookup://localhost' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
js: TypeError: Failed to fetch
getResource: "gdau://5895fa4cbffa2ccb49e21ab906392522/pallor__us_1.mp3"
scheme: "gdau"
host: "5895fa4cbffa2ccb49e21ab906392522"
title =  "pallor"
QFSFileEngine::map: Mapping a file beyond its size is not portable
zsh: bus error (core dumped)  goldendict