Discussion:
Haxevideo Overflow with latest flash player
Daniel Frith
2009-03-02 01:08:53 UTC
Permalink
Hi,
I am getting this error if the latest version of flash player
plays/records using haxevideo 1.1:

[2009-03-02 00:28:21] Overflow

Called from haxe/io/Input.hx line 219
Called from format/Rtmp.hx line 126
Called from hxvid/Client.hx line 638
Called from hxvid/Server.hx line 36
Called from hxvid/RealtimeServer.hx line 283
Called from hxvid/RealtimeServer.hx line 142


Any ideas?
--
haXe - an open source web programming language
http://haxe.org
Zai Jian
2009-03-02 03:45:06 UTC
Permalink
Post by Daniel Frith
Hi,
I am getting this error if the latest version of flash player
[2009-03-02 00:28:21] Overflow
Called from haxe/io/Input.hx line 219
Called from format/Rtmp.hx line 126
Called from hxvid/Client.hx line 638
Called from hxvid/Server.hx line 36
Called from hxvid/RealtimeServer.hx line 283
Called from hxvid/RealtimeServer.hx line 142
Any ideas?
Hello,

Rtmp.hx :

public function readHandshake() {
var uptimeLow = i.readUInt16();
var uptimeHigh = i.readUInt16();
var ping = i.readUInt30(); <-------
line 126 causing an overflow error
return i.read(HANDSHAKE_SIZE - 8);
}


You get an overflow error due the fact neko uses 31 bits for integers.
The value read must be higher.

And moreover the way flash communicates with the server regarding
handshake has been changed.

There was some compatibility in the previous versions of flash player
but maybe the last one breaks it.

As "uptimeLow", "uptimeHigh" and "ping" are not used, you can actually
replace the first 3 lines of this function with:

i.readInt32();
i.readInt32();

Regards,

Zai
--
haXe - an open source web programming language
http://haxe.org
Daniel Frith
2009-03-02 11:36:15 UTC
Permalink
That seems to have fixed it,
Thanks
Post by Zai Jian
Post by Daniel Frith
Hi,
I am getting this error if the latest version of flash player
[2009-03-02 00:28:21] Overflow
Called from haxe/io/Input.hx line 219
Called from format/Rtmp.hx line 126
Called from hxvid/Client.hx line 638
Called from hxvid/Server.hx line 36
Called from hxvid/RealtimeServer.hx line 283
Called from hxvid/RealtimeServer.hx line 142
Any ideas?
Hello,
public function readHandshake() {
var uptimeLow = i.readUInt16();
var uptimeHigh = i.readUInt16();
var ping = i.readUInt30(); <-------
line 126 causing an overflow error
return i.read(HANDSHAKE_SIZE - 8);
}
You get an overflow error due the fact neko uses 31 bits for integers.
The value read must be higher.
And moreover the way flash communicates with the server regarding
handshake has been changed.
There was some compatibility in the previous versions of flash player
but maybe the last one breaks it.
As "uptimeLow", "uptimeHigh" and "ping" are not used, you can actually
i.readInt32();
i.readInt32();
Regards,
Zai
--
haXe - an open source web programming language
http://haxe.org
--
haXe - an open source web programming language
http://haxe.org
Nicolas Cannasse
2009-03-04 11:06:40 UTC
Permalink
Post by Zai Jian
Post by Daniel Frith
Hi,
I am getting this error if the latest version of flash player
[2009-03-02 00:28:21] Overflow
Called from haxe/io/Input.hx line 219
Called from format/Rtmp.hx line 126
Called from hxvid/Client.hx line 638
Called from hxvid/Server.hx line 36
Called from hxvid/RealtimeServer.hx line 283
Called from hxvid/RealtimeServer.hx line 142
Any ideas?
Hello,
public function readHandshake() {
var uptimeLow = i.readUInt16();
var uptimeHigh = i.readUInt16();
var ping = i.readUInt30(); <-------
line 126 causing an overflow error
return i.read(HANDSHAKE_SIZE - 8);
}
You get an overflow error due the fact neko uses 31 bits for integers.
The value read must be higher.
And moreover the way flash communicates with the server regarding
handshake has been changed.
There was some compatibility in the previous versions of flash player
but maybe the last one breaks it.
Fixed on SVN.

Best,
Nicolas
--
haXe - an open source web programming language
http://haxe.org
Loading...