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

InvalidPositionExceptions thrown by some env functions #1556

Closed
Megaf opened this Issue Aug 13, 2014 · 15 comments

Comments

Projects
None yet
6 participants
@Megaf
Contributor

Megaf commented Aug 13, 2014

10:10:39: ACTION[ServerThread]: Server: guest7094 supplied empty password
10:11:13: ACTION[ServerThread]: Moving guest7094 to static spawnpoint at (0,10,0)
10:11:13: ACTION[ServerThread]: guest7094 [24.245.117.30] joins game.
10:11:13: ACTION[ServerThread]: guest7094 joins game. List of players: Lukc guest7094
10:14:56: ACTION[ServerThread]: sin [173.209.212.226] joins game.
10:14:56: ACTION[ServerThread]: sin joins game. List of players: Lukc guest7094 sin
10:18:44: ERROR[main]: ERROR: An unhandled exception occurred: C++ exception

In thread b6923220:
/home/minetest/Server/src/main.cpp:1945: int main(int, char**): Assertion '0' failed.
Debug stacks:
DEBUG STACK FOR THREAD b38e1440:
#0  virtual void* CurlFetchThread::Thread()
DEBUG STACK FOR THREAD b6923220:
#0  int main(int, char**)
(Leftover data: #1  Dedicated server branch)
(Leftover data: #2  virtual void ServerMap::save(ModifiedState))
(Leftover data: #3  void ItemStack::serialize(std::ostream&) const)
Aborted

I get this at least once a day. it begun about 2 or 3 weeks ago.

@Megaf

This comment has been minimized.

Show comment
Hide comment
@Megaf

Megaf Aug 14, 2014

Contributor

Still happening. Any idea on what could be causing that?

21:48:20: ACTION[ServerThread]: Kirito-kun places node default:junglewood at (-392,16003,563)
21:48:20: ACTION[ServerThread]: Kirito-kun places node default:junglewood at (-392,16003,562)
21:48:25: ACTION[ServerThread]: Kirito-kun digs default:junglewood at (-391,16002,562)
21:48:28: ACTION[ServerThread]: Kirito-kun digs default:junglewood at (-391,16005,563)
21:48:28: ACTION[ServerThread]: sin places node default:cobble at (-382,16001,528)
21:48:29: ACTION[ServerThread]: Kirito-kun digs default:junglewood at (-391,16004,563)
21:48:30: ACTION[ServerThread]: sin places node default:cobble at (-367,16001,526)
21:48:33: ACTION[ServerThread]: Kirito-kun digs default:junglewood at (-391,16003,563)
21:48:33: ACTION[ServerThread]: Kirito-kun digs default:junglewood at (-391,16002,563)
21:48:35: ERROR[main]: ERROR: An unhandled exception occurred: C++ exception

In thread b68cb220:
/home/minetest/Server/src/main.cpp:1945: int main(int, char**): Assertion '0' failed.
Debug stacks:
DEBUG STACK FOR THREAD b2aff440:
#0  virtual void* CurlFetchThread::Thread()
DEBUG STACK FOR THREAD b68cb220:
#0  int main(int, char**)
(Leftover data: #1  Dedicated server branch)
(Leftover data: #2  virtual void ServerMap::save(ModifiedState))
(Leftover data: #3  void ItemStack::serialize(std::ostream&) const)
Aborted
Contributor

Megaf commented Aug 14, 2014

Still happening. Any idea on what could be causing that?

21:48:20: ACTION[ServerThread]: Kirito-kun places node default:junglewood at (-392,16003,563)
21:48:20: ACTION[ServerThread]: Kirito-kun places node default:junglewood at (-392,16003,562)
21:48:25: ACTION[ServerThread]: Kirito-kun digs default:junglewood at (-391,16002,562)
21:48:28: ACTION[ServerThread]: Kirito-kun digs default:junglewood at (-391,16005,563)
21:48:28: ACTION[ServerThread]: sin places node default:cobble at (-382,16001,528)
21:48:29: ACTION[ServerThread]: Kirito-kun digs default:junglewood at (-391,16004,563)
21:48:30: ACTION[ServerThread]: sin places node default:cobble at (-367,16001,526)
21:48:33: ACTION[ServerThread]: Kirito-kun digs default:junglewood at (-391,16003,563)
21:48:33: ACTION[ServerThread]: Kirito-kun digs default:junglewood at (-391,16002,563)
21:48:35: ERROR[main]: ERROR: An unhandled exception occurred: C++ exception

In thread b68cb220:
/home/minetest/Server/src/main.cpp:1945: int main(int, char**): Assertion '0' failed.
Debug stacks:
DEBUG STACK FOR THREAD b2aff440:
#0  virtual void* CurlFetchThread::Thread()
DEBUG STACK FOR THREAD b68cb220:
#0  int main(int, char**)
(Leftover data: #1  Dedicated server branch)
(Leftover data: #2  virtual void ServerMap::save(ModifiedState))
(Leftover data: #3  void ItemStack::serialize(std::ostream&) const)
Aborted
@sapier

This comment has been minimized.

Show comment
Hide comment
@sapier

sapier Aug 22, 2014

Member

I guess some players item stack is messed up, hard to tell from those output can you try to create a gdb backtrace?

Member

sapier commented Aug 22, 2014

I guess some players item stack is messed up, hard to tell from those output can you try to create a gdb backtrace?

@Megaf

This comment has been minimized.

Show comment
Hide comment
@Megaf

Megaf Aug 22, 2014

Contributor

Somehow this bug is much less frequent now, I think is related to the circular_saw bug. I cant link to the issue, since Calinou removed his repo...

Contributor

Megaf commented Aug 22, 2014

Somehow this bug is much less frequent now, I think is related to the circular_saw bug. I cant link to the issue, since Calinou removed his repo...

@Megaf

This comment has been minimized.

Show comment
Hide comment
@Megaf

Megaf Aug 23, 2014

Contributor

At the current state of master my server wont even start anymore.

minetest@odroid-wheezy:~/Server/bin$ ./minetestserver 
Automatically selecting world at [/home/minetest/Server/bin/../worlds/world]
05:35:42: ACTION[main]: WARNING: Mod name conflict detected: "mushroom"
05:35:42: ACTION[main]: Will not load: /home/minetest/Server/bin/../mods/plantlife/mushroom
05:35:42: ACTION[main]: Overridden by: /home/minetest/Server/bin/../mods/mushroom
[MOD] WorldEdit loaded!
[UnifiedDyes] Loaded!
[Colored Wood] Loaded!
 Currency mod loading... 
[Currency] Craft_items Loaded!
[Currency] Shop Loaded!
[Currency]  Barter Loaded!
[Currency] Safe Loaded!
[Currency] Crafting Loaded!
[Currency] Income Loaded!
[Plants Lib] Loaded
[Moretrees] Loaded (2013-02-11)
[Poison Ivy] Loaded.
[Flowers] Loaded.
[Mod] Cave Stuff [0.0.3] [cavestuff] Loaded...
[OK] Mesecons
Pipeworks loaded!
Registered default:fence_wood and signs:sign_post
Registered homedecor:fence_brass and homedecor:fence_brass_with_sign
Registered homedecor:fence_wrought_iron and homedecor:fence_wrought_iron_with_sign
[HomeDecor] Loaded!
[Bushes] Loaded.
[Mushrooms] loaded.
[Plants Lib] Registered a total of 3 surface types to be evaluated, spread
[Plants Lib] across 15 actions with air-checking and 0 actions without.
05:35:46: ACTION[ServerThread]: Announcing to servers.minetest.net
05:35:46: ACTION[main]:         .__               __                   __   
05:35:46: ACTION[main]:   _____ |__| ____   _____/  |_  ____   _______/  |_ 
05:35:46: ACTION[main]:  /     \|  |/    \_/ __ \   __\/ __ \ /  ___/\   __\
05:35:46: ACTION[main]: |  Y Y  \  |   |  \  ___/|  | \  ___/ \___ \  |  |  
05:35:46: ACTION[main]: |__|_|  /__|___|  /\___  >__|  \___  >____  > |__|  
05:35:46: ACTION[main]:       \/        \/     \/          \/     \/        
05:35:46: ACTION[main]: World at [/home/minetest/Server/bin/../worlds/world]
05:35:46: ACTION[main]: Server for gameid="MegafXplore" listening on 0.0.0.0:30003.
05:35:47: ERROR[main]: ERROR: An unhandled exception occurred: C++ exception

In thread b68d8220:
/home/minetest/Server/src/main.cpp:1955: int main(int, char**): Assertion '0' failed.
Debug stacks:
DEBUG STACK FOR THREAD b3775440:
#0  virtual void* CurlFetchThread::Thread()
DEBUG STACK FOR THREAD b68d8220:
#0  int main(int, char**)
(Leftover data: #1  Dedicated server branch)
(Leftover data: #2  virtual void ServerMap::save(ModifiedState))
(Leftover data: #3  void ServerMap::saveMapMeta())
Aborted
Contributor

Megaf commented Aug 23, 2014

At the current state of master my server wont even start anymore.

minetest@odroid-wheezy:~/Server/bin$ ./minetestserver 
Automatically selecting world at [/home/minetest/Server/bin/../worlds/world]
05:35:42: ACTION[main]: WARNING: Mod name conflict detected: "mushroom"
05:35:42: ACTION[main]: Will not load: /home/minetest/Server/bin/../mods/plantlife/mushroom
05:35:42: ACTION[main]: Overridden by: /home/minetest/Server/bin/../mods/mushroom
[MOD] WorldEdit loaded!
[UnifiedDyes] Loaded!
[Colored Wood] Loaded!
 Currency mod loading... 
[Currency] Craft_items Loaded!
[Currency] Shop Loaded!
[Currency]  Barter Loaded!
[Currency] Safe Loaded!
[Currency] Crafting Loaded!
[Currency] Income Loaded!
[Plants Lib] Loaded
[Moretrees] Loaded (2013-02-11)
[Poison Ivy] Loaded.
[Flowers] Loaded.
[Mod] Cave Stuff [0.0.3] [cavestuff] Loaded...
[OK] Mesecons
Pipeworks loaded!
Registered default:fence_wood and signs:sign_post
Registered homedecor:fence_brass and homedecor:fence_brass_with_sign
Registered homedecor:fence_wrought_iron and homedecor:fence_wrought_iron_with_sign
[HomeDecor] Loaded!
[Bushes] Loaded.
[Mushrooms] loaded.
[Plants Lib] Registered a total of 3 surface types to be evaluated, spread
[Plants Lib] across 15 actions with air-checking and 0 actions without.
05:35:46: ACTION[ServerThread]: Announcing to servers.minetest.net
05:35:46: ACTION[main]:         .__               __                   __   
05:35:46: ACTION[main]:   _____ |__| ____   _____/  |_  ____   _______/  |_ 
05:35:46: ACTION[main]:  /     \|  |/    \_/ __ \   __\/ __ \ /  ___/\   __\
05:35:46: ACTION[main]: |  Y Y  \  |   |  \  ___/|  | \  ___/ \___ \  |  |  
05:35:46: ACTION[main]: |__|_|  /__|___|  /\___  >__|  \___  >____  > |__|  
05:35:46: ACTION[main]:       \/        \/     \/          \/     \/        
05:35:46: ACTION[main]: World at [/home/minetest/Server/bin/../worlds/world]
05:35:46: ACTION[main]: Server for gameid="MegafXplore" listening on 0.0.0.0:30003.
05:35:47: ERROR[main]: ERROR: An unhandled exception occurred: C++ exception

In thread b68d8220:
/home/minetest/Server/src/main.cpp:1955: int main(int, char**): Assertion '0' failed.
Debug stacks:
DEBUG STACK FOR THREAD b3775440:
#0  virtual void* CurlFetchThread::Thread()
DEBUG STACK FOR THREAD b68d8220:
#0  int main(int, char**)
(Leftover data: #1  Dedicated server branch)
(Leftover data: #2  virtual void ServerMap::save(ModifiedState))
(Leftover data: #3  void ServerMap::saveMapMeta())
Aborted
@Megaf

This comment has been minimized.

Show comment
Hide comment
@Megaf

Megaf Aug 23, 2014

Contributor

Yep, that fix works. We now get whats blocking the server startup. And I hope that now we will be able to track down future errors.

minetest@odroid-wheezy:~/Server/bin$ ./minetestserver 
Automatically selecting world at [/home/minetest/Server/bin/../worlds/world]
15:37:20: ACTION[main]: WARNING: Mod name conflict detected: "mushroom"
15:37:20: ACTION[main]: Will not load: /home/minetest/Server/bin/../mods/plantlife/mushroom
15:37:20: ACTION[main]: Overridden by: /home/minetest/Server/bin/../mods/mushroom
[MOD] WorldEdit loaded!
[UnifiedDyes] Loaded!
[Colored Wood] Loaded!
 Currency mod loading... 
[Currency] Craft_items Loaded!
[Currency] Shop Loaded!
[Currency]  Barter Loaded!
[Currency] Safe Loaded!
[Currency] Crafting Loaded!
[Currency] Income Loaded!
[Plants Lib] Loaded
[Moretrees] Loaded (2013-02-11)
[Poison Ivy] Loaded.
[OK] Mesecons
Pipeworks loaded!
Registered default:fence_wood and signs:sign_post
Registered homedecor:fence_brass and homedecor:fence_brass_with_sign
Registered homedecor:fence_wrought_iron and homedecor:fence_wrought_iron_with_sign
[HomeDecor] Loaded!
[Mushrooms] loaded.
[Plants Lib] Registered a total of 2 surface types to be evaluated, spread
[Plants Lib] across 13 actions with air-checking and 0 actions without.
15:37:23: ACTION[ServerThread]: Announcing to servers.minetest.net
15:37:23: ACTION[main]:         .__               __                   __   
15:37:23: ACTION[main]:   _____ |__| ____   _____/  |_  ____   _______/  |_ 
15:37:23: ACTION[main]:  /     \|  |/    \_/ __ \   __\/ __ \ /  ___/\   __\
15:37:23: ACTION[main]: |  Y Y  \  |   |  \  ___/|  | \  ___/ \___ \  |  |  
15:37:23: ACTION[main]: |__|_|  /__|___|  /\___  >__|  \___  >____  > |__|  
15:37:23: ACTION[main]:       \/        \/     \/          \/     \/        
15:37:23: ACTION[main]: World at [/home/minetest/Server/bin/../worlds/world]
15:37:23: ACTION[main]: Server for gameid="MegafXplore" listening on 0.0.0.0:30003.
15:37:24: ERROR[main]: ERROR: An unhandled exception occurred: createBlock(): pos. over limit
15:37:24: ERROR[main]: stack traceback:
15:37:24: ERROR[main]:  [C]: in function 'read_from_map'
15:37:24: ERROR[main]:  /home/minetest/Server/bin/../mods/pipeworks/common.lua:143: in function 'load_position'
15:37:24: ERROR[main]:  ...minetest/Server/bin/../mods/pipeworks/item_transport.lua:421: in function 'on_step'
15:37:24: ERROR[main]:  /home/minetest/Server/bin/../mods/pipeworks/luaentity.lua:331: in function </home/minetest/Server/bin/../mods/pipeworks/luaentity.lua:308>
15:37:24: ERROR[main]:  /home/minetest/Server/bin/../builtin/game/register.lua:348: in function </home/minetest/Server/bin/../builtin/game/register.lua:336>

In thread b6864220:
/home/minetest/Server/src/main.cpp:1945: int main(int, char**): Assertion '0' failed.
Debug stacks:
DEBUG STACK FOR THREAD b28ff440:
#0  virtual void* CurlFetchThread::Thread()
DEBUG STACK FOR THREAD b6864220:
#0  int main(int, char**)
(Leftover data: #1  Dedicated server branch)
(Leftover data: #2  virtual void ServerMap::save(ModifiedState))
(Leftover data: #3  void ServerMap::saveMapMeta())
Aborted
minetest@odroid-wheezy:~/Server/bin$ 
Contributor

Megaf commented Aug 23, 2014

Yep, that fix works. We now get whats blocking the server startup. And I hope that now we will be able to track down future errors.

minetest@odroid-wheezy:~/Server/bin$ ./minetestserver 
Automatically selecting world at [/home/minetest/Server/bin/../worlds/world]
15:37:20: ACTION[main]: WARNING: Mod name conflict detected: "mushroom"
15:37:20: ACTION[main]: Will not load: /home/minetest/Server/bin/../mods/plantlife/mushroom
15:37:20: ACTION[main]: Overridden by: /home/minetest/Server/bin/../mods/mushroom
[MOD] WorldEdit loaded!
[UnifiedDyes] Loaded!
[Colored Wood] Loaded!
 Currency mod loading... 
[Currency] Craft_items Loaded!
[Currency] Shop Loaded!
[Currency]  Barter Loaded!
[Currency] Safe Loaded!
[Currency] Crafting Loaded!
[Currency] Income Loaded!
[Plants Lib] Loaded
[Moretrees] Loaded (2013-02-11)
[Poison Ivy] Loaded.
[OK] Mesecons
Pipeworks loaded!
Registered default:fence_wood and signs:sign_post
Registered homedecor:fence_brass and homedecor:fence_brass_with_sign
Registered homedecor:fence_wrought_iron and homedecor:fence_wrought_iron_with_sign
[HomeDecor] Loaded!
[Mushrooms] loaded.
[Plants Lib] Registered a total of 2 surface types to be evaluated, spread
[Plants Lib] across 13 actions with air-checking and 0 actions without.
15:37:23: ACTION[ServerThread]: Announcing to servers.minetest.net
15:37:23: ACTION[main]:         .__               __                   __   
15:37:23: ACTION[main]:   _____ |__| ____   _____/  |_  ____   _______/  |_ 
15:37:23: ACTION[main]:  /     \|  |/    \_/ __ \   __\/ __ \ /  ___/\   __\
15:37:23: ACTION[main]: |  Y Y  \  |   |  \  ___/|  | \  ___/ \___ \  |  |  
15:37:23: ACTION[main]: |__|_|  /__|___|  /\___  >__|  \___  >____  > |__|  
15:37:23: ACTION[main]:       \/        \/     \/          \/     \/        
15:37:23: ACTION[main]: World at [/home/minetest/Server/bin/../worlds/world]
15:37:23: ACTION[main]: Server for gameid="MegafXplore" listening on 0.0.0.0:30003.
15:37:24: ERROR[main]: ERROR: An unhandled exception occurred: createBlock(): pos. over limit
15:37:24: ERROR[main]: stack traceback:
15:37:24: ERROR[main]:  [C]: in function 'read_from_map'
15:37:24: ERROR[main]:  /home/minetest/Server/bin/../mods/pipeworks/common.lua:143: in function 'load_position'
15:37:24: ERROR[main]:  ...minetest/Server/bin/../mods/pipeworks/item_transport.lua:421: in function 'on_step'
15:37:24: ERROR[main]:  /home/minetest/Server/bin/../mods/pipeworks/luaentity.lua:331: in function </home/minetest/Server/bin/../mods/pipeworks/luaentity.lua:308>
15:37:24: ERROR[main]:  /home/minetest/Server/bin/../builtin/game/register.lua:348: in function </home/minetest/Server/bin/../builtin/game/register.lua:336>

In thread b6864220:
/home/minetest/Server/src/main.cpp:1945: int main(int, char**): Assertion '0' failed.
Debug stacks:
DEBUG STACK FOR THREAD b28ff440:
#0  virtual void* CurlFetchThread::Thread()
DEBUG STACK FOR THREAD b6864220:
#0  int main(int, char**)
(Leftover data: #1  Dedicated server branch)
(Leftover data: #2  virtual void ServerMap::save(ModifiedState))
(Leftover data: #3  void ServerMap::saveMapMeta())
Aborted
minetest@odroid-wheezy:~/Server/bin$ 
@ShadowNinja

This comment has been minimized.

Show comment
Hide comment
@ShadowNinja

ShadowNinja Aug 26, 2014

Member

add_entity({x=99999,y=99999,z=999999}, "test:foo") also triggers this error. In this case the correct action would be to return nil. But I think this may happen after calling NoEx functions, in which case there is a deeper issue. I'm not absolutely sure though. @kwolekr may be able to figure it out.

Member

ShadowNinja commented Aug 26, 2014

add_entity({x=99999,y=99999,z=999999}, "test:foo") also triggers this error. In this case the correct action would be to return nil. But I think this may happen after calling NoEx functions, in which case there is a deeper issue. I'm not absolutely sure though. @kwolekr may be able to figure it out.

@Megaf

This comment has been minimized.

Show comment
Hide comment
@Megaf

Megaf Nov 14, 2014

Contributor

Can anyone help me confirm if the bug still present?

Contributor

Megaf commented Nov 14, 2014

Can anyone help me confirm if the bug still present?

@ShadowNinja ShadowNinja changed the title from ERROR[main]: ERROR: An unhandled exception occurred: C++ exception to InvalidPositionExceptions thrown by some env functions Nov 14, 2014

@Zeno-

This comment has been minimized.

Show comment
Hide comment
@Zeno-

Zeno- Dec 14, 2014

Contributor

@Megaf I don't know if this bug is still present. In 5b8855e the majority of exceptions that I removed (and stopped being thrown) were InvalidPositionException, so maybe it got fixed as a side effect of that update. Do you still experience the issue?

Contributor

Zeno- commented Dec 14, 2014

@Megaf I don't know if this bug is still present. In 5b8855e the majority of exceptions that I removed (and stopped being thrown) were InvalidPositionException, so maybe it got fixed as a side effect of that update. Do you still experience the issue?

@Megaf

This comment has been minimized.

Show comment
Hide comment
@Megaf

Megaf Dec 14, 2014

Contributor

No, I don't. but whoever wants to test can test using the thing that Shadow said above. I'm closing the issue.

Contributor

Megaf commented Dec 14, 2014

No, I don't. but whoever wants to test can test using the thing that Shadow said above. I'm closing the issue.

@Megaf Megaf closed this Dec 14, 2014

@ShadowNinja

This comment has been minimized.

Show comment
Hide comment
@ShadowNinja

ShadowNinja Dec 17, 2014

Member

Still happens in 0.4.10-327-g94a5a86.

Member

ShadowNinja commented Dec 17, 2014

Still happens in 0.4.10-327-g94a5a86.

@Megaf

This comment has been minimized.

Show comment
Hide comment
@Megaf

Megaf Aug 4, 2015

Contributor

@ShadowNinja Is this bug still present for you?

Contributor

Megaf commented Aug 4, 2015

@ShadowNinja Is this bug still present for you?

@ShadowNinja

This comment has been minimized.

Show comment
Hide comment
@ShadowNinja

ShadowNinja Aug 7, 2015

Member

@Megaf: Yep. Here's my test code: minetest.after(0, minetest.add_entity, {x=99999,y=99999,z=99999}, "__builtin:item")

Member

ShadowNinja commented Aug 7, 2015

@Megaf: Yep. Here's my test code: minetest.after(0, minetest.add_entity, {x=99999,y=99999,z=99999}, "__builtin:item")

@Megaf

This comment has been minimized.

Show comment
Hide comment
@Megaf

Megaf Jul 13, 2016

Contributor

@ShadowNinja I haven't seen this bug naturally occurring in ages now. Is it still present for you?

Contributor

Megaf commented Jul 13, 2016

@ShadowNinja I haven't seen this bug naturally occurring in ages now. Is it still present for you?

@ShadowNinja

This comment has been minimized.

Show comment
Hide comment
@ShadowNinja

ShadowNinja Aug 17, 2016

Member

Seems fixed: ERROR[Server]: ServerEnvironment::addActiveObjectRaw(): object position (999990,999990,999990) outside maximum range

Member

ShadowNinja commented Aug 17, 2016

Seems fixed: ERROR[Server]: ServerEnvironment::addActiveObjectRaw(): object position (999990,999990,999990) outside maximum range

@Megaf

This comment has been minimized.

Show comment
Hide comment
@Megaf

Megaf Aug 21, 2016

Contributor

Finally, thanks :)

Contributor

Megaf commented Aug 21, 2016

Finally, thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment