andy128k / cl-gobject-introspection

BSD 2-Clause "Simplified" License
49 stars 15 forks source link

COMMON-LISP:DIVISION-BY-ZERO in maze example if usb mouse is used #66

Closed Q-tester closed 6 years ago

Q-tester commented 6 years ago

maze example works well if I use my touchpad. The error does not occur also if I turn on the mouse but beforehand use the touchpad some time and only afterwards begin to use the mouse. The error occurs with high probability if I start maze-example::edit-maze-in-window! app and begin to interact with window by the mouse immediately. Backtrace:

  0: ((FLET SB-UNIX::RUN-HANDLER :IN SB-SYS:ENABLE-INTERRUPT) 8 #.(SB-SYS:INT-SAP #X7FFFF4B35170) #.(SB-SYS:INT-SAP #X7FFFF4B35040))
      Locals:
        SB-DEBUG::MORE = (8 #.(SB-SYS:INT-SAP #X7FFFF4B35170) #.(SB-SYS:INT-SAP #X7FFFF4B35040))
  1: ("foreign function: call_into_lisp")
      [No Locals]
  2: ("foreign function: funcall3")
      [No Locals]
  3: ("foreign function: interrupt_handle_now")
      [No Locals]
  4: ("foreign function: interrupt_handle_now_handler")
      [No Locals]
  5: ((LAMBDA (&REST GIR::ARGS-IN) :IN GIR::BUILD-FUNCTION))
      Locals:
        GIR::ARGS-IN = NIL
        GIR::OUT-ARGS = NIL
        GIR::PURE-IN-ARGS = NIL
        GIR::RET-VAL = #<GIR::RETURN-VALUE {1004D0E163}>
  6: (EDIT-MAZE-IN-WINDOW! #S(MAZE :HEIGHT 8 :WIDTH 10 :SN-WALLS #2A((T T T T T T ...) (T NIL NIL T T T ...) (NIL NIL NIL T NIL NIL ...) (NIL NIL T NIL NIL NIL ...) (NIL T NIL T NIL T ...) (NIL T T T NIL N..
      Locals:
        MAZE = #S(MAZE ..)
  7: (SB-INT:SIMPLE-EVAL-IN-LEXENV (EDIT-MAZE-IN-WINDOW! *MAZE*) #<NULL-LEXENV>)
      Locals:
        SB-KERNEL:LEXENV = #<NULL-LEXENV>
        SB-IMPL::ORIGINAL-EXP = (EDIT-MAZE-IN-WINDOW! *MAZE*)
  8: (EVAL (EDIT-MAZE-IN-WINDOW! *MAZE*))
      Locals:

System info: GNU/Linux, sbcl 1.4.0

Kalimehtar commented 6 years ago

Try add

(sb-ext::set-floating-point-modes :traps nil)

at the beginning of he program

Q-tester commented 6 years ago

Now the error does not occur. Thanks.