Giter Site home page Giter Site logo

Menu crash about iced_aw HOT 11 CLOSED

iced-rs avatar iced-rs commented on July 1, 2024
Menu crash

from iced_aw.

Comments (11)

genusistimelord avatar genusistimelord commented on July 1, 2024

could you please give the code you used or build a minimal example of this occurring?

from iced_aw.

KentaTheBugMaker avatar KentaTheBugMaker commented on July 1, 2024

clone https://github.com/t18b219k/voice_vox_gui.git
first we need to install VoiceVox japanese TTS software to run this problematic code.

and cargo run.

from iced_aw.

KentaTheBugMaker avatar KentaTheBugMaker commented on July 1, 2024

I removed icon but still crash.

from iced_aw.

latidoremi avatar latidoremi commented on July 1, 2024

clone https://github.com/t18b219k/voice_vox_gui.git first we need to install VoiceVox japanese TTS software to run this problematic code.

and cargo run.

Sorry I don't read Japanese but I played with the ui for a bit, none of the crashes came from iced_aw, where exactly should I be looking at?

from iced_aw.

KentaTheBugMaker avatar KentaTheBugMaker commented on July 1, 2024

modified to check mt.index is valid for menu crash reduced but still crash in on_event.

from iced_aw.

KentaTheBugMaker avatar KentaTheBugMaker commented on July 1, 2024

sub menu rendering crash + main menu scroll crash.

from iced_aw.

latidoremi avatar latidoremi commented on July 1, 2024

Ok I see where the problem is, the widget tree did not update when the menu tree changed on condition, a simple fix would be to recreate the widget tree in diff since the non linear children structure is a bit tricky to diff, dunno how much it'll affect the performance tho, I'll see if there's a better way

from iced_aw.

KentaTheBugMaker avatar KentaTheBugMaker commented on July 1, 2024

ok i'm happy to improve menu widget quality.

from iced_aw.

latidoremi avatar latidoremi commented on July 1, 2024

@t18b219k Checkout the code in the linked PR and see if it actually fixed the problem

from iced_aw.

KentaTheBugMaker avatar KentaTheBugMaker commented on July 1, 2024

Works fine.
oddly crash gone!

from iced_aw.

genusistimelord avatar genusistimelord commented on July 1, 2024

I shall push that new change.

from iced_aw.

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.