Advertisement
Guest User

Crash in python app.

a guest
Jan 19th, 2020
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
GDB 5.37 KB | None | 0 0
  1. Reading symbols from output/debug/simulator/linux/epsilon.bin...
  2. (gdb) b Code::PythonTextArea::ContentView::drawLine
  3. Breakpoint 1 at 0x42fc75: file apps/code/python_text_area.cpp, line 98.
  4. (gdb) r
  5. Starting program: /home/maxoufox/Projects/epsilon/epsilon/output/debug/simulator/linux/epsilon.bin
  6. [Thread debugging using libthread_db enabled]
  7. Using host libthread_db library "/usr/lib/libthread_db.so.1".
  8. /usr/lib/../share/gcc-9.2.0/python/libstdcxx/v6/xmethods.py:731: SyntaxWarning: list indices must be integers or slices, not str; perhaps you missed a comma?
  9.   refcounts = ['_M_refcount']['_M_pi']
  10.  
  11. Breakpoint 1, Code::PythonTextArea::ContentView::drawLine (this=0x555555b73428 <AppsContainer::sharedAppsContainer()::appsContainerStorage+39208>, ctx=0x555555b2eeb0 <KDIonContext::sharedContext()::context>, line=1,
  12.     text=0x555555b734d4 <AppsContainer::sharedAppsContainer()::appsContainerStorage+39380> "from turtle import *\ndef squares(angle=0.5):\n  reset()\n  L=330\n  speed(10)\n  penup()\n  goto(-L/2,-L/2)\n  pendown()\n  for i in range(660):\n    forward(L)\n    left(90+angle)\n    L=L-L*sin(angle*pi/180)\n"..., byteLength=20, fromColumn=0, toColumn=30) at apps/code/python_text_area.cpp:98
  13. 98  void PythonTextArea::ContentView::drawLine(KDContext * ctx, int line, const char * text, size_t byteLength, int fromColumn, int toColumn) const {
  14. (gdb) bt
  15. #0  Code::PythonTextArea::ContentView::drawLine (this=0x555555b73428 <AppsContainer::sharedAppsContainer()::appsContainerStorage+39208>, ctx=0x555555b2eeb0 <KDIonContext::sharedContext()::context>, line=1,
  16.     text=0x555555b734d4 <AppsContainer::sharedAppsContainer()::appsContainerStorage+39380> "from turtle import *\ndef squares(angle=0.5):\n  reset()\n  L=330\n  speed(10)\n  penup()\n  goto(-L/2,-L/2)\n  pendown()\n  for i in range(660):\n    forward(L)\n    left(90+angle)\n    L=L-L*sin(angle*pi/180)\n"..., byteLength=20, fromColumn=0, toColumn=30) at apps/code/python_text_area.cpp:98
  17. #1  0x00005555555ef706 in TextArea::ContentView::drawRect (this=0x555555b73428 <AppsContainer::sharedAppsContainer()::appsContainerStorage+39208>, ctx=0x555555b2eeb0 <KDIonContext::sharedContext()::context>, rect=...)
  18.     at escher/src/text_area.cpp:344
  19. #2  0x00005555555f3db3 in View::redraw (this=0x555555b73428 <AppsContainer::sharedAppsContainer()::appsContainerStorage+39208>, rect=..., forceRedrawRect=...) at escher/src/view.cpp:63
  20. #3  0x00005555555f3ecd in View::redraw (this=0x555555b73320 <AppsContainer::sharedAppsContainer()::appsContainerStorage+38944>, rect=..., forceRedrawRect=...) at escher/src/view.cpp:86
  21. #4  0x00005555555f3ecd in View::redraw (this=0x555555b732e8 <AppsContainer::sharedAppsContainer()::appsContainerStorage+38888>, rect=..., forceRedrawRect=...) at escher/src/view.cpp:86
  22. #5  0x00005555555f3ecd in View::redraw (this=0x555555b732b0 <AppsContainer::sharedAppsContainer()::appsContainerStorage+38832>, rect=..., forceRedrawRect=...) at escher/src/view.cpp:86
  23. #6  0x00005555555f3ecd in View::redraw (this=0x555555b774e8 <AppsContainer::sharedAppsContainer()::appsContainerStorage+55784>, rect=..., forceRedrawRect=...) at escher/src/view.cpp:86
  24. #7  0x00005555555f3ecd in View::redraw (this=0x555555b6b510 <AppsContainer::sharedAppsContainer()::appsContainerStorage+6672>, rect=..., forceRedrawRect=...) at escher/src/view.cpp:86
  25. #8  0x00005555555f3ecd in View::redraw (this=0x555555b69b20 <AppsContainer::sharedAppsContainer()::appsContainerStorage+32>, rect=..., forceRedrawRect=...) at escher/src/view.cpp:86
  26. #9  0x00005555555f4b46 in Window::redraw (this=0x555555b69b20 <AppsContainer::sharedAppsContainer()::appsContainerStorage+32>, force=false) at escher/src/window.cpp:12
  27. #10 0x00005555555daba1 in Container::dispatchEvent (this=0x555555b69b00 <AppsContainer::sharedAppsContainer()::appsContainerStorage>, event=...) at escher/src/container.cpp:48
  28. #11 0x00005555559c0a70 in AppsContainer::dispatchEvent (this=0x555555b69b00 <AppsContainer::sharedAppsContainer()::appsContainerStorage>, event=...) at apps/apps_container.cpp:149
  29. #12 0x00005555555e57e6 in RunLoop::step (this=0x555555b69b00 <AppsContainer::sharedAppsContainer()::appsContainerStorage>) at escher/src/run_loop.cpp:70
  30. #13 0x00005555555e5630 in RunLoop::runWhile (this=0x555555b69b00 <AppsContainer::sharedAppsContainer()::appsContainerStorage>, callback=0x0, ctx=0x0) at escher/src/run_loop.cpp:25
  31. #14 0x00005555555e55f4 in RunLoop::run (this=0x555555b69b00 <AppsContainer::sharedAppsContainer()::appsContainerStorage>) at escher/src/run_loop.cpp:21
  32. #15 0x00005555555dabec in Container::run (this=0x555555b69b00 <AppsContainer::sharedAppsContainer()::appsContainerStorage>) at escher/src/container.cpp:56
  33. #16 0x00005555559c0ff2 in AppsContainer::run (this=0x555555b69b00 <AppsContainer::sharedAppsContainer()::appsContainerStorage>) at apps/apps_container.cpp:256
  34. #17 0x00005555559c40ce in ion_main (argc=3, argv=0x555555b98040) at apps/main.cpp:61
  35. #18 0x0000555555938a29 in main (argc=1, argv=0x7fffffffdf08) at ion/src/simulator/shared/main_sdl.cpp:31
  36. (gdb) c
  37. Continuing.
  38.  
  39. Program received signal SIGILL, Illegal instruction.
  40. 0x00007fffffffd5e2 in ?? ()
  41. (gdb) bt
  42. #0  0x00007fffffffd5e2 in ?? ()
  43. #1  0x0000555555983d58 in Code::PythonTextArea::ContentView::drawLine (this=0x7fffffffd464, ctx=0x0, line=32767, text=0x7fffffffd470 "", byteLength=140737345796992, fromColumn=-142558336, toColumn=-10944)
  44.     at apps/code/python_text_area.cpp:117
  45. Backtrace stopped: frame did not save the PC
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement