Unhandled Exception in dcpomatic2_create.exe: boost::filesystem::path codecvt to wstring Error

Anything and everything to do with DCP-o-matic.
lijun
Posts: 10
Joined: Wed Apr 26, 2023 9:16 am

Unhandled Exception in dcpomatic2_create.exe: boost::filesystem::path codecvt to wstring Error

Post by lijun »

Hello,

I am encountering an issue when using dcpomatic2_create.exe from DCP-o-matic version 2.16.87 . The error occurs when I try to create a DCP project with paths that contain non-ASCII characters, specifically Chinese characters.

Steps to Reproduce:
Install DCP-o-matic 2.16.87.
Run the following command in the command prompt:

Code: Select all

C:\enctool>"C:\Program Files\DCP-o-matic 2\bin\dcpomatic2_create.exe" -v
dcpomatic version 2.16.87 7e1e6564c6

C:\enctool>"C:\Program Files\DCP-o-matic 2\bin\dcpomatic2_create.exe"  -o E:\清流\dcmp\ede78212-037f-48db-a63b-4d5161147ab0\tmp-QiHuanSenLin E:\清流\dcmp\ede78212-037f-48db-a63b-4d5161147ab0\QiHuanSenLin
terminate caught unhandled exception. what(): boost::filesystem::path codecvt to wstring: error [codecvt:2]
Additional Information:
Both the input and output paths contain Chinese characters.
The command works fine with paths that contain only ASCII characters.
Environment:
OS: Windows
Locale: Chinese (Simplified, China)
This issue seems to be related to the handling of non-ASCII characters in file paths within the Boost filesystem library. Could you please look into this issue and provide a fix or workaround?

Thank you for your assistance!
carl
Site Admin
Posts: 2550
Joined: Thu Nov 14, 2013 2:53 pm

Re: Unhandled Exception in dcpomatic2_create.exe: boost::filesystem::path codecvt to wstring Error

Post by carl »

Hi, please could you test this build to see if it works any better?

https://dcpomatic.com/temp/2844-args/fe ... taller.exe
lijun
Posts: 10
Joined: Wed Apr 26, 2023 9:16 am

Re: Unhandled Exception in dcpomatic2_create.exe: boost::filesystem::path codecvt to wstring Error

Post by lijun »

yes, works better.

Code: Select all

"C:\Program Files\DCP-o-matic 2\bin\dcpomatic2_create.exe" -v
dcpomatic version fefcccd52 fefcccd526

C:\enctool>"C:\Program Files\DCP-o-matic 2\bin\dcpomatic2_create.exe"  -o F:\清流\dcmp\ede78212-037f-48db-a63b-4d5161147ab0\tmp-QiHuanSenLin F:\清流\dcmp\ede78212-037f-48db-a63b-4d5161147ab0\QiHuanSenLin

C:\enctool>dir F:\清流\dcmp\ede78212-037f-48db-a63b-4d5161147ab0\tmp-QiHuanSenLin
 驱动器 F 中的卷是 BANQ
 卷的序列号是 C29A-1752

 F:\清流\dcmp\ede78212-037f-48db-a63b-4d5161147ab0\tmp-QiHuanSenLin 的目录

2024/07/06  22:34    <DIR>          .
2024/07/06  22:34    <DIR>          ..
2024/07/06  22:34             1,773 log
2024/07/06  22:34    <DIR>          analysis
2024/07/06  22:34             8,142 metadata.xml
               2 个文件          9,915 字节
               3 个目录 254,924,554,240 可用字节
carl
Site Admin
Posts: 2550
Joined: Thu Nov 14, 2013 2:53 pm

Re: Unhandled Exception in dcpomatic2_create.exe: boost::filesystem::path codecvt to wstring Error

Post by carl »

Thanks for checking. I'll make a new release with that fix soon.
lijun
Posts: 10
Joined: Wed Apr 26, 2023 9:16 am

Re: Unhandled Exception in dcpomatic2_create.exe: boost::filesystem::path codecvt to wstring Error

Post by lijun »

with current latest version 2.16.88 30dfb15109
The dcpomatic2_cli.exe program appears to be functioning abnormally.

Code: Select all

"C:\Program Files\DCP-o-matic 2\bin\dcpomatic2_create.exe" -o c:\mov_test\清流输出\tmp-Dcptest1_FTR-1-30_F-56_XX-XX_20_4K_20230423_SMPTE_OV c:\mov_test\清流输出\Dcptest1_FTR-1-30_F-56_XX-XX_20_4K_20230423_SMPTE_OV

C:\dev\filencryption>"C:\Program Files\DCP-o-matic 2\bin\dcpomatic2_cli.exe" --export-format mp4 --export-filename c:\mov_test\清流输出\Dcptest1_FTR-1-30_F-56_XX-XX_20_4K_20230423_SMPTE_OV.mp4 c:\mov_test\清流输出\tmp-Dcptest1_FTR-1-30_F-56_XX-XX_20_4K_20230423_SMPTE_OV
C:\Program Files\DCP-o-matic 2\bin\dcpomatic2_cli.exe: error reading film `c:\mov_test\濞撳懏绁︽潏鎾冲毉\tmp-Dcptest1_FTR-1-30_F-56_XX-XX_20_4K_20230423_SMPTE_OV' (File c:\mov_test\濞撳懏绁︽潏鎾冲毉\tmp-Dcptest1_FTR-1-30_F-56_XX-XX_20_4K_20230423_SMPTE_OV\metadata.xml not found)
carl
Site Admin
Posts: 2550
Joined: Thu Nov 14, 2013 2:53 pm

Re: Unhandled Exception in dcpomatic2_create.exe: boost::filesystem::path codecvt to wstring Error

Post by carl »

Thanks. Fix coming up.
carl
Site Admin
Posts: 2550
Joined: Thu Nov 14, 2013 2:53 pm

Re: Unhandled Exception in dcpomatic2_create.exe: boost::filesystem::path codecvt to wstring Error

Post by carl »

Hopefully fixed in 2.16.89 - let me know if not!
lijun
Posts: 10
Joined: Wed Apr 26, 2023 9:16 am

Re: Unhandled Exception in dcpomatic2_create.exe: boost::filesystem::path codecvt to wstring Error

Post by lijun »

fixed, thank you.