Coder Social home page Coder Social logo

Comments (9)

kisvegabor avatar kisvegabor commented on September 9, 2024

Hi,

Thank you for the reporting the issue and telling our solution.

I implemented SDL_Iinit in a thread because on Windows drawing was possible on in that "context" when the init was called. So the init was required to move to the thread where the drawing happens.

I will immerse in it as I will have time. Until that time your solution surely will help to others on OSX.

from lv_port_pc_eclipse.

fishermr avatar fishermr commented on September 9, 2024

I ran into the same problem with SDL. I am using Eclipse Photon Release (4.8.0) and was having the exact issue you described. Waiting for hardware and wanted to get started understanding this UX library.
Much appreciate for the time you put into finding this thoughtful solution.

from lv_port_pc_eclipse.

Calebe94 avatar Calebe94 commented on September 9, 2024

It works perfectly on my MacOS 10.14. I owe you a beer!

from lv_port_pc_eclipse.

BrendanSimon avatar BrendanSimon commented on September 9, 2024

I've got the same issue.
Is there a patch or a fork/branch that I can access to get a a working copy of the source to compile ??
Thanks :)

from lv_port_pc_eclipse.

paulocoutinhox avatar paulocoutinhox commented on September 9, 2024

Hi,

I have create two pull requests to make it work on OSX latest version. Tested locally:

#21
lvgl/lv_drivers#16

Thanks.

from lv_port_pc_eclipse.

kisvegabor avatar kisvegabor commented on September 9, 2024

Both merged! Thank you very much!

It should solve the majoraíty of the OSX issues, so close these issue.

from lv_port_pc_eclipse.

bikeNomad avatar bikeNomad commented on September 9, 2024

I just tried building from the github master and running on my system (High Sierra, eclipse, sdl2 installed from Homebrew) and got the same crash. The only change I needed to make to get it to build was to remove the #define of USE_FBDEV in lv_drv_conf.h.

It looks like the SDL event pump is still running from the monitor thread.

It looks like this was broken in commit 5e42767 when SDL_PollEvent() was added to monitor_sdl_refr_core().

crash_report.txt

from lv_port_pc_eclipse.

ripe909 avatar ripe909 commented on September 9, 2024

Yep, I see the same crash again.

It runs if you wrap the while(SDL_PollEvent(&event)) with an #ifndef MONITOR_APPLE

from lv_port_pc_eclipse.

kisvegabor avatar kisvegabor commented on September 9, 2024

Hi,
Thanks for the feedback!

I fixed it here: https://github.com/littlevgl/lv_drivers/blob/master/display/monitor.c#L299
and here: https://github.com/littlevgl/lv_drivers/blob/master/lv_drv_conf_templ.h#L147

from lv_port_pc_eclipse.

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.