FS#56036 - [wxmaxima] triggers no valid font error when rendering math expressions
Attached to Project:
Arch Linux
Opened by Ian Sage (ian11213) - Wednesday, 18 October 2017, 14:56 GMT
Last edited by Antonio Rojas (arojas) - Thursday, 19 October 2017, 10:17 GMT
Opened by Ian Sage (ian11213) - Wednesday, 18 October 2017, 14:56 GMT
Last edited by Antonio Rojas (arojas) - Thursday, 19 October 2017, 10:17 GMT
|
Details
Description:
Entering an expression in wxmaxima gives an error alert when 2d rendering (fractions, integrals) is required. The error message appears in wxmaxima 17.10.0-1, downgrading to 17.05.1-1 (without changing the maxima version from 5.41.0-1) clears the problem. Steps to reproduce: Start wxmaxima, enter: 'integrate(sin(x), x, 0 %pi); <shift-Enter> gives error. The screen display is also mangled. The error box gives: ASSERT INFO: ./src/generic/graphicc.cpp(2085): assert "!m_font.IsNull()" failed in DoDrawText(): wxCairoContext::DrawText - no valid font set BACKTRACE: [1] wxCairoContext::DoDrawText(wxString const&, double, double) [2] wxGCDCImpl::DoDrawText(wxString const&, int, int) [3] Configuration::CharsExistInFont(wxFont, wxString, wxString, wxString) [4] Configuration::GetGrouphesisDrawMode() [5] ParenCell::RecalculateWidths(int) [6] MathCell::RecalculateWidthsList(int) [7] FunCell::RecalculateWidths(int) [8] MathCell::RecalculateWidthsList(int) [9] IntCell::RecalculateWidths(int) [10] MathCtrl::InsertLine(MathCell*, bool) [11] wxMaxima::DoConsoleAppend(wxString, int, bool, bool, wxString) [12] wxMaxima::ConsoleAppend(wxString, int, wxString) [13] wxMaxima::ReadMath(wxString&) [14] wxMaxima::ClientEvent(wxSocketEvent&) [15] wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) [16] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) [17] wxEvtHandler::TryHereOnly(wxEvent&) [18] wxEvtHandler::ProcessEventLocally(wxEvent&) [19] wxEvtHandler::ProcessEvent(wxEvent&) [20] wxEvtHandler::ProcessPendingEvents() [21] wxAppConsoleBase::ProcessPendingEvents() [22] wxApp::DoIdle() [23] g_main_context_dispatch [24] g_main_loop_run [25] gtk_main [26] wxGUIEventLoop::DoRun() [27] wxEventLoopBase::Run() [28] wxAppConsoleBase::MainLoop() [29] wxEntry(int&, wchar_t**) [30] main [31] __libc_start_main [32] _start Clearing the "Show this dialog next time" box and clicking Continue, gives correct operation for the remainder of the session. |
This task depends upon
Closed by Antonio Rojas (arojas)
Thursday, 19 October 2017, 10:17 GMT
Reason for closing: Fixed
Additional comments about closing: wxmaxima 17.10.0-2
Thursday, 19 October 2017, 10:17 GMT
Reason for closing: Fixed
Additional comments about closing: wxmaxima 17.10.0-2
Comment by Antonio Rojas (arojas) -
Wednesday, 18 October 2017, 19:05 GMT
Works fine here, in two different systems. As the error suggests,
have you set a valid font in the settings?
Comment by Ian Sage (ian11213) -
Wednesday, 18 October 2017, 22:47 GMT
Strange. Yes, I have fonts selected in the "style" menu of
wxmaxima, and I have jsMath fonts installed and selected for use.
Also, everything works OK in the earlier 17.05 version with the
same settings, and in the latest 17.10 version after clearing the
"Show dialog" tick box and clicking continue. Is there anywhere
else I should check font settings? Thanks! Ian
Comment by Antonio Rojas (arojas) -
Thursday, 19 October 2017, 06:17 GMT
Please try installing ttf-linux-libertine
Comment by Ian Sage (ian11213) -
Thursday, 19 October 2017, 10:03 GMT
That seems to have fixed it - many thanks!