libweston program segfaults on weston_compositor_load_backend

adlo adloconwy at gmail.com
Fri May 4 20:17:29 UTC 2018


On Fri, 2018-05-04 at 10:13 +0300, Pekka Paalanen wrote:
> 
> Is that perhaps the very first call to weston_log()?
> 
> You need to initialize the logging mechanism before anything can call
> weston_log(). Yeah, it's awkward, could probably be improved, but
> OTOH
> one would always want all log messages going to the same place, so
> you
> really do want to initialize the logging before any logging happens
> to
> avoid losing messages.
> 
> The crucial call to make is weston_log_set_handler() with non-NULL
> arguments before any other libweston calls.
> 

That's fixed it, thank you!

Regards

adlo


More information about the wayland-devel mailing list