[Oxyd] Error Util.cpp:63: Unexpected error occurred

This subforum contains all the issues which we already resolved.
OvermindDL1
Fast Inserter
Fast Inserter
Posts: 192
Joined: Sun Oct 05, 2014 6:12 am
Contact:

[Oxyd] Error Util.cpp:63: Unexpected error occurred

Post by OvermindDL1 »

<edit>
Noticed the Util.cpp:63 crash in the "Resolved Problems and Bugs", so I guess this can be ignored/deleted unless the information here is of further help for anything.
</edit>

Greetings,

Getting an error on `Error Util.cpp:63: Unexpected error occurred` repeatedly in a variety of contexts on version `0.000 2015-11-15 22:03:12; Factorio 0.12.17 (Build 17307, linux64)`. Here are the most recent two stacktraces although the Util.cpp:63 crash has occurred quite a huge variety of times thus far:

Code: Select all

Factorio crashed. Generating symbolized stacktrace, please wait ...
 302.188 Warning Logger.cpp:316: Symbols.size() == 45, usedSize == 23
#0  0x72f5f9 in CrashHandler::SignalHandler(int) at /tmp/factorio-Kf7NLw/src/Util/CrashHandler.cpp:141
#1  0x7f7dfaca72f0 in ?? at ??:0
#2  0x87099e in ForceData::addAlert(Entity*, AlertType) at /usr/include/c++/5/bits/stl_tree.h:1637
#3  0x8713cf in lower_bound at /usr/include/c++/5/bits/stl_tree.h:1101
#4  0x8715cd in lower_bound at /usr/include/c++/5/bits/stl_map.h:913
#5  0x4c4fa7 in operator[] at /usr/include/c++/5/bits/stl_map.h:476
#6  0x54cbed in addAlert at /tmp/factorio-Kf7NLw/src/Info/AlertCenter.cpp:105
#7  0x40bff0 in addAlert at /tmp/factorio-Kf7NLw/src/Force/ForceData.cpp:423
#8  0x97d33d in EntityWithOwner::damage(DamageHit&) at /tmp/factorio-Kf7NLw/src/Entity/EntityWithOwner.cpp:95
#9  0x97dd1c in TargeterBase::~TargeterBase() at /tmp/factorio-Kf7NLw/src/Util/Targeter.cpp:47
#10 0x97e3a8 in Targeter<Entity>::~Targeter() at /tmp/factorio-Kf7NLw/src/Util/Targeter.hpp:63
#11 0x97e706 in DamageHit::~DamageHit() at /tmp/factorio-Kf7NLw/src/Damage/DamageHit.hpp:9
#12 0x97f035 in damage at /tmp/factorio-Kf7NLw/src/Entity/Character.cpp:1176
#13 0x5fe471 in TargeterBase::~TargeterBase() at /tmp/factorio-Kf7NLw/src/Util/Targeter.cpp:47
#14 0x982081 in Targeter<Entity>::~Targeter() at /tmp/factorio-Kf7NLw/src/Util/Targeter.hpp:63
#15 0x7faa41 in DamageHit::~DamageHit() at /tmp/factorio-Kf7NLw/src/Damage/DamageHit.hpp:9
#16 0xa24187 in applyInternal at /tmp/factorio-Kf7NLw/src/Trigger/DamageTriggerEffectItem.cpp:21
#17 0xa2a9fe in TriggerDelivery::apply(Surface&, Vector const&, ShootingTarget const&, ShootingTarget const&, TriggerModifier const&) at /tmp/factorio-Kf7NLw/src/Trigger/TriggerEffectItem.cpp:43
#18 0x6de6a8 in apply at /tmp/factorio-Kf7NLw/src/Trigger/TriggerEffect.cpp:25
#19 0x7da074 in apply at /tmp/factorio-Kf7NLw/src/Trigger/TriggerDelivery.cpp:15
#20 0xd3e3af in DirectTriggerItem::apply(Surface&, Vector const&, ShootingTarget const&, ShootingTarget const&, TriggerModifier const&) const at /tmp/factorio-Kf7NLw/src/Trigger/DirectTriggerItem.cpp:15
#21 0x7f7dfc8596aa in Shooter::doShoot(ShootingTarget const&, ShootingTarget const&, ProjectileAttackParameters const*, AmmoType const&, Surface&, ForceID, Vector const&) [clone .constprop.55434] at /tmp/factorio-Kf7NLw/src/Trigger/Trigger.cpp:18
#22 0x7f7dfad78eed in doShoot at /tmp/factorio-Kf7NLw/src/Trigger/Shooter.cpp:322
 303.269 Warning Logger.cpp:316: Symbols.size() == 44, usedSize == 22
 303.270 Error Util.cpp:63: Unexpected error occurred. You can help us to solve the problem by posting the contents of the log file on the Factorio forums.

