← Back to team overview

kicad-developers team mailing list archive

Re: [5.1.5] i965: Failed to submit batchbuffer

 

Eeli Kaikkonen a écrit :
> Have you tried an internet search?
> 
> https://bugs.freedesktop.org/show_bug.cgi?id=107147

	Hello,

	I have done some tests as Linux kernel issue you have shown is not
mine. In a first time, I have no error in dmesg and GPU runs as
expected. glxinfo, glxgears and all other GL applications don't crash.
My running kernel is :

hilbert:[~/git/kicad-build-debug/build/bin] > uname -a
Linux hilbert 5.4.0-4-amd64 #1 SMP Debian 5.4.19-1 (2020-02-13) x86_64
GNU/Linux

	I have rebuilt kicad (5.99) with debug options. Kicad aborts with :

Missing GetBoundingBox()
Missing GetBoundingBox()
Missing GetBoundingBox()
Missing GetBoundingBox()
Missing GetBoundingBox()
Missing GetBoundingBox()
i965: Failed to submit batchbuffer: Aucun espace disponible sur le
périphérique
Erreur de segmentation (core dumped)

	Core gives a backtrace but I don't know wx or GL to fix it :

(gdb) bt
#0  0x000056395e558160 in  ()
#1  0x00007f975fd61f9c in wxMBConv::FromWChar(char*, unsigned long,
wchar_t const*, unsigned long) const () at
/usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#2  0x00007f975fd6dfc8 in wxString::AsChar(wxMBConv const&) const ()
    at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#3  0x00007f975fd1e8e3 in  () at
/usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#4  0x00007f975fd200c6 in  () at
/usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#5  0x00007f975fd2351b in wxFileName::DirExists() const ()
    at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#6  0x000056395e2a2855 in
JSON_SETTINGS::SaveToFile(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)
    (this=0x56395e625990,
aDirectory="\340\256T^9V\000\000p\207\355^9V\000\000config/kicad/5.90")
    at /home/bertrand/git/kicad/common/settings/json_settings.cpp:211
#7  0x000056395e2c10ea in SETTINGS_MANAGER::FlushAndRelease(JSON_SETTINGS*)
    (this=0x56395e649780, aSettings=0x56395e625990)
    at /home/bertrand/git/kicad/common/settings/settings_manager.cpp:147
#8  0x000056395e1e4811 in BIN_MOD::End() (this=0x56395e4e1bb0 <program+304>)
    at /home/bertrand/git/kicad/common/bin_mod.cpp:74
#9  0x000056395e19d0a0 in PGM_KICAD::Destroy() (this=0x56395e4e1a80
<program>)
    at /home/bertrand/git/kicad/kicad/kicad.cpp:211
#10 0x000056395e19e1a7 in PGM_KICAD::~PGM_KICAD()
    (this=0x56395e4e1a80 <program>, __in_chrg=<optimized out>)
    at /home/bertrand/git/kicad/kicad/pgm_kicad.h:48
#11 0x00007f975f6bf600 in __run_exit_handlers
    (status=1, listp=0x7f975f83c718 <__exit_funcs>,
run_list_atexit=run_list_atexit@entry=true,
run_dtors=run_dtors@entry=true) at exit.c:108
#12 0x00007f975f6bf73a in __GI_exit (status=<optimized out>) at exit.c:139
#13 0x00007f9740166234 in  () at /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#14 0x00007f974014973b in  () at /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#15 0x00007f97403e4763 in  () at /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#16 0x00007f97403e4a68 in  () at /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#17 0x00007f972d84e052 in KIGFX::GPU_CACHED_MANAGER::EndDrawing()
    (this=0x56396a441990)
    at /home/bertrand/git/kicad/common/gal/opengl/gpu_manager.cpp:183
#18 0x00007f972d84caa1 in KIGFX::VERTEX_MANAGER::EndDrawing() const
    (this=0x56396a441330)
    at /home/bertrand/git/kicad/common/gal/opengl/vertex_manager.cpp:250
#19 0x00007f972d83a3ca in KIGFX::OPENGL_GAL::endDrawing()
(this=0x56395eaa9600)
    at /home/bertrand/git/kicad/common/gal/opengl/opengl_gal.cpp:534
#20 0x00007f972d697658 in KIGFX::GAL_DRAWING_CONTEXT::~GAL_DRAWING_CONTEXT()
    (this=0x563969afa4f0, __in_chrg=<optimized out>)
    at
/home/bertrand/git/kicad/include/gal/graphics_abstraction_layer.h:1224
#21 0x00007f972d822311 in EDA_DRAW_PANEL_GAL::onPaint(wxPaintEvent&)
    (this=0x563961051b20)
    at /home/bertrand/git/kicad/common/draw_panel_gal.cpp:177
#22 0x00007f975fe29231 in
wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&,
wxEvtHandler*, wxEvent&) ()
    at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#23 0x00007f975fe295aa in wxEvtHandler::SearchDynamicEventTable(wxEvent&) ()
    at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#24 0x00007f975fe29640 in wxEvtHandler::TryHereOnly(wxEvent&) ()
    at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#25 0x00007f975fe296f3 in wxEvtHandler::ProcessEventLocally(wxEvent&) ()
    at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#26 0x00007f975fe29791 in wxEvtHandler::ProcessEvent(wxEvent&) ()
    at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#27 0x00007f975fe2a13e in wxEvtHandler::ProcessPendingEvents() ()
    at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#28 0x00007f975fcaff8f in wxAppConsoleBase::ProcessPendingEvents() ()
    at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#29 0x00007f97601b5379 in wxApp::DoIdle() ()
    at /usr/lib/x86_64-linux-gnu/libwx_gtk3u_core-3.0.so.0
