Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant run examples, blank screen with SDL Error #40

Closed
hunar1997 opened this issue Apr 5, 2021 · 4 comments · Fixed by #98
Closed

Cant run examples, blank screen with SDL Error #40

hunar1997 opened this issue Apr 5, 2021 · 4 comments · Fixed by #98

Comments

@hunar1997
Copy link

Hello

I wanted to check out this project, installed the dependencies and i got this:

(ql:quickload :sketch-examples)
To load "sketch-examples":
  Load 1 ASDF system:
    sketch-examples
; Loading "sketch-examples"

(:SKETCH-EXAMPLES)
(make-instance 'sketch-examples:sinewave)

debugger invoked on a SDL2::SDL-RC-ERROR in thread
#<THREAD "SDL2 Main Thread" RUNNING {1001CA72C3}>:
  SDL Error (-1): That operation is not supported

The current thread is not at the foreground,
SB-THREAD:RELEASE-FOREGROUND has to be called in #<SB-THREAD:THREAD "main thread" RUNNING {1004DE01F3}>

I don't know what to do from here :(

@vydd
Copy link
Owner

vydd commented Oct 16, 2022

Hey, what's your system setup?

@nate-sys
Copy link

I have this exact same problem.

$ ros version
roswell 22.12.14.113(NO-GIT-REVISION)
build with cc (GCC) 12.2.0
libcurl=7.87.0
Quicklisp=2021-02-13
Dist=2023-06-18
lispdir='/etc/roswell/'
homedir='/home/nate/.roswell/'
sbcl-bin-variant=''

$ ros run
* (ql:quickload :sketch-examples)
To load "sketch-examples":
  Load 1 ASDF system:
    sketch-examples
; Loading "sketch-examples"
..................................................
[package sketch-examples]......
(:SKETCH-EXAMPLES)
* (make-instance 'sketch-examples:sinewave)

debugger invoked on a SDL2::SDL-RC-ERROR in thread
#<THREAD tid=12742 "SDL2 Main Thread" RUNNING {10045708F3}>:
  SDL Error (-1): That operation is not supported

The current thread is not at the foreground,
SB-THREAD:RELEASE-FOREGROUND has to be called in #<SB-THREAD:THREAD tid=11947 "main thread" RUNNING {10013E0003}>
for this thread to enter the debugger.

I'm on Void Linux and have SDL2 and all other dependencies installed.

@Gleefre
Copy link
Contributor

Gleefre commented Oct 31, 2023

I have encountered a similar error today and supposedly the culprit is sdl2:gl-set-swap-interval.

@nate-sys I have pushed a workaround disabling it onto the master branch of my fork: https://github.com/Gleefre/sketch ; could you try running examples with that version?

(Commit: 91d1818)

@nate-sys
Copy link

nate-sys commented Nov 1, 2023

@Gleefre Yup, that works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants