Description of problem: Drakfont crashes if I run "drakfont --windows_import". I can import fonts from Windows using the graphical interface without any problem. It happens with a normal user and the root. Here is the provided backtrace: The "drakfont" program has crashed with the following error: Can't call method "get_fraction" on an undefined value at /usr/sbin/drakfont line 785. Perl's trace: standalone::bug_handler() called from /usr/sbin/drakfont:785 main::progress() called from /usr/sbin/drakfont:217 main::search_windows_font() called from /usr/sbin/drakfont:450 main::backend_mod() called from /usr/sbin/drakfont:516 How reproducible: Always Steps to Reproduce: 1. Open a console 2. Run: drakfont --windows_import Reproducible: Steps to Reproduce:
Assignee: bugsquad => thierry.vignaud
It also happens in Mageia 2.
I've been doing some research: I made it run well by commenting line 217 of drakfont: # progress($pbar, 0.25 / $nb_dir, N("parse all fonts")); This way the program imports correctly all the Windows fonts. Instead of showing a progress bar it shows a huge amount of messages related to what it is doing. The arguments used to call the progress function are different if I run it with the GUI of if I do it from console with --windows_import: --With the GUI: $pbar = Gtk2::ProgressBar=HASH(0x3374a28) $nb_dir = 690 --With the option --windows_import: $pbar = undef $nb_dir = 690 It seems that the progress bar is not defined properly when I run it from console. It might have an easy solution now, but I don't know how to proceed. Thanks
Summary: drakfont crashes if I run "drakfont --windows_import" => drakfont crashes if I run "drakfont --windows_import" (Can't call method "get_fraction" on an undefined value at drakfont line 785)
Thanks. Bug fixed in my local git
Status: NEW => RESOLVEDResolution: (none) => FIXED