#30 0x00007f97601b5473 in  ()
    at /usr/lib/x86_64-linux-gnu/libwx_gtk3u_core-3.0.so.0
#31 0x00007f975ebc1dfe in g_main_context_dispatch ()
    at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#32 0x00007f975ebc21b0 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#33 0x00007f975ebc2483 in g_main_loop_run ()
    at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#34 0x00007f975f1c2705 in gtk_main ()
    at /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#35 0x00007f97601d2265 in wxGUIEventLoop::DoRun() ()
    at /usr/lib/x86_64-linux-gnu/libwx_gtk3u_core-3.0.so.0
#36 0x00007f975fce899d in wxEventLoopBase::Run() ()
    at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#37 0x00007f9760239d1e in wxDialog::ShowModal() ()
    at /usr/lib/x86_64-linux-gnu/libwx_gtk3u_core-3.0.so.0
#38 0x00007f972d0792ab in
PCB_EDITOR_CONTROL::UpdatePCBFromSchematic(TOOL_EVENT const&)
(this=0x563961407700, aEvent=...)
    at /home/bertrand/git/kicad/pcbnew/tools/pcb_editor_control.cpp:400
#39 0x00007f972d0820de in std::__invoke_impl<int, int
(PCB_EDITOR_CONTROL::*&)(TOOL_EVENT const&), PCB_EDITOR_CONTROL*&,
TOOL_EVENT const&>(std::__invoke_memfun_deref, int
(PCB_EDITOR_CONTROL::*&)(TOOL_EVENT const&), PCB_EDITOR_CONTROL*&,
TOOL_EVENT const&) (__f=
    @0x5639699ec110: (int (PCB_EDITOR_CONTROL::*)(PCB_EDITOR_CONTROL *
const, const TOOL_EVENT &)) 0x7f972d07922c
<PCB_EDITOR_CONTROL::UpdatePCBFromSchematic(TOOL_EVENT const&)>,
__t=@0x5639699ec120: 0x563961407700)
    at /usr/include/c++/9/bits/invoke.h:73
#40 0x00007f972d081da7 in std::__invoke<int
(PCB_EDITOR_CONTROL::*&)(TOOL_EVENT const&), PCB_EDITOR_CONTROL*&,
TOOL_EVENT const&>(int (PCB_EDITOR_CONTROL::*&)(TOOL_EVENT const&),
PCB_EDITOR_CONTROL*&, TOOL_EVENT const&) (__fn=
    @0x5639699ec110: (int (PCB_EDITOR_CONTROL::*)(PCB_EDITOR_CONTROL *
const, const TOOL_EVENT &)) 0x7f972d07922c
<PCB_EDITOR_CONTROL::UpdatePCBFromSchematic(TOOL_EVENT const&)>) at
/usr/include/c++/9/bits/invoke.h:95
#41 0x00007f972d0817fb in std::_Bind<int
(PCB_EDITOR_CONTROL::*(PCB_EDITOR_CONTROL*,
std::_Placeholder<1>))(TOOL_EVENT const&)>::__call<int, TOOL_EVENT
const&, 0ul, 1ul>(std::tuple<TOOL_EVENT const&>&&,
std::_Index_tuple<0ul, 1ul>)
    (this=0x5639699ec110, __args=...) at /usr/include/c++/9/functional:400
#42 0x00007f972d081319 in std::_Bind<int
(PCB_EDITOR_CONTROL::*(PCB_EDITOR_CONTROL*,
std::_Placeholder<1>))(TOOL_EVENT const&)>::operator()<TOOL_EVENT
const&, int>(TOOL_EVENT const&) (this=0x5639699ec110)
    at /usr/include/c++/9/functional:484
#43 0x00007f972d080fc1 in std::_Function_handler<int (TOOL_EVENT
const&), std::_Bind<int (PCB_EDITOR_CONTROL::*(PCB_EDITOR_CONTROL*,
std::_Placeholder<1>))(TOOL_EVENT const&)> >::_M_invoke(std::_Any_data
const&, TOOL_EVENT const&)
    (__functor=..., __args#0=...) at
/usr/include/c++/9/bits/std_function.h:285
#44 0x00007f972d7ac543 in std::function<int (TOOL_EVENT
const&)>::operator()(TOOL_EVENT const&) const (this=0x56395e9bdd50,
__args#0=...)
    at /usr/include/c++/9/bits/std_function.h:688
#45 0x00007f972d7a9962 in COROUTINE<int, TOOL_EVENT
const&>::callerStub(long)
    (aData=140728976532208)
    at /home/bertrand/git/kicad/include/tool/coroutine.h:345
#46 0x000056395e2ca141 in make_fcontext ()
#47 0x000606ff004c4cff in  ()
#48 0x000000db000000ff in  ()
#49 0x00000000000000aa in  ()
#50 0x0000000000006cd1 in  ()
#51 0x00005639614329a0 in  ()
#52 0x0000563973436520 in  ()
#53 0x0000000000000000 in  ()
(gdb)


References