Giter Site home page Giter Site logo

Comments (16)

jhigginbotham64 avatar jhigginbotham64 commented on May 28, 2024 1

Interesting. I'll work on reproducing tomorrow after I fix my dev environment.

from starlight.jl.

jhigginbotham64 avatar jhigginbotham64 commented on May 28, 2024

Unfortunately my dev environment is borked at the moment, so I can't meaningfully try to reproduce this. 🙃

Alas Starlight's error-reporting mechanisms aren't great either. 🙃

There are several different ways to run Starlight's tests that may each yield slightly different results (all are supposed to work correctly tho):

  • what you did
  • ] test inside a REPL session
  • using Pkg; Pkg.test("Starlight") inside a REPL session
  • running runtests.jl as a script from the command line

I tend to only ever test the REPL methods, so it could be some bug I've just never seen (in which case I'd want to look at the error-reporting issue first), or it could be a bug with the released packages (I sure as heck hope not), or it could be an issue with your environment.

Could you try some of the other methods of running the tests and post your output?

from starlight.jl.

jhigginbotham64 avatar jhigginbotham64 commented on May 28, 2024

Also, are you seeing either of the windows that are supposed to get created by the tests? I.e. do you have any sense for when the error occurs?

from starlight.jl.

jhigginbotham64 avatar jhigginbotham64 commented on May 28, 2024

If you checked it out with Pkg.dev or some equivalent, did you follow up with Pkg.instantiate?

from starlight.jl.

silversquirl avatar silversquirl commented on May 28, 2024

I just cloned the repository with git, didn't use Pkg.dev.

I do see the windows appear, as well as the bitmap font sprite get rendered. The debug output in the log might help to pinpoint exactly where it happens?

from starlight.jl.

jhigginbotham64 avatar jhigginbotham64 commented on May 28, 2024

Unfortunately the debug output shows only a stacktrace of what Pkg is doing internally, because Starlight's error-reporting sucks. That's why I recommended you try a few others ways of running the tests.

Knowing that the windows appear and the stuff gets rendered is helpful tho.

from starlight.jl.

jhigginbotham64 avatar jhigginbotham64 commented on May 28, 2024

Aha. I see the words Test Summary in the extended output. That's informative, it at least gets through all the tests. Probably segfaulting some time during shutdown.

from starlight.jl.

jhigginbotham64 avatar jhigginbotham64 commented on May 28, 2024

Try running Pkg.instantiate too.

from starlight.jl.

jhigginbotham64 avatar jhigginbotham64 commented on May 28, 2024

I won't be able to help much more until I get my dev environment fixed tomorrow. :(

from starlight.jl.

silversquirl avatar silversquirl commented on May 28, 2024

instantiate doesn't seem to help

The tests do occasionally succeed (anecdotally, this seems to happen more often if I run test interactively? Might be placebo), and I occasionally get the following error instead of the longer backtrace:

Test Summary: |
signal (11): Segmentation fault
in expression starting at /home/silver/code/Starlight.jl/test/runtests.jl:11
unknown function (ip: 0x7fd5c396def0)
Allocations: 29815218 (Pool: 29805248; Big: 9970); GC: 35
ERROR: Package Starlight errored during testing (received signal: 11)

from starlight.jl.

Borketh avatar Borketh commented on May 28, 2024

This happens at awake!
AECC8601-D95D-4D94-9CC7-888F4E41F943

from starlight.jl.

Borketh avatar Borketh commented on May 28, 2024

After a bit more digging it's the propagation of awake! through whatever systemAwakeOrder() is. The element that doesn't like waking up is TS().

from starlight.jl.

jhigginbotham64 avatar jhigginbotham64 commented on May 28, 2024

TS failing is to be expected given #14. These are separate issues.

systemAwakeOrder is just a...hack-y way to make sure that subsystems awake! in an order that doesn't cause bugs. It needs to be replaced by a proper subsystem dependency...system...

from starlight.jl.

Borketh avatar Borketh commented on May 28, 2024

Actually, similar to #14 there is no ALSA device either, which may be why it's having a fit.

from starlight.jl.

jhigginbotham64 avatar jhigginbotham64 commented on May 28, 2024

There's no ALSA device because...ugh, I forget what issue it is, but I had to add a workaround to my Julia startup. Need to document it somewhere.

Anyway I don't see a reason that would cause a segfault unless audio was being played, which the tests don't do.

from starlight.jl.

jhigginbotham64 avatar jhigginbotham64 commented on May 28, 2024

@silversquirl I recently pushed changes that resolved a similar issue for someone else's PR. Can you confirm for me that this is still an issue with the latest development code?

from starlight.jl.

Related Issues (20)

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.