Giter Site home page Giter Site logo

Comments (6)

Timidger avatar Timidger commented on June 6, 2024

Yikes, I can reproduce and it looks like a segfault. It most likely has to with interfacing with wlc, somehow we are using a view handle after it has been deleted. I also noticed that the scaling factor went back down to 0.5 when I logged in on mine, which is new to rustwlc and not something we have made changes to in Way Cooler, so it could perhaps be that.

We'll look into this, can you reproduce this on other programs other than mpv? I assume it has to do with some special way mpv closes that's causing this issue.

from way-cooler.

vinipsmaker avatar vinipsmaker commented on June 6, 2024

We'll look into this, can you reproduce this on other programs other than mpv?

From the few programs I tested, mpv was the only naughty one.

from way-cooler.

Timidger avatar Timidger commented on June 6, 2024

Can reproduce on release build, isn't validation checks on the tree causing the problem

from way-cooler.

Timidger avatar Timidger commented on June 6, 2024

Stepping through the stack frame, it looks like it was a double free on the handle, somehow mpv is closing itself and then we respond to the event by trying to close it as well.

It looks like for the most part that when a program has already closed itself (e.g the view_destroyed callback is triggered), calling view.close on that view is technically undefined behaviour since it's not guaranteed to point to a valid view.

The fix can be complete once we have the kill window command working again, since I can't test when I actually have to call view.close without, since in all other causes it's the window telling Way Cooler it's closing which will trigger this undefined behaviour.

Blocking until #57 is resolved.

from way-cooler.

vinipsmaker avatar vinipsmaker commented on June 6, 2024

Oh, retrorach will also cause way-cooler to crash when I try to open some game.

from way-cooler.

vinipsmaker avatar vinipsmaker commented on June 6, 2024

Perfect. mpv and retroarch are working sound now.

from way-cooler.

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.