Wings 3D Development Forum
[fixed] text failed - Printable Version

+- Wings 3D Development Forum (https://www.wings3d.com/forum)
+-- Forum: Wings 3D (https://www.wings3d.com/forum/forumdisplay.php?fid=1)
+--- Forum: Bug Reports (https://www.wings3d.com/forum/forumdisplay.php?fid=12)
+--- Thread: [fixed] text failed (/showthread.php?tid=2821)



[fixed] text failed - Hank - 06-09-2019

hi there,

Linux Mint 19

I wanted to check new font but there's message: text failed: failed to locate the TTF file for selected font
anyhow, I type my text and click OK.
Then I get:

Dump written 2019-6-9_20-16
Version: 2.2.3
Window: [wings,wings,<0.87.0>]
Reason: {{badarg,2624},{wxDialog,new_4,4}}

Stack trace:
[{wxe_util,rec,1,[{file,"wxe_util.erl"},{line,84}]},
{wings_dialog,'-build_dialog/3-fun-0-',3,
[{file,"wings_dialog.erl"},{line,819}]},
{wx,batch,1,[{file,"wx.erl"},{line,184}]},
{wings_dialog,dialog_1,5,[{file,"wings_dialog.erl"},{line,267}]},
{wings_wm,handle_event,3,[{file,"wings_wm.erl"},{line,990}]},
{wings_wm,send_event,2,[{file,"wings_wm.erl"},{line,951}]},
{wings_wm,do_dispatch,2,[{file,"wings_wm.erl"},{line,852}]},
{wings_wm,dispatch_event,1,[{file,"wings_wm.erl"},{line,761}]},
{wings_wm,get_and_dispatch,0,[{file,"wings_wm.erl"},{line,657}]},
{wings,init_part2,2,[{file,"wings.erl"},{line,106}]},
{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,249}]}]

BR, Hank


RE: text failed - micheus - 10-05-2019

Hank, can you please tell me if this is still present in v2.2.4?
If so, can you share the font name of is that unrelated?


RE: text failed - giaco - 10-07-2019

hi Micheus and Hank,
I was going to report this too, I'm using v2.2.4 - gnome 3.34.
I have the same issue with all the fonts, ttf and otf,
and if I just left click in the menu to add a text object, wings3d crashes immediately.


RE: text failed - dgud - 10-09-2019

Thanks.

Confirmed, I have managed to replicate Hank's problem sometimes,
it seems to be some timing issue with the error dialog or something will do some digging.

Giaco do you have the same crash report?
Sounds like another problem can you post the crash report.


RE: text failed - giaco - 10-09-2019

Dgud,
I'm new to w3d and last week I tried the text menu only few times, today after several attempts the left click crash happened only one time and I don't know how reproduce it:

Dump written 2019-10-9_13-50
Version: 2.2.4
Window: [wings,wings,<0.88.0>]
Reason: {{badarg,2540},{wxDialog,new_4,4}}

Stack trace:
[{wxe_util,rec,1,[{file,"wxe_util.erl"},{line,84}]},
{wings_dialog,'-build_dialog/3-fun-0-',3,
[{file,"wings_dialog.erl"},{line,819}]},
{wx,batch,1,[{file,"wx.erl"},{line,184}]},
{wings_dialog,dialog_1,5,[{file,"wings_dialog.erl"},{line,267}]},
{wings_wm,handle_event,3,[{file,"wings_wm.erl"},{line,990}]},
{wings_wm,send_event,2,[{file,"wings_wm.erl"},{line,951}]},
{wings_wm,do_dispatch,2,[{file,"wings_wm.erl"},{line,852}]},
{wings_wm,dispatch_event,1,[{file,"wings_wm.erl"},{line,761}]},
{wings_wm,get_and_dispatch,0,[{file,"wings_wm.erl"},{line,657}]},
{wings,init_part2,2,[{file,"wings.erl"},{line,106}]},
{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,249}]}]

I don't have crashes with the text submenu but it doesn't work, everything I try I get the warning message window.
The fonts are located in /usr/share/fonts/ and I discovered they're all otf, I've other open source ttf fonts installed in /home/.local/share/fonts/
thanks and regards


RE: text failed - micheus - 10-09-2019

Thanks for the report giaco.

dgud, the report suggests a possible problems in wx library module, but the LMB option shouldn't create a dialog. Also, I can't get it using Windows, so it looks ike a Linux issue only.


RE: text failed - dgud - 10-09-2019

I have fixed the problem already and to search for ttf fonts in /home/User/.local/share/fonts

I have not fixed using otf fonts though Undecided


RE: [fixed] text failed - dgud - 11-27-2019

Have implemented support for (some) otf fonts as well, fixed in the next release.


RE: [fixed] text failed - sandman - 12-05-2019

Came to ask for help with this one as well. I guess I'll sit tight until there's a new release. Thanks for the hard work.