Because the bytes from .encode() were freed right after RimeTraits was built, librime read freed memory; prebuilt_data_dir and staging_dir were also left uninitialized. Apply the fix submitted upstream, which is not merged yet. Upstream: https://github.com/rimeinn/pyrime/pull/14 Signed-off-by: Zakk <zakk@gentoozh.org>