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

does not launch game window #57

Open
Marie-Joseph opened this issue Feb 26, 2022 · 3 comments
Open

does not launch game window #57

Marie-Joseph opened this issue Feb 26, 2022 · 3 comments

Comments

@Marie-Joseph
Copy link

Marie-Joseph commented Feb 26, 2022

When running the examples as described in the documentation, "basic.jl" throws the following error:

ERROR: MethodError: Cannot `convert` an object of type 
  String to an object of type 
  ARGB
Closest candidates are:
  convert(::Type{C}, ::Color, ::Any) where C<:TransparentColor at /home/jts/.julia/packages/ColorTypes/7OlxI/src/conversions.jl:78
  convert(::Type{C}, ::C) where C<:Colorant at /home/jts/.julia/packages/ColorTypes/7OlxI/src/conversions.jl:72
  convert(::Type{C}, ::Colorant) where C<:Colorant at /home/jts/.julia/packages/ColorTypes/7OlxI/src/conversions.jl:73
  ...
Stacktrace:
 [1] ARGB(x::String)
   @ ColorTypes ~/.julia/packages/ColorTypes/7OlxI/src/types.jl:528
 [2] GameZero.Screen(name::String, w::Int64, h::Int64, color::String)
   @ GameZero ~/.julia/packages/GameZero/e03cc/src/screen.jl:11
 [3] initscreen(gm::Module, name::String)
   @ GameZero ~/.julia/packages/GameZero/e03cc/src/GameZero.jl:64
 [4] initgame(jlf::String, external::Bool)
   @ GameZero ~/.julia/packages/GameZero/e03cc/src/GameZero.jl:246
 [5] rungame(jlf::String, external::Bool)
   @ GameZero ~/.julia/packages/GameZero/e03cc/src/GameZero.jl:195
 [6] rungame(jlf::String)
   @ GameZero ~/.julia/packages/GameZero/e03cc/src/GameZero.jl:194
 [7] top-level scope
   @ REPL[2]:1

"basic2.jl" warns about being unable to find ALSA libraries but otherwise simply does not launch a game window:

┌ Warning: No audio device available, sounds and music will not play.
│ ALSA: Couldn't open audio device: Aucun fichier ou dossier de ce type
└ @ GameZero ~/.julia/packages/GameZero/e03cc/src/GameZero.jl:303

versioninfo():

Julia Version 1.6.3
Commit ae8452a9e0 (2021-09-23 17:34 UTC)
Platform Info:
  OS: Linux (x86_64-unknown-linux-gnu)
  CPU: AMD Ryzen 5 5600X 6-Core Processor
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-11.0.0 (ORCJIT, generic)
Environment:
  JULIA_LOAD_PATH = :
  JULIA_DEPOT_PATH = :/home/jts/.guix-profiles/julia/share/julia/:/home/jts/.guix-profiles/julia/share/julia/

GameZero: 0.2.1

@scottbigbrain
Copy link
Contributor

This same bug was brought up in #42, a workaround was discussed there that should help you

@Marie-Joseph
Copy link
Author

Marie-Joseph commented Apr 13, 2022

Sorry I just saw this - pointing an environment variable at the alsa conf file, as is suggested in the issue linked in the issue you linked, just gets me what sounds like bugged audio, but still no game window, for basic.jl

for basic2.jl, I just get ALSA lib control.c:1481:(snd_ctl_open_noupdate) Invalid CTL hw:0

@Marie-Joseph
Copy link
Author

It shows up in the tracebacks but I should probably explicitly mention: I'm on Guix GNU/Linux

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

No branches or pull requests

2 participants