USDX icon indicating copy to clipboard operation
USDX copied to clipboard

Perfomance issue and crashing when using japanse song

Open rakuri255 opened this issue 1 year ago • 4 comments

Actual behaviour

  1. if japanese symbols ar in filename, then the song will not be found in 2023.05. In 2020.04. however it works.
  2. 4k video perfomance problems when file has japanese lyrics. CPU/GPU usage is at 1%. Same video has no problems when placed in english lyric song.
  3. crash in the middle of the song. Maybe unknown japanse symbol at (-2.38)

Expected behaviour

  1. File with japanse symbols should be found and displayed
  2. No video perfomance issues when the song has japanse lyrics
  3. Catch unknown symbols

Steps to reproduce

See attached .txt file. See attached exception for 2023.05

Details

Provide some additional information:

  • USDX version: 2020.04 + 2023.05
  • Operating System: Windows:

YOASOBI「アイドル」 Official Music Video.txt

Exception 2023 05

rakuri255 avatar Jun 01 '23 18:06 rakuri255

Maybe there's a need for UTF-8 to be enabled in windows? Control panel -> Language & Region -> 2nd tab -> advanced (2nd button) -> Hit the checkbox image

Baklap4 avatar Jun 02 '23 07:06 Baklap4

The download has changed name. Rename it to "YOASOBI「アイドル」 Official Music Video.txt"

rakuri255 avatar Jun 02 '23 08:06 rakuri255

Did you configure a special font?

Line 2408 of base/UFonst.pas is

SetLength(TexBuffer, fTexSize.Width * fTexSize.Height);

The exception happens because fTexSize.Width * fTexSize.Height doesn't fit into 32 bits. The maximum values I get for fTexSize.Width and fTexSize.Height during this song are 128.

Can you try this build?: https://ci.appveyor.com/project/s09bQ5/usdx/builds/47217954/job/hjwu062fpnvyfnqv/artifacts Nothing changed wrt. file names, but the new DLLs for FreeType and FFmpeg might help.

s09bQ5 avatar Jun 11 '23 13:06 s09bQ5

@Baklap4 there is no difference.

@s09bQ5 Now 2 of 3 works :D

  • Perfomance problem is solved!
  • No crashes!
  • As you described filename issue is still there.

rakuri255 avatar Jun 14 '23 22:06 rakuri255