AltME: R3-GUI

Messages

Cyphre
also this is a bit confusing:
>> probe make event! [type: 'read port: p]
make event! [
    type: 'read
    port: make port! [
        spec: make object! [
            title: "TCP Networking"
            scheme: 'tcp
            ref: tcp://:8000
            path: none
            host: none
            port-id: 8000
        ]
...
    gob: make port! [
        spec: make object! [
            title: "TCP Networking"
            scheme: 'tcp
            ref: tcp://:8000
            path: none
            host: none
            port-id: 8000
        ]
...
    offset: 0x0
]
Andreas
What's P?
Cyphre
why is the GOB fileld here? and why it is of port! value?
sorry,
p: open tcp://:8000
(just something to test)
maybe it's just a bug of event! mold though
Andreas
I think that's because the gob & port fields share memory in an event.
Cyphre
yes, that's possible
GrahamC
as you can see https://github.com/gchiu/RSOChat/blob/master/rsochat.r3#L199 my mini-http uses tcp port
Andreas
So yes, looks like a MOLD quirk.
Cyphre
GRaha, yes, so that proves the crash can be caused by plain TCP scheme. So we should somehow reduce the case to a minimal code which crashes R3...
=Graham
Andreas
R3GUI does not, by chance, generate READ events :) ?
GrahamC
It's not due to the timer code because I saw this bug before then
Cyphre
Andreas, fortunately no :)
Andreas
Well, fortunate for R3GUI, I guess :)
Cyphre
ah, sorry it's not READ but CONNECT event!
Andreas, yes :)
GrahamC
The original CC ticket created by Adrian doesn't actually say what Carl fixed
GrahamC
If I close the gui down, does that just leave the network events running?
Cyphre
I tried to put RECYCLE into the awake handler on every triggered call and I'm now getting:
** Internal error: not enough memory
** Where: read switch awake switch -apply- wake-up loop -apply- wait forever try
do-events if view do case either include-script include all do either either ei
ther -apply-
** Near: read event/port/state/connection
So there must be something fishy here...

Last message posted 270 weeks ago.