Mepo - Minimalist and hackable OSM map viewer for mobile linux
#18
(04-15-2022, 07:21 PM)scott_VYuCAbn3k1NFK Wrote:
(04-15-2022, 06:42 PM)mi Wrote: In regards to the issue with `echo -e` not working under dash shell; thanks for flagging this. I've updated scripts to use printf which is more portable. Also I'm now shellchecking all bundled scripts which should help with cross-platform issues for the next release and releases going forward. (Indeed using bash instead of sh would be a workaround in the meantime)

About the wayland SDL video driver not working under mobian, that's not good to hear. I've largely tested under Alpine/pmOS and have also had reports in NixOS and Arch of wayland video driver in mepo working a-ok there. So I'd be curious if you could provide any more detailed information about wayland driver not working. If you could post a log of running `mepo -e` that would be useful for debugging.

I think I know what the issue is anyway - main.zig line 46 was changed from `mepo.sdl_event_loop()` to ` mepo.event_loop_and_read_stdin()`. Changing just that line back shows the window again.

Speculation:
The change moves a bunch of SDL code into a thread. In particular SDL_PumpEvents can only be called in the thread that initialized the video system (https://wiki.libsdl.org/SDL_PumpEvents). HTH and is somewhere near correct!

Ok so I was able to replicate this issue with the window not appearing & indeed the way things were setup with SDL video initialization code vs main loop code being in different threads was the root cause of this issue. This issue only affected the wayland driver. Your investigation on this is very much appreciated.

Have pushed a change in the git repository tip so this issue should be resolved (!) as now all SDL video code gets run from the same thread.

Ofcourse tagged versions (e.g. latest 0.4) will be in general more stable then bleeding edge. Regression testing happens before tagged releases but ofcourse help testing on git latest commit vs tagged versions is appreciated too. With the latest changes on git the reason for moving this stuff into a thread is that also mepo now reads from STDIN from console and can be used interactively to debug mepolang configuration/code this way.
  Reply


Messages In This Thread
RE: Mepo - Minimalist and hackable OSM map viewer for mobile linux - by mil - 04-17-2022, 09:22 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Genode- Sculpt OS for the PinePhone (non Linux) Surehand53 1 995 11-04-2023, 07:23 PM
Last Post: tllim
  Abiword as a office mobile word processor for the Pinephone? Peter Gamma 11 2,315 10-24-2023, 08:57 AM
Last Post: Peter Gamma
  Proximity lock on Plasma Mobile alpineduck 0 1,009 08-14-2023, 05:51 PM
Last Post: alpineduck
Information Quick&dirty VPN quick setting button for Plasma Mobile Kevin Kofler 0 1,048 04-06-2023, 02:40 PM
Last Post: Kevin Kofler
  Arch Linux on PinePhone Rocky-IV 4 9,803 12-21-2022, 04:35 AM
Last Post: gregb49
  Control HBIAS through a linux OS twiclo 0 1,024 10-04-2022, 03:20 PM
Last Post: twiclo
  difference between android and linux? vanja 3 2,132 09-16-2022, 07:43 PM
Last Post: TRS-80
  meet franz! (whatsapp,telegram,etc linux client) vanja 0 1,114 09-15-2022, 01:23 AM
Last Post: vanja
  HowTo: Get a passcode from DUO Mobile working on the Pinephone kop316 2 3,764 01-16-2022, 03:46 PM
Last Post: michel_luc
Bug My experience running desktop Linux on PinePhone Subsentient 5 4,865 12-31-2021, 05:41 PM
Last Post: Subsentient

Forum Jump:


Users browsing this thread: 1 Guest(s)