Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IN_RECTANGLE assertion failing from latest commit on main #6

Open
odiminox opened this issue Oct 31, 2022 · 4 comments
Open

IN_RECTANGLE assertion failing from latest commit on main #6

odiminox opened this issue Oct 31, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@odiminox
Copy link
Contributor

image

@HexDecimal
Copy link
Contributor

I haven't run into this issue. Based on where the assert was I might assume that a creature spawned outside of the map or was moved outside. Can you post the log.txt file?

@HexDecimal HexDecimal added the bug Something isn't working label Oct 31, 2022
@HexDecimal
Copy link
Contributor

HexDecimal commented Oct 31, 2022

Looking at the AI director. I wonder if it tries to place a spawner out of bounds when you walk next to the edge of the map.

I was trying to reproduce similar errors by waiting at the upper-left corner of the map edge and got this:

Assertion failed: TCOD_console_is_index_valid_(con, x, y), file C:\Users\4b796\Projects\_others_projects\treeburner\vcpkg\buildtrees\libtcod\src\1.23.0-18439476c6.clean\src\libtcod\console_printing.c, line 261
Debug Error!

abort() has been called
ucrtbased.dll!00007fffe6eb7c75() (Unknown Source:0)
ucrtbased.dll!00007fffe6eb7e13() (Unknown Source:0)
ucrtbased.dll!00007fffe6ece01d() (Unknown Source:0)
ucrtbased.dll!00007fffe6ed386f() (Unknown Source:0)
ucrtbased.dll!00007fffe6ed1868() (Unknown Source:0)
ucrtbased.dll!00007fffe6ed41cf() (Unknown Source:0)
libtcod.dll!TCOD_console_print_internal(TCOD_Console * con, int x, int y, int rw, int rh, TCOD_bkgnd_flag_t flag, TCOD_alignment_t align, char * msg, bool can_split, bool count_only) Line 261 (c:\Users\4b796\Projects\_others_projects\treeburner\vcpkg\buildtrees\libtcod\src\1.23.0-18439476c6.clean\src\libtcod\console_printing.c:261)
libtcod.dll!TCODConsole::printEx(int x, int y, TCOD_bkgnd_flag_t flag, TCOD_alignment_t alignment, const char * fmt, ...) Line 279 (c:\Users\4b796\Projects\_others_projects\treeburner\vcpkg\buildtrees\libtcod\src\1.23.0-18439476c6.clean\src\libtcod\console_.cpp:279)
treeburner.exe!Logger::update(float elapsed, TCOD_key_t & k, TCOD_mouse_t & mouse) Line 224 (c:\Users\4b796\Projects\_others_projects\treeburner\src\ui_messages.cpp:224)
treeburner.exe!Dialog::update() Line 228 (c:\Users\4b796\Projects\_others_projects\treeburner\src\ui_dialog.cpp:228)
treeburner.exe!UmbraEngine::run::__l7::<lambda>(UmbraModule * tmpMod) Line 663 (c:\Users\4b796\Projects\_others_projects\treeburner\umbra\src\umbra\engine.cpp:663)
treeburner.exe!std::_Ref_fn<bool <lambda>(UmbraModule *)>::operator()<UmbraModule * &>(UmbraModule * & <_Vals_0>) Line 242 (c:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\xutility:242)
treeburner.exe!std::find_if<UmbraModule * *,std::_Ref_fn<bool <lambda>(UmbraModule *)>>(UmbraModule * * _First, UmbraModule * * const _Last, std::_Ref_fn<bool <lambda>(UmbraModule *)> _Pred) Line 5532 (c:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\xutility:5532)
treeburner.exe!std::remove_if<std::_Vector_iterator<std::_Vector_val<std::_Simple_types<UmbraModule *>>>,bool <lambda>(UmbraModule *)>(std::_Vector_iterator<std::_Vector_val<std::_Simple_types<UmbraModule *>>> _First, const std::_Vector_iterator<std::_Vector_val<std::_Simple_types<UmbraModule *>>> _Last, UmbraEngine::run::__l7::bool <lambda>(UmbraModule *) _Pred) Line 1981 (c:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\xmemory:1981)
treeburner.exe!UmbraEngine::run() Line 653 (c:\Users\4b796\Projects\_others_projects\treeburner\umbra\src\umbra\engine.cpp:653)
treeburner.exe!main(int argc, char * * argv) Line 216 (c:\Users\4b796\Projects\_others_projects\treeburner\src\main.cpp:216)
treeburner.exe!invoke_main() Line 79 (d:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:79)
treeburner.exe!__scrt_common_main_seh() Line 288 (d:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288)
treeburner.exe!__scrt_common_main() Line 331 (d:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:331)
treeburner.exe!mainCRTStartup(void * __formal) Line 17 (d:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_main.cpp:17)

This is from the logger trying to print a line at a consoles y=-2 position, so this might not really be related.

@odiminox
Copy link
Contributor Author

Not much info in this log - log.txt

@HexDecimal
Copy link
Contributor

I assumed as much. I might need to add more logging information or something. Also the current log format is not that great and seems to go for aesthetics more than practicality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants