Assertion failed on wxRound() when zooming

Bug #1450551 reported by Berk Akinci
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
Undecided
Unassigned

Bug Description

To reproduce:
- Fresh install of Kicad
- Create new project
- Open eeschema
- maximize window
- zoom in until you get assertion.

Zooming with mouse or toolbar results in the same. Assertion details below.

Platform: Fedora 20.
Linux xxxx 3.19.5-100.fc20.x86_64 #1 SMP Mon Apr 20 19:51:16 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Kicad version:
Product, nightly build 5634
from: https://copr.fedoraproject.org/coprs/mangelajo/kicad/

Application: kicad
Version: (after 2015-apr-15 BZR unknown)-product Debug build
wxWidgets: Version 3.0.2 (debug,wchar_t,compiler with C++ ABI 1002,GCC 4.8.3,wx containers,compatible with 2.8)
Platform: Linux 3.19.5-100.fc20.x86_64 x86_64, 64 bit, Little endian, wxGTK
Boost version: 1.54.0
         USE_WX_GRAPHICS_CONTEXT=OFF
         USE_WX_OVERLAY=OFF
         KICAD_SCRIPTING=ON
         KICAD_SCRIPTING_MODULES=ON
         KICAD_SCRIPTING_WXPYTHON=ON
         USE_FP_LIB_TABLE=HARD_CODED_ON
         BUILD_GITHUB_PLUGIN=ON

ASSERT INFO:
./include/wx/math.h(127): assert "x > INT_MIN - 0.5 && x < INT_MAX + 0.5" failed in wxRound(): argument out of supported range

BACKTRACE:
[1] wxDCImpl::LogicalToDeviceXRel(int) const
[2] wxWindowDCImpl::SetPen(wxPen const&)
[3] wxWindowDCImpl::ComputeScaleAndOrigin()
[4] wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&, wxEvent&) const
[5] wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&)
[6] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*)
[7] wxEvtHandler::TryHereOnly(wxEvent&)
[8] wxEvtHandler::ProcessEventLocally(wxEvent&)
[9] wxEvtHandler::ProcessEvent(wxEvent&)
[10] wxScrollHelperEvtHandler::ProcessEvent(wxEvent&)
[11] wxEvtHandler::SafelyProcessEvent(wxEvent&)
[12] wxWindow::GTKSendPaintEvents(_GdkRegion const*)
[13] g_closure_invoke
[14] g_signal_emit_valist
[15] g_signal_emit
[16] gtk_main_do_event
[17] gdk_window_process_updates
[18] wxWindow::Update()
[19] wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&, wxEvent&) const
[20] wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&)
[21] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*)
[22] wxEvtHandler::TryHereOnly(wxEvent&)
[23] wxEvtHandler::DoTryChain(wxEvent&)
[24] wxEvtHandler::ProcessEvent(wxEvent&)
[25] wxWindowBase::TryAfter(wxEvent&)
[26] wxAuiToolBar::OnLeftUp(wxMouseEvent&)
[27] wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&, wxEvent&) const
[28] wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&)
[29] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*)
[30] wxEvtHandler::TryHereOnly(wxEvent&)
[31] wxEvtHandler::ProcessEventLocally(wxEvent&)
[32] wxEvtHandler::ProcessEvent(wxEvent&)
[33] wxEvtHandler::SafelyProcessEvent(wxEvent&)
[34] g_closure_invoke
[35] g_signal_emit_valist
[36] g_signal_emit
[37] gtk_propagate_event
[38] gtk_main_do_event
[39] g_main_context_dispatch
[40] g_main_loop_run
[41] gtk_main
[42] wxGUIEventLoop::DoRun()
[43] wxEventLoopBase::Run()
[44] wxAppConsoleBase::MainLoop()
[45] int wxString::Printf<wchar_t const*>(wxFormatString const&, wchar_t const*)
[46] wxEntry(int&, wchar_t**)
[47] __libc_start_main
[48] _start

Tags: assert
tags: added: assert
Changed in kicad:
status: New → Fix Committed
Jon Neal (reportingsjr)
Changed in kicad:
status: Fix Committed → Fix Released
Revision history for this message
Nick Østergaard (nickoe) wrote :

Fixed in 5a02b91e5f20265a169fbb99f67c07eb7a7b6789

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.