Page 1 of 2

xkore3 crashes every map change

Posted: 15 Dec 2018, 08:17
by gooey
Hi.

Xkore3 crashes whenever I change map.
By change map I mean city to city. Example, from prontera->alberta, from alberta->payon, etc.
It does not happen if its within city. e.g. yuno->yuno_fild08, yuno->yuno_in
I'm pretty sure my openkore is updated since I just pulled it from the repo

Here's the error text

Code: Select all

OpenKore version what-will-become-2.1
Network state = 4
Network handler = Network::XKoreProxy
Revision: git:c3d3d28_2018-12-14 ctime:2018_09_08
Loaded plugins:
  plugins/breakTime/breakTime.pl (breakTime; description: Automatically disconnect and reconnect at certain times of the day)
  plugins/macro/macro.pl (macro; description: allows usage of macros)
  plugins/profiles/profiles.pl (profiles; description: Profiles Selector)

Error message:
Bad arg length for Socket::inet_ntoa, length is 0, should be 4 at src/Network/XKoreProxy.pm line 624.

Stack trace:
Bad arg length for Socket::inet_ntoa, length is 0, should be 4 at src/Network/XKoreProxy.pm line 624.
 at src/Interface/Wx.pm line 163
	Interface::Wx::mainLoop('Interface::Wx=HASH(0x5c79a84)') called at openkore.pl line 97
	main::__start() called at start.pl line 136

Died at this line:
  		} else {
* 			$mapInfo->{ip} = inet_ntoa($mapInfo->{ip});
  		}


Re: xkore3 crashes every map change

Posted: 15 Dec 2018, 09:16
by fadreus
Only in XKore 3?
How about 1/2?

WxStart only or with start.exe too?

Re: xkore3 crashes every map change

Posted: 15 Dec 2018, 17:30
by gooey
Xkore 3 only, I think.
I tried Xkore 2 and it seems to be working properly. I do not know about Xkore 1 because I am getting some errors when I tried to run it.

Both for wxstart and start.

Re: xkore3 crashes every map change

Posted: 15 Dec 2018, 22:49
by fadreus
Could you run in XKore 1 too and then file this issue at github with both error from Xkore 3 and XKore 1.

Re: xkore3 crashes every map change

Posted: 24 Dec 2018, 07:27
by Sasaki Haise
any solution for this?

Re: xkore3 crashes every map change

Posted: 25 Dec 2018, 06:13
by zexeta
I use xkore 3 daily on iro, never had this problem. You either didn't fully update or messed with the timeouts in some very odd way.

Re: xkore3 crashes every map change

Posted: 06 Jan 2019, 04:28
by Raven13
Having the same issue with city to city warp as well as memorial dungeon and probably more but after getting this error on memorial dungeon my character got stuck in limbo until GMs reset their location back to prontera. Oh and I am on fRO.

Code: Select all

OpenKore version what-will-become-2.1
@ai_seq = NPC follow
Network state = 4
Network handler = Network::XKoreProxy
Revision: ctime:2018_12_27
Loaded plugins:
  plugins/breakTime/breakTime.pl (breakTime; description: Automatically disconnect and reconnect at certain times of the day)
  plugins/item_weight_recorder/item_weight_recorder.pl (item_weight_recorder; description: item_weight_recorder plugin)
  plugins/macro/macro.pl (macro; description: allows usage of macros)
  plugins/map/map.pl (map; description: map)
  plugins/profiles/profiles.pl (profiles; description: Profiles Selector)
  plugins/raiseSkill/raiseSkill.pl (raiseSkill; description: automatically raise character skills)
  plugins/raiseStat/raiseStat.pl (raiseStat; description: automatically raise character stats)
  plugins/reconnect/reconnect.pl (reconnect; description: v1.0)
  plugins/xConf/xConf.pl (xConf; description: commands for change items_control, mon_control, pickupitems, priority)

Error message:
Bad arg length for Socket::inet_ntoa, length is 0, should be 4 at src/Network/XKoreProxy.pm line 624.

Stack trace:
Bad arg length for Socket::inet_ntoa, length is 0, should be 4 at src/Network/XKoreProxy.pm line 624.
 at src/Network/XKoreProxy.pm line 624
	Network::XKoreProxy::modifyPacketIn('Network::XKoreProxy=HASH(0x68ca1dc)', '\x{92}\x{0}0011@sara.gat\x{0}E\x{0}\x{fa}\x{0}\x{9b}\x{0}6$L\x{8d}\x{7}\x{12}') called at src/Network/XKoreProxy.pm line 210
	Network::XKoreProxy::clientSend('Network::XKoreProxy=HASH(0x68ca1dc)', '\x{92}\x{0}0011@sara.gat\x{0}E\x{0}\x{fa}\x{0}\x{9b}\x{0}6$L\x{8d}\x{7}\x{12}') called at src/functions.pl line 756
	main::mainLoop_initialized() called at src/functions.pl line 75
	main::mainLoop() called at src/Interface.pm line 75
	Interface::mainLoop('Interface::Console::Win32=HASH(0x32dd63c)') called at openkore.pl line 97
	main::__start() called at start.pl line 136

Died at this line:
  		} else {
* 			$mapInfo->{ip} = inet_ntoa($mapInfo->{ip});
  		}

Re: xkore3 crashes every map change

Posted: 06 Jan 2019, 13:59
by fadreus

Re: xkore3 crashes every map change

Posted: 06 Jan 2019, 14:43
by alisonrag
@opn-1
go to openkore\src\network\XkoreProxy.pm line 624 and change this:

Code: Select all

$mapInfo->{ip} = inet_ntoa($mapInfo->{ip});
to this:

Code: Select all

$mapInfo->{ip} = inet_ntoa($mapInfo->{'IP'});
post result here please

Re: xkore3 crashes every map change

Posted: 10 Jan 2019, 08:27
by Raven13
thanks alison that seems to have resolved it