View Bug Details

IDProjectCategoryView StatusLast Update
0000491DCP-o-maticBugspublic2023-09-01 21:52
Reportercarl Assigned Tocarl  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Platform64 bitOSWindowsOS Version7
Product Version2.0.x 
Target Version2.16.16 
Summary0000491: Cannot set fonts for subtitles in Windows
Description

When i try to open one, there is no Fonts Folder in the windows folder. I think this has to do because the font folder is something special in win7...

TagsNo tags attached.
Branch491-system-fonts
Estimated weeks required
Estimated work requiredUndecided

Activities

carl

2015-08-18 22:12

administrator   ~0000810

This is an acknowledged problem with wxFileDialog. Not sure what to do about it. It works OK with .ttf outside c:\Windows\Fonts but not inside that magic folder.

We could have a "use system font" which offered a manually-assembled list from c:\windows\fonts or /usr/share/fonts or whever, then a file dialog for fonts in other places. This might be the best we can do.

carl

2015-08-18 23:38

administrator   ~0000811

fe6921ea758a84d3982180cb2a8e6d95be9cf732

carl

2022-05-30 22:59

administrator   ~0005046

Last edited: 2022-05-30 23:07

At some point this has re-surfaced; SystemFontDialog is still there, but nobody is calling it.

carl

2022-05-30 23:07

administrator   ~0005047

Looks like f77ec143719c86ddbf098bff6d19fe2a159b8c3e broke it in v2.13.110

carl

2022-05-31 01:11

administrator   ~0005049

Branch looks OK but selecting bahnschrift.ttf reliably crashes DoM.

carl

2022-05-31 01:15

administrator   ~0005050

Same font seems OK on Linux.

carl

2022-07-02 09:33

administrator   ~0005126