Code: Select all

Factorio crashed. Generating symbolized stacktrace, please wait ...
 689.790 Warning Logger.cpp:316: Symbols.size() == 21, usedSize == 17
#0  0x72f5f9 in CrashHandler::SignalHandler(int) at /tmp/factorio-Kf7NLw/src/Util/CrashHandler.cpp:141
#1  0x7f351027c2f0 in ?? at ??:0
#2  0x7f350e214700 in ?? at ??:0
#3  0x7f350e215cf3 in ?? at ??:0
#4  0x7f350e21d31c in ?? at ??:0
#5  0x7f350deca3e7 in ?? at ??:0
#6  0x7f350decc2bd in ?? at ??:0
#7  0x7f350ded7c20 in ?? at ??:0
#8  0xbaddcd in _al_ogl_setup_fbo at /tmp/factorio-Kf7NLw/libraries/Allegro/src/opengl/ogl_fbo.c:280
#9  0xbabc67 in _al_ogl_set_target_bitmap at /tmp/factorio-Kf7NLw/libraries/Allegro/src/opengl/ogl_display.c:73
#10 0xbb2575 in al_set_target_bitmap at /tmp/factorio-Kf7NLw/libraries/Allegro/src/tls.c:432
#11 0x4e8a2c in RoboportInfoRenderer::render(RenderData const&) const at /tmp/factorio-Kf7NLw/src/Graphics/RoboportInfoRenderer.cpp:26
#12 0x528310 in GameRenderer::render(RenderData const&) at /tmp/factorio-Kf7NLw/src/Graphics/GameRenderer.cpp:148
#13 0xa32b02 in MainLoop::run(boost::filesystem::path const&, boost::filesystem::path const&, bool, bool, std::string const&) [clone .constprop.51633] at /tmp/factorio-Kf7NLw/src/GameView.cpp:778
#14 0xa8502e in render at /tmp/factorio-Kf7NLw/src/Game.cpp:282
#15 0x7f3510267a40 in render at /tmp/factorio-Kf7NLw/src/MainLoop.cpp:425
#16 0x40a379 in tickStep at /tmp/factorio-Kf7NLw/src/MainLoop.cpp:474
 690.264 Warning Logger.cpp:316: Symbols.size() == 20, usedSize == 16
 690.265 Error Util.cpp:63: Unexpected error occurred. You can help us to solve the problem by posting the contents of the log file on the Factorio forums.
They happen in single player and multiplayer, tried on two different systems with identical results.

The complete and entire logs of the two, although the Util.cpp:63 error happens multiple times and seemingly randomly, we have managed to find a single instance where it has happened in all cases, that is when killing the spitter spawner with the attached save game with the attached mod 'pack' that I am currently using, go to the southern part of the base (follow the conveyor belt of ammo out of the walls south) and kill the spitter spawner, wait about 5 seconds then crash every time it has been tested, the username is OvermindDL1 if you wish to spawn straight down there.

Log1: http://overminddl1.com/Factorio/crashes ... urrent.log
Log2: http://overminddl1.com/Factorio/crashes ... evious.log
Save Game with the below mod pack set: http://overminddl1.com/Factorio/crashes ... osave1.zip
Mods: http://overminddl1.com/Factorio/crashes ... p/mods.zip

