embeddedt

Results 330 comments of embeddedt

[Here](https://sim.lvgl.io/v8.3/micropython/ports/javascript/index.html?script_direct=4c7a5a9dc3de943c98f10d90be95dd9b00de2ee0) is an example for the online simulator.

Do you have an Nvidia graphics card in your computer? The Unix port has issues with Nvidia cards which we haven't been able to track down. See #46.

Is this the same sequence of steps you ran to get it to segfault? It doesn't appear to have crashed yet.

@amirgon Yes; I have an Nvidia card. I've been reading some documents about SDL, and it appears that in order to be compliant with its requirements, we need to ensure...

> Do you mean, from the same thread that initialized SDL? Unfortunately, it's even stricter than that. It looks like SDL operations always need to be done on the initial...

No time to debug this right now, but assuming that Thread 1 is the main thread, it looks like we aren't violating any SDL requirements. ``` Thread 2 (Thread 0x7fffeffed700...

@uraich Thanks for testing that. This proves that the problem is likely to be somewhere in the Nvidia proprietary drivers. > If it was a problem from which thread SDL_init...

@amirgon I've tried this and unfortunately the crash still happens.

The normal SDL driver used by the PC simulator has never crashed for me.

I swapped out the current MicroPython SDL driver for a copy of the PC one (with minor modifications) and the issue is still happening. This suggests that MicroPython is interfering...