GithubHelp home page GithubHelp logo

jinwoo / cl-ui Goto Github PK

View Code? Open in Web Editor NEW
31.0 31.0 2.0 21 KB

Common Lisp bindings for minimalistic GUI library, libui, https://github.com/andlabs/libui

License: MIT License

Common Lisp 100.00%

cl-ui's People

Contributors

jinwoo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cl-ui's Issues

example blocked error?

I run the example in my slimv(slime for vim), just get the following BLOCKING-CALL-TASK error:

:STATUS :ERRORED

Task #<SIMPLE-TASKS:BLOCKING-CALL-TASK :FUNC #<CLOSURE (LAMBDA
                                                           ()
                                                         :IN
                                                         CL-UI::CALL-WITH-UI) {1003A4555B}> :STATUS :ERRORED {1003C3CBD3}> errored. See the task's ERROR-ENVIRONMENT for more information.
   [Condition of type SIMPLE-TASKS:TASK-ERRORED]

Restarts:
  0: [RETRY] Retry SLIME REPL evaluation request.
  1: [*ABORT] Return to SLIME's top level.
  2: [ABORT] abort thread (#<THREAD "repl-thread" RUNNING {1001C10413}>)

Backtrace:
  0: (SIMPLE-TASKS:CALL-AS-TASK #<CLOSURE (LAMBDA NIL :IN CL-UI::CALL-WITH-UI) {1003A4555B}> #<SIMPLE-TASKS:QUEUED-RUNNER :STATUS :RUNNING {1001E051F3}> SIMPLE-TASKS:BLOCKING-CALL-TASK) {{{
      in quicklisp/dists/quicklisp/software/simple-tasks-20181210-git/task.lisp line 154
    Locals:
      SB-PCL::.CLASS-ARG. = SIMPLE-TASKS:BLOCKING-CALL-TASK
      FUNCTION = #<CLOSURE (LAMBDA () :IN CL-UI::CALL-WITH-UI) {1003A4555B}>
      RUNNER = #<SIMPLE-TASKS:QUEUED-RUNNER :STATUS :RUNNING {1001E051F3}>
      }}}
  1: (SB-INT:SIMPLE-EVAL-IN-LEXENV (MAIN) #<NULL-LEXENV>)
  2: (EVAL (MAIN))
  3: (SWANK::EVAL-REGION "(main) ..)
  4: ((LAMBDA NIL :IN SWANK-REPL::REPL-EVAL))
  5: (SWANK-REPL::TRACK-PACKAGE #<CLOSURE (LAMBDA NIL :IN SWANK-REPL::REPL-EVAL) {1003A4542B}>)
  6: (SWANK::CALL-WITH-RETRY-RESTART "Retry SLIME REPL evaluation request." #<CLOSURE (LAMBDA NIL :IN SWANK-REPL::REPL-EVAL) {1003A453CB}>)
  7: (SWANK::CALL-WITH-BUFFER-SYNTAX NIL #<CLOSURE (LAMBDA NIL :IN SWANK-REPL::REPL-EVAL) {1003A453AB}>)
  8: (SWANK-REPL::REPL-EVAL "(main) ..)
  9: (SB-INT:SIMPLE-EVAL-IN-LEXENV (SWANK-REPL:LISTENER-EVAL "(main) ..)
 10: (EVAL (SWANK-REPL:LISTENER-EVAL "(main) ..)
 11: (SWANK:EVAL-FOR-EMACS (SWANK-REPL:LISTENER-EVAL "(main) ..)
 12: (SWANK::PROCESS-REQUESTS NIL)
 13: ((LAMBDA NIL :IN SWANK::HANDLE-REQUESTS))
 14: ((LAMBDA NIL :IN SWANK::HANDLE-REQUESTS))

Would you please tell me how to run the example?

I run the example with sbcl --script from terminal, I just get this error on Mac OS X:

2019-06-27 10:25:44.068 sbcl[55794:5419150] get 0x0
Unhandled FLOATING-POINT-INVALID-OPERATION in thread #<SB-THREAD:THREAD "main thread" RUNNING
                                                        {10005185B3}>:
  arithmetic error FLOATING-POINT-INVALID-OPERATION signalled

Backtrace for: #<SB-THREAD:THREAD "main thread" RUNNING {10005185B3}>
0: ("bogus stack frame")
1: ("foreign function: -[NSPlaceholderNumber initWithDouble:]")
2: ("foreign function: +[CALayer defaultValueForKey:]")
3: ("foreign function: _ZL23classDescription_lockedP10objc_class")
4: ("foreign function: _ZL23classDescription_lockedP10objc_class")
5: ("foreign function: _ZL23classDescription_lockedP10objc_class")
6: ("foreign function: _ZL16classDescriptionP10objc_class")
7: ("foreign function: _ZN2CA5Layer11class_stateEP10objc_class")
8: ("foreign function: -[CALayer init]")
9: ("foreign function: -[_NSBackingLayer init]")
10: ("foreign function: +[CALayer layer]")
11: ("foreign function: -[NSView(NSInternal) _createLayerAndInitialize]")
12: ("foreign function: -[NSView _updateLayerBackedness]")
13: ("foreign function: -[NSView didChangeValueForKey:]")
14: ("foreign function: __49-[NSThemeFrame _floatTitlebarAndToolbarFromInit:]_block_invoke")
15: ("foreign function: +[NSAnimationContext runAnimationGroup:]")
16: ("foreign function: -[NSThemeFrame _floatTitlebarAndToolbarFromInit:]")
17: ("foreign function: -[NSThemeFrame initWithFrame:styleMask:owner:]")
18: ("foreign function: -[NSWindow _commonInitFrame:styleMask:backing:defer:]")
19: ("foreign function: -[NSWindow _initContent:styleMask:backing:defer:contentView:]")
20: ("foreign function: -[NSWindow initWithContentRect:styleMask:backing:defer:]")
21: ("foreign function: uiNewWindow")
22: (CL-UI.RAW:NEW-WINDOW "libui Control Gallery" 640 480 T)
23: ((:METHOD INITIALIZE-INSTANCE :AFTER (CL-UI:WINDOW)) #<CL-UI:WINDOW {100309B423}>) [fast-method]
24: ((LAMBDA NIL :IN "/Users/somepeople/ui.lisp"))
25: (%MAIN)
26: ((LAMBDA NIL :IN CL-UI::CALL-WITH-UI))

It seems related to the thread model as mentioned in issue, but i don't know how to fix it, Would you please tell me how to run the example?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.