Weird Rebol Error Message
[1/5] from: coussement:c:itc:mil:be at: 23-Nov-2000 15:24
Hi Rebols:
The app I'm working on is rather speed and image intensive:
REBOL generates a DHTML page which displays an image during 3/100th sec,
then switch to the generation of another page which requests an user's
input, etc...
Those pages are distributed by a hacked rebweb as page server.
Well after a few cycle, I get the message:
Invalid data during recycle
and the server crashes !
Do I have to put some recycle instruction somewhere ?
Any other idea ?
Best regards ;-)
Christophe
[2/5] from: al:bri:xtra at: 24-Nov-2000 15:58
Christophe wrote:
> The app I'm working on is rather speed and image intensive:
>
> REBOL generates a DHTML page which displays an image during 3/100th sec,
Do you really mean 0.03 seconds or 30 milliseconds? :-\
> Those pages are distributed by a hacked rebweb as page server.
>
> Well after a few cycle, I get the message:
>
> "Invalid data during recycle"
>
> and the server crashes !
Possibly the GC bug?
> Do I have to put some recycle instruction somewhere ?
No. You shouldn't need to.
> Any other idea ?
How about showing the code on the list? So we can see where the problem
lies?
Andrew Martin
ICQ: 26227169
http://members.nbci.com/AndrewMartin/
[3/5] from: fsievert:uos at: 24-Nov-2000 10:38
On Thu, 23 Nov 2000, CRS - Psy Sel/SPO, COUSSEMENT Christophe, CPN wrote:
> REBOL generates a DHTML page which displays an image during 3/100th sec,
> then switch to the generation of another page which requests an user's
<<quoted lines omitted: 5>>
> Do I have to put some recycle instruction somewhere ?
> Any other idea ?
You can try to use the latest /CORE xper, which has some bugfixes. When it
still crashes you can try the script
http://proton.cl-ki.uni-osnabrueck.de/REBOL/bugfixes.r
Which trys to fix some GC-Problems.
If this doesn't work, you can try this:
- First try _not_ to use %bugfixes.r
- add recycle/off at the beginning of your script
- add recycle in all functions and loops
You can also try to only add this at the beginning of your program:
---snip---
recycle/off
func: func [
"Defines a user function with given spec and body." [catch]
spec [block!] {Help string (opt) followed by arg words (and opt type
and str
ing)}
body [block!] "The body block of the function"
][
insert body: copy body [if 1 = random 100 [recycle]]
throw-on-error [make function! spec body]
]
---snap---
This will turn of the recycle and recycles from time to time when one of
your functions is called.
And last but not least you can try to find out which part of your program
causes the crash, create a small demonstration script and send this to
[feedback--rebol--com]
Hope that helps.
Frank
[4/5] from: coussement:c:itc:mil:be at: 28-Nov-2000 9:36
Andrew, Frank:
Thanks for answering to my problem.
Sorry for the error: the image is displayed during 3/10th sec and not
3/100th sec (you should have a good eye for this ;-))).
I will first try Frank's suggestions, and if not working, publish a small
demo to the list for further investigations...
I'll keep you informed
Kind regards,
Christophe
[5/5] from: coussement:c:itc:mil:be at: 6-Dec-2000 16:23
Frank:
As promise I give you a feedback...
It seems that the redefinition of func with recycle was the solution to my
problems!
After some fine tuning, I found it better to set the random limit to 10.
Thx a lot! I will had your name to the thanks-list of the project !
CU,
Christophe
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted