Giter Site home page Giter Site logo

Comments (4)

MahdiGhiasi avatar MahdiGhiasi commented on July 17, 2024

Update: Calling a WinRT function every second causes app completely freezing after a while, for some unknown reason. So we continue to use the old method for getting the app status at regular intervals.

The WinRT component will be used for communications initiated from js.

from xpomusic.

MahdiGhiasi avatar MahdiGhiasi commented on July 17, 2024

In the current development version, this method is used only for showing indeterminate progress bar while loading next song, but still I encountered an unrecoverable app freeze.

Will need to investigate more, if this happens often it might be reasonable to abandon this idea and do #18 instead. (It creates a somewhat uglier code, but if this one suffers from frequent freezes, then this is not acceptable)

from xpomusic.

MahdiGhiasi avatar MahdiGhiasi commented on July 17, 2024

I might have spoke too soon.

A likely cause for freezing app was updating MediaControls, which I'm also seeing hangs about it on live code as well. I've ran some tests and it seems that updating it a lot can cause an unrecoverable app freeze fairly quickly.

(The new code was unintentionally updating MediaControls every second, which can explain the app freezes)

I've brought back getting app status via WinRT component for now, and MediaControls now only updates when necessary.

I'll continue to monitor the behavior of the app to make sure there are no freezes caused by WinRT component in WebView.

from xpomusic.

MahdiGhiasi avatar MahdiGhiasi commented on July 17, 2024

I've never seen another freeze after fixing MediaControls update, so this is probably fine.

from xpomusic.

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.