==119== Memcheck, a memory error detector ==119== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==119== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info ==119== Command: ./easyrpg --project-path /home/retrofw/Data --fullscreen ==119== Debug: EasyRPG Player 0.6.1 started Debug: ============================ Debug: Seeded the RNG with 1285934450. Debug: CLI: --project-path /home/retrofw/Data --fullscreen ==119== Conditional jump or move depends on uninitialised value(s) ==119== at 0x5C19BC: strlen (in /home/retrofw/games/easyrpg/easyrpg) ==119== by 0x7230F8: strdup (in /home/retrofw/games/easyrpg/easyrpg) ==119== Uninitialised value was created by a stack allocation ==119== at 0x4BB6B8: SdlUi::SdlUi(long, long, bool) (sdl_ui.cpp:72) ==119== ==119== Conditional jump or move depends on uninitialised value(s) ==119== at 0x5B9F54: calloc (in /home/retrofw/games/easyrpg/easyrpg) ==119== by 0x6AD8D4: MikMod_malloc (in /home/retrofw/games/easyrpg/easyrpg) ==119== Uninitialised value was created ==119== at 0x5C7604: __expand_heap (in /home/retrofw/games/easyrpg/easyrpg) ==119== by 0x5B9A38: malloc (in /home/retrofw/games/easyrpg/easyrpg) ==119== ==119== Conditional jump or move depends on uninitialised value(s) ==119== at 0x5C19BC: strlen (in /home/retrofw/games/easyrpg/easyrpg) ==119== by 0x6109F4: open_file (in /home/retrofw/games/easyrpg/easyrpg) ==119== Uninitialised value was created ==119== at 0x5C7604: __expand_heap (in /home/retrofw/games/easyrpg/easyrpg) ==119== by 0x5B9A38: malloc (in /home/retrofw/games/easyrpg/easyrpg) ==119== ==119== Conditional jump or move depends on uninitialised value(s) ==119== at 0x5C19BC: strlen (in /home/retrofw/games/easyrpg/easyrpg) ==119== by 0x5777EC: std::basic_ostream >& std::operator<< >(std::basic_ostream >&, char const*) (in /home/retrofw/games/easyrpg/easyrpg) ==119== by 0x47A488: (anonymous namespace)::output_time() (output.cpp:64) ==119== by 0x47A50C: WriteLog(std::__cxx11::basic_string, std::allocator > const&, std::__cxx11::basic_string, std::allocator > const&, Color const&) (output.cpp:136) ==119== by 0x47AB1C: Output::DebugStr(std::__cxx11::basic_string, std::allocator > const&) (output.cpp:333) ==119== by 0x47AC88: Output::Debug(char const*, ...) (output.cpp:328) ==119== by 0x471FF8: SdlMixerAudio::SdlMixerAudio() (audio_sdl_mixer.cpp:217) ==119== by 0x4BB7E0: SdlUi::SdlUi(long, long, bool) (sdl_ui.cpp:134) ==119== by 0x486D6C: construct (new_allocator.h:147) ==119== by 0x486D6C: construct (alloc_traits.h:484) ==119== by 0x486D6C: _Sp_counted_ptr_inplace (shared_ptr_base.h:548) ==119== by 0x486D6C: __shared_count, long int&, long int&, bool&> (shared_ptr_base.h:679) ==119== by 0x486D6C: __shared_ptr, long int&, long int&, bool&> (shared_ptr_base.h:1344) ==119== by 0x486D6C: shared_ptr, long int&, long int&, bool&> (shared_ptr.h:359) ==119== by 0x486D6C: allocate_shared, long int&, long int&, bool&> (shared_ptr.h:702) ==119== by 0x486D6C: make_shared (shared_ptr.h:718) ==119== by 0x486D6C: BaseUi::CreateUi(long, long, bool, int) (baseui.cpp:46) ==119== by 0x433F38: Player::Init(int, char**) (player.cpp:187) ==119== by 0x406F68: main (main.cpp:27) ==119== Uninitialised value was created by a stack allocation ==119== at 0x47A3D4: (anonymous namespace)::output_time() (output.cpp:56) ==119== ==119== Conditional jump or move depends on uninitialised value(s) ==119== at 0x5C19BC: strlen (in /home/retrofw/games/easyrpg/easyrpg) ==119== by 0x5777EC: std::basic_ostream >& std::operator<< >(std::basic_ostream >&, char const*) (in /home/retrofw/games/easyrpg/easyrpg) ==119== by 0x47A488: (anonymous namespace)::output_time() (output.cpp:64) ==119== by 0x47A6B8: WriteLog(std::__cxx11::basic_string, std::allocator > const&, std::__cxx11::basic_string, std::allocator > const&, Color const&) (output.cpp:150) ==119== by 0x47AB1C: Output::DebugStr(std::__cxx11::basic_string, std::allocator > const&) (output.cpp:333) ==119== by 0x47AC88: Output::Debug(char const*, ...) (output.cpp:328) ==119== by 0x471FF8: SdlMixerAudio::SdlMixerAudio() (audio_sdl_mixer.cpp:217) ==119== by 0x4BB7E0: SdlUi::SdlUi(long, long, bool) (sdl_ui.cpp:134) ==119== by 0x486D6C: construct (new_allocator.h:147) ==119== by 0x486D6C: construct (alloc_traits.h:484) ==119== by 0x486D6C: _Sp_counted_ptr_inplace (shared_ptr_base.h:548) ==119== by 0x486D6C: __shared_count, long int&, long int&, bool&> (shared_ptr_base.h:679) ==119== by 0x486D6C: __shared_ptr, long int&, long int&, bool&> (shared_ptr_base.h:1344) ==119== by 0x486D6C: shared_ptr, long int&, long int&, bool&> (shared_ptr.h:359) ==119== by 0x486D6C: allocate_shared, long int&, long int&, bool&> (shared_ptr.h:702) ==119== by 0x486D6C: make_shared (shared_ptr.h:718) ==119== by 0x486D6C: BaseUi::CreateUi(long, long, bool, int) (baseui.cpp:46) ==119== by 0x433F38: Player::Init(int, char**) (player.cpp:187) ==119== by 0x406F68: main (main.cpp:27) ==119== Uninitialised value was created by a stack allocation ==119== at 0x47A3D4: (anonymous namespace)::output_time() (output.cpp:56) ==119== Debug: Opened audio at 44100 Hz (stereo), format: S16LSB Debug: Framerate is 0 FPS! ==119== Conditional jump or move depends on uninitialised value(s) ==119== at 0x5B9F54: calloc (in /home/retrofw/games/easyrpg/easyrpg) ==119== by 0x623FC8: pixman_image_create_bits (in /home/retrofw/games/easyrpg/easyrpg) ==119== Uninitialised value was created ==119== at 0x5C7604: __expand_heap (in /home/retrofw/games/easyrpg/easyrpg) ==119== by 0x5B9A38: malloc (in /home/retrofw/games/easyrpg/easyrpg) ==119== ==119== Conditional jump or move depends on uninitialised value(s) ==119== at 0x5C19BC: strlen (in /home/retrofw/games/easyrpg/easyrpg) ==119== by 0x42829C: rstrip(char*) (ini.cpp:60) ==119== by 0x4283D8: ini_parse_stream (ini.cpp:173) ==119== by 0x428604: ini_parse (ini.cpp:253) ==119== by 0x42C5B0: INIReader::INIReader(std::__cxx11::basic_string, std::allocator > const&) (inireader.cpp:44) ==119== by 0x42C3CC: ReaderUtil::GetEncoding(std::__cxx11::basic_string, std::allocator > const&) (reader_util.cpp:208) ==119== by 0x43209C: Player::GetEncoding[abi:cxx11]() (player.cpp:991) ==119== by 0x432A9C: Player::CreateGameObjects() (player.cpp:640) ==119== by 0x46D7EC: Scene_Logo::Update() (scene_logo.cpp:73) ==119== by 0x43177C: Player::Update(bool) (player.cpp:309) ==119== by 0x490E8C: MainFunction (scene.cpp:119) ==119== by 0x490E8C: Scene::MainFunction() (scene.cpp:77) ==119== by 0x432918: Player::MainLoop() (player.cpp:225) ==119== Uninitialised value was created by a stack allocation ==119== at 0x4282F0: ini_parse_stream (ini.cpp:105) ==119== Debug: Encoding not detected ==119== Conditional jump or move depends on uninitialised value(s) ==119== at 0x5C0F08: memchr (in /home/retrofw/games/easyrpg/easyrpg) ==119== by 0x5C1A94: strnlen (in /home/retrofw/games/easyrpg/easyrpg) ==119== Uninitialised value was created by a stack allocation ==119== at 0x4AEF70: Utils::Tokenize(std::__cxx11::basic_string, std::allocator > const&, std::function) (utils.cpp:443) ==119== Debug: Using /home/retrofw/Data as Game and Save directory Debug: Loading game Wadanohara and the Great Blue Sea Debug: Game does not need RTP (FullPackageFlag=1) Debug: Using RPG2k Interpreter Debug: MP3 file (MuzMuz_ImpromptuForMySlumber.mp3) found Debug: RPG2k >= v1.50 / RPG2k3 >= v1.05 detected Debug: Engine configured as: 2k=1 2k3=0 2k3Legacy=0 MajorUpdated=1 Eng=0 Debug: Adding /home/retrofw/.easyrpg/rtp2k to RTP path Debug: The folder does not contain a known RTP! Debug: Using custom ExFont: /home/retrofw/Data/EXFONT.bmp Debug: Actor 5: Removing invalid item 119 from equipment slot 2 Debug: Actor 5: Removing invalid item 121 from equipment slot 3 Debug: Actor 5: Removing invalid item 120 from equipment slot 4 Debug: Actor 5: Removing invalid item 122 from equipment slot 5 Debug: Actor 7: Removing invalid item 118 from equipment slot 1 Debug: Actor 7: Removing invalid item 119 from equipment slot 2 Debug: Actor 7: Removing invalid item 121 from equipment slot 3 Debug: Actor 7: Removing invalid item 120 from equipment slot 4 Debug: Actor 7: Removing invalid item 122 from equipment slot 5 Debug: Framerate is 0 FPS! Warning: Couldn't load Music/MusicEgg_WaltzOfDestiny.mid BGM. /etc/timidity.cfg: No such file or directory Debug: Framerate is 0 FPS! ==119== Conditional jump or move depends on uninitialised value(s) ==119== at 0x65FEF0: combine_over_u (in /home/retrofw/games/easyrpg/easyrpg) ==119== by 0x658820: general_composite_rect (in /home/retrofw/games/easyrpg/easyrpg) ==119== Uninitialised value was created ==119== at 0x5C7604: __expand_heap (in /home/retrofw/games/easyrpg/easyrpg) ==119== by 0x5B9A38: malloc (in /home/retrofw/games/easyrpg/easyrpg) ==119== ==119== Conditional jump or move depends on uninitialised value(s) ==119== at 0x65FE50: combine_over_u (in /home/retrofw/games/easyrpg/easyrpg) ==119== by 0x658820: general_composite_rect (in /home/retrofw/games/easyrpg/easyrpg) ==119== Uninitialised value was created ==119== at 0x5C7604: __expand_heap (in /home/retrofw/games/easyrpg/easyrpg) ==119== by 0x5B9A38: malloc (in /home/retrofw/games/easyrpg/easyrpg) ==119== Debug: Framerate is 0 FPS! ==119== Conditional jump or move depends on uninitialised value(s) ==119== at 0x5C19BC: strlen (in /home/retrofw/games/easyrpg/easyrpg) ==119== by 0x5777EC: std::basic_ostream >& std::operator<< >(std::basic_ostream >&, char const*) (in /home/retrofw/games/easyrpg/easyrpg) ==119== by 0x47A488: (anonymous namespace)::output_time() (output.cpp:64) ==119== by 0x47A654: WriteLog(std::__cxx11::basic_string, std::allocator > const&, std::__cxx11::basic_string, std::allocator > const&, Color const&) (output.cpp:147) ==119== by 0x47AB1C: Output::DebugStr(std::__cxx11::basic_string, std::allocator > const&) (output.cpp:333) ==119== by 0x47AC88: Output::Debug(char const*, ...) (output.cpp:328) ==119== by 0x44F258: CommandNewGame (scene_title.cpp:197) ==119== by 0x44F258: Scene_Title::CommandNewGame() (scene_title.cpp:193) ==119== by 0x44F434: Scene_Title::Update() (scene_title.cpp:111) ==119== by 0x43177C: Player::Update(bool) (player.cpp:309) ==119== by 0x490E8C: MainFunction (scene.cpp:119) ==119== by 0x490E8C: Scene::MainFunction() (scene.cpp:77) ==119== by 0x432918: Player::MainLoop() (player.cpp:225) ==119== by 0x432A50: Player::Run() (player.cpp:219) ==119== Uninitialised value was created by a stack allocation ==119== at 0x47A3D4: (anonymous namespace)::output_time() (output.cpp:56) ==119== Debug: Starting new game Debug: Loading Map Map0061.lmu ==119== Conditional jump or move depends on uninitialised value(s) ==119== at 0x5C19BC: strlen (in /home/retrofw/games/easyrpg/easyrpg) ==119== by 0x5777EC: std::basic_ostream >& std::operator<< >(std::basic_ostream >&, char const*) (in /home/retrofw/games/easyrpg/easyrpg) ==119== by 0x45F0D0: Game_Map::SetupCommon(int, bool) (game_map.cpp:310) ==119== by 0x45F2D8: Game_Map::Setup(int, TeleportTarget::Type) (game_map.cpp:145) ==119== by 0x4303AC: OnMapFileReady(FileRequestResult*) (player.cpp:969) ==119== by 0x4BBF34: operator() (std_function.h:690) ==119== by 0x4BBF34: FileRequestAsync::CallListeners(bool) (async_handler.cpp:264) ==119== by 0x43260C: Player::SetupPlayerSpawn() (player.cpp:982) ==119== by 0x44F27C: CommandNewGame (scene_title.cpp:200) ==119== by 0x44F27C: Scene_Title::CommandNewGame() (scene_title.cpp:193) ==119== by 0x44F434: Scene_Title::Update() (scene_title.cpp:111) ==119== by 0x43177C: Player::Update(bool) (player.cpp:309) ==119== by 0x490E8C: MainFunction (scene.cpp:119) ==119== by 0x490E8C: Scene::MainFunction() (scene.cpp:77) ==119== by 0x432918: Player::MainLoop() (player.cpp:225) ==119== Uninitialised value was created ==119== at 0x5C7604: __expand_heap (in /home/retrofw/games/easyrpg/easyrpg) ==119== by 0x5B9A38: malloc (in /home/retrofw/games/easyrpg/easyrpg) ==119== Debug: Tree: Blue Sky and Sea < Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! Debug: Framerate is 0 FPS! ==119== Invalid write of size 4 ==119== at 0x5B9CAC: malloc (in /home/retrofw/games/easyrpg/easyrpg) ==119== by 0x5B9E24: malloc (in /home/retrofw/games/easyrpg/easyrpg) ==119== Address 0xf0008 is not stack'd, malloc'd or (recently) free'd ==119==