Both of the systems used are using Kubuntu 15.10, hardware between both are entirely distinct (AMD/nVidia, AMD/Intel, etc...).

Oxyd
Former Staff
Former Staff
Posts: 1428
Joined: Thu May 07, 2015 8:42 am
Contact:

Re: [Oxyd] Error Util.cpp:63: Unexpected error occurred

Post by Oxyd »

This was caused by Natural Evolution ordering a group of biters to attack a disconnected player. I've fixed it by disallowing access to LuaPlayer::character if the player is currently disconnected, so Natural Evolution (and possibly other mods) will have to be updated to stop trying to do that.

So: Fixed for 0.12.18.

OvermindDL1
Fast Inserter
Fast Inserter
Posts: 192
Joined: Sun Oct 05, 2014 6:12 am
Contact:

Re: [Oxyd] Error Util.cpp:63: Unexpected error occurred

Post by OvermindDL1 »

Interesting, though it also happened when both players were online as well?

Oxyd
Former Staff
Former Staff
Posts: 1428
Joined: Thu May 07, 2015 8:42 am
Contact:

Re: [Oxyd] Error Util.cpp:63: Unexpected error occurred

Post by Oxyd »

OvermindDL1 wrote:Interesting, though it also happened when both players were online as well?
For some reason, the map contains three players: You are there twice. So even with both players online, there was still a third offline player.

OvermindDL1
Fast Inserter
Fast Inserter
Posts: 192
Joined: Sun Oct 05, 2014 6:12 am
Contact:

Re: [Oxyd] Error Util.cpp:63: Unexpected error occurred

Post by OvermindDL1 »

Interesting.

So, I removed the game.player access from that mod (as its only use was to send biters) and that fixed the spawner crash, though now we got a new one that we've been unable to replicate just yet, so I only have a log for it, and it seems less useful, but here it is in its Util.cpp:63'ness: http://overminddl1.com/Factorio/crashes ... /10_26.log
The drive is not out of space and is otherwise passing tests, so unsure about the "Error when writing to file.." part at the start of the stacktrace...

EDIT: Last log part:

Code: Select all

11583.964 Warning Thread.cpp:42: Thread exception: Error when writing to file..
Factorio crashed. Generating symbolized stacktrace, please wait ...
#0  0x72f5f9 in CrashHandler::SignalHandler(int) at /tmp/factorio-Kf7NLw/src/Util/CrashHandler.cpp:141
#1  0x7f54b4a482f0 in ?? at ??:0
#2  0x7f54b55d2bc9 in ?? at ??:0
11588.912 Error Util.cpp:63: Unexpected error occurred. You can help us to solve the problem by posting the contents of the log file on the Factorio forums.

Oxyd
Former Staff
Former Staff
Posts: 1428
Joined: Thu May 07, 2015 8:42 am
Contact:

Re: [Oxyd] Error Util.cpp:63: Unexpected error occurred

Post by Oxyd »

OvermindDL1 wrote:Interesting.

So, I removed the game.player access from that mod (as its only use was to send biters) and that fixed the spawner crash, though now we got a new one that we've been unable to replicate just yet, so I only have a log for it, and it seems less useful, but here it is in its Util.cpp:63'ness: http://overminddl1.com/Factorio/crashes ... /10_26.log
The drive is not out of space and is otherwise passing tests, so unsure about the "Error when writing to file.." part at the start of the stacktrace...

EDIT: Last log part:

Code: Select all

11583.964 Warning Thread.cpp:42: Thread exception: Error when writing to file..
Factorio crashed. Generating symbolized stacktrace, please wait ...
#0  0x72f5f9 in CrashHandler::SignalHandler(int) at /tmp/factorio-Kf7NLw/src/Util/CrashHandler.cpp:141
#1  0x7f54b4a482f0 in ?? at ??:0
#2  0x7f54b55d2bc9 in ?? at ??:0
11588.912 Error Util.cpp:63: Unexpected error occurred. You can help us to solve the problem by posting the contents of the log file on the Factorio forums.
Looks completely unrelated. Make a new bug report.

Post Reply

Return to “Resolved Problems and Bugs”