#0  0x00007ff9dcd6a313 in ntdll!RtlRegisterSecureMemoryCacheCallback () from C:\WINDOWS\SYSTEM32\ntdll.dll
0000001  0x00007ff9dcd2cd24 in ntdll!memset () from C:\WINDOWS\SYSTEM32\ntdll.dll
0000002  0x00007ff9dcd691c1 in ntdll!RtlRegisterSecureMemoryCacheCallback () from C:\WINDOWS\SYSTEM32\ntdll.dll
0000003  0x00007ff9dcc95cc1 in ntdll!RtlGetCurrentServiceSessionId () from C:\WINDOWS\SYSTEM32\ntdll.dll
0000004  0x00007ff9dcc95b74 in ntdll!RtlGetCurrentServiceSessionId () from C:\WINDOWS\SYSTEM32\ntdll.dll
0000005  0x00007ff9dcc947b1 in ntdll!RtlFreeHeap () from C:\WINDOWS\SYSTEM32\ntdll.dll
0000006  0x00007ff9db719c9c in msvcrt!free () from C:\WINDOWS\System32\msvcrt.dll
0000007  0x00007ff99d939bfb in cairo_ft_apply_variations () from C:\Program Files\DCP-o-matic 2 debug\bin\libcairo-2.dll
0000008  0x00007ff99d93bd66 in cairo_ft_scaled_font_lock_face () from C:\Program Files\DCP-o-matic 2 debug\bin\libcairo-2.dll
0000009  0x00007ff99acc6740 in _pango_fc_shape (font=<optimized out>, item_text=0x2dbe5e2bb60 "This is a subtitle, and it göeß", item_length=33, analysis=0x2dbe3407890, glyphs=0x2dbe3405680, paragraph_text=0x2dbe5e2bb60 "This is a subtitle, and it göeß", paragraph_length=33) at pangofc-shape.c:296
0000010 0x00007ff9a4b5fc62 in pango_shape_full (item_text=0x2dbe5e2bb60 "This is a subtitle, and it göeß", item_length=33, paragraph_text=<optimized out>, paragraph_length=33, analysis=0x2dbe3407890, glyphs=0x2dbe3405680) at shape.c:116
0000011 0x00007ff9a4b51cd8 in shape_run (line=line@entry=0x2dbe3408480, state=state@entry=0xed647fe8f0, item=item@entry=0x2dbe3407880) at pango-layout.c:3296
0000012 0x00007ff9a4b528d5 in process_item (layout=layout@entry=0x2dbe3406420, line=line@entry=0x2dbe3408480, state=state@entry=0xed647fe8f0, force_fit=force_fit@entry=1, no_break_at_end=no_break_at_end@entry=0) at pango-layout.c:3409
0000013 0x00007ff9a4b54d9a in process_line (state=0xed647fe8f0, layout=0x2dbe3406420) at pango-layout.c:3708
0000014 pango_layout_check_lines (layout=0x2dbe3406420) at pango-layout.c:4036
0000015 0x00007ff9a4b56a6f in pango_layout_get_extents_internal (layout=0x2dbe3406420, ink_rect=0x0, logical_rect=0xed647feb10, line_extents=0x0) at pango-layout.c:2590
0000016 0x00007ff9a4b56ffb in pango_layout_get_extents (logical_rect=0xed647feb10, ink_rect=0x0, layout=0x2dbe3406420) at pango-layout.c:2785
0000017 pango_layout_get_pixel_extents (layout=0x2dbe3406420, ink_rect=0x0, logical_rect=0xed647feb10) at pango-layout.c:2811
0000018 0x00007ff9a4b57068 in pango_layout_get_pixel_size (layout=<optimized out>, width=0xed647febf0, height=0xed647febf4) at pango-layout.c:2860
0000019 0x00007ff9bd2c9ea5 in Pango::Layout::get_pixel_size(int&, int&) const () from C:\Program Files\DCP-o-matic 2 debug\bin\libpangomm-1.4-1.dll
0000020 0x00007ff724bd95cc in render_line (subtitles=..., target=..., time=..., frame_rate=24) at ../src/lib/render_text.cc:294
0000021 0x00007ff724bda09f in render_text (subtitles=..., target=..., time=..., frame_rate=24) at ../src/lib/render_text.cc:383
0000022 0x00007ff724bb2dac in Player::open_subtitles_for_frame (this=0x2dbe5fbf480, time=...) at ../src/lib/player.cc:882
0000023 0x00007ff724bb76a9 in Player::do_emit_video (this=0x2dbe5fbf480, pv=..., time=...) at ../src/lib/player.cc:1340
0000024 0x00007ff724bb7591 in Player::emit_video (this=0x2dbe5fbf480, pv=..., time=...) at ../src/lib/player.cc:1327
0000025 0x00007ff724bb1667 in Player::pass (this=0x2dbe5fbf480) at ../src/lib/player.cc:727
0000026 0x00007ff724a3852e in Butler::thread (this=0x2dbe5fc1990) at ../src/lib/butler.cc:213
0000027 0x00007ff724fb6345 in boost::_mfi::mf0<void, Butler>::operator() (this=0x2dbe33a83a8, p=0x2dbe5fc1990) at /opt/mxe/usr/x86_64-w64-mingw32.shared/include/boost/bind/mem_fn_template.hpp:49
0000028 0x00007ff724e22849 in boost::_bi::list1<boost::_bi::value<Butler*> >::operator()<boost::_mfi::mf0<void, Butler>, boost::_bi::list0> (this=0x2dbe33a83b8, f=..., a=...) at /opt/mxe/usr/x86_64-w64-mingw32.shared/include/boost/bind/bind.hpp:238
0000029 0x00007ff724e37d63 in boost::_bi::bind_t<void, boost::_mfi::mf0<void, Butler>, boost::_bi::list1<boost::_bi::value<Butler*> > >::operator() (this=0x2dbe33a83a8) at /opt/mxe/usr/x86_64-w64-mingw32.shared/include/boost/bind/bind.hpp:1273
0000030 0x00007ff724e82a1e in boost::detail::thread_data<boost::_bi::bind_t<void, boost::_mfi::mf0<void, Butler>, boost::_bi::list1<boost::_bi::value<Butler*> > > >::run (this=0x2dbe33a8310) at /opt/mxe/usr/x86_64-w64-mingw32.shared/include/boost/thread/detail/thread.hpp:120
0000031 0x00007ff9a7b82235 in boost::(anonymous namespace)::thread_start_function(void*) () from C:\Program Files\DCP-o-matic 2 debug\bin\libboost_thread-mt-x64.dll
0000032 0x00007ff9db73af5a in msvcrt!_beginthreadex () from C:\WINDOWS\System32\msvcrt.dll
0000033 0x00007ff9db73b02c in msvcrt!_endthreadex () from C:\WINDOWS\System32\msvcrt.dll
0000034 0x00007ff9db547034 in KERNEL32!BaseThreadInitThunk () from C:\WINDOWS\System32\kernel32.dll
0000035 0x00007ff9dccc2651 in ntdll!RtlUserThreadStart () from C:\WINDOWS\SYSTEM32\ntdll.dll
0000036 0x0000000000000000 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)```

carl

2022-07-02 19:04

administrator   ~0005127

Crash fixed by bumping cairo to 1.17.4.

Bug History

Date Modified Username Field Change
2015-02-07 23:26 carl New Bug
2015-02-24 15:38 carl Status new => acknowledged
2015-07-08 14:16 carl Target Version => 1.x
2015-07-08 16:10 carl Estimated work required => Average
2015-07-08 16:10 carl Target Version 1.x => 2.x
2015-08-18 18:51 carl Target Version 2.x => 2.2.0
2015-08-18 22:12 carl Note Added: 0000810
2015-08-18 23:38 carl Note Added: 0000811
2015-08-18 23:38 carl Status acknowledged => resolved
2015-08-18 23:38 carl Resolution open => fixed
2015-08-18 23:38 carl Assigned To => carl
2016-05-31 23:56 carl Status resolved => closed
2022-05-30 22:59 carl Status closed => confirmed
2022-05-30 22:59 carl Target Version 2.2.0 => 2.16.14
2022-05-30 22:59 carl Estimated work required Average => Undecided
2022-05-30 22:59 carl Note Added: 0005046
2022-05-30 23:07 carl Note Added: 0005047
2022-05-30 23:07 carl Note Edited: 0005046
2022-05-30 23:29 carl Branch => 491-system-fonts
2022-05-31 01:11 carl Note Added: 0005049
2022-05-31 01:15 carl Note Added: 0005050
2022-06-10 22:34 carl Target Version 2.16.14 => 2.16.15
2022-06-21 18:25 carl Target Version 2.16.15 => 2.16.16
2022-06-28 11:41 carl Status confirmed => in progress
2022-07-02 09:33 carl Note Added: 0005126
2022-07-02 19:04 carl Status in progress => resolved
2022-07-02 19:04 carl Note Added: 0005127
2023-09-01 21:52 carl Status resolved => closed