World: r3wp
[RAMBO] The REBOL bug and enhancement database
older newer | first last |
Ammon 19-Apr-2005 [401] | Dido |
Volker 19-Apr-2005 [402] | IIRC in the bbs-project Carl prefered [data-file: dir/file] over [data-file: join dir file]. i prefer that too, but currently no "/", so [data-dir: dirize dir/file], ugly IMHO.. And now comes changing file-names when they are numbers. thats a bit risky to me. |
Carl 19-Apr-2005 [403x3] | The advantage of using dir/:file is that if dir has no ending /, it will be added. JOIN does not have that feature. |
Literal filenames within paths are a bit of an exception -- the standard method should be to use % or " around them. | |
Eg: dir/"123.txt" or dir/%123.txt | |
Anton 20-Apr-2005 [406x3] | Well, I'm sticking to my guns - I have some supporters, and the opposition is weak :) so I'm making a rambo ticket. |
I've just noticed this: | |
o: make object! [type: 'face] third o ; == [type: face] ; <---- should be a lit-word! ? | |
JaimeVargas 20-Apr-2005 [409x2] | type? 'face == word! |
because 'face gets evaluated. | |
Anton 20-Apr-2005 [411x11] | Ah yes... |
third face ;== [type: face ..... | |
I guess I'm just pointing out the difference between THIRD and MOLD again. | |
(I wanted to clone FACE without the TYPE attribute) | |
OK, submitted a ticket "Load paths in a more relaxed manner". | |
Gabriele: sorry, can you add to the ticket {refer also to existing ticket "Allow final slash on path - eg. 'hello/" http://www.rebol.net/cgi-bin/rambo.r?id=3637&} | |
callback | |
crash: "Root block overflow" | |
DLLIMPORT void test_callback( void (*pFunc)() ){ pFunc(); } | |
loop 7 [ test-callback: make routine! [ c [callback! []] ] lib "test_callback" ] | |
Open the library, make the routine 7 times, crash guaranteed on my system. | |
JaimeVargas 20-Apr-2005 [422x2] | That as infinite loop isn't it. Why will this be an error? I am not sure rebol can catch that problem. |
There is a limit on the number of callbacks available I think is 16. | |
Anton 20-Apr-2005 [424] | Not infinite loop, the function hasn't even been called yet. Only in routine making stage. |
JaimeVargas 20-Apr-2005 [425] | The limit maybe lower. |
Anton 20-Apr-2005 [426x2] | Other types of routines can be made thousands of times with no problem. |
If one of the arguments is of type callback! then say hello to crash-land. | |
JaimeVargas 20-Apr-2005 [428] | That is because rebol can only have maximum number of callbacks. It is a design decision. |
Anton 20-Apr-2005 [429x2] | I note that 7 is less than 16. |
and it should not crash either. | |
JaimeVargas 20-Apr-2005 [431] | Yes. It shouldn't crash. Post it to RAMBO. |
Anton 20-Apr-2005 [432] | Ok, probably tomorrow. Perhaps someone else has some comments. I simplified yet further to remove the pFunc(); call. |
sqlab 25-Apr-2005 [433x2] | How safe is catch? I have some rebol applications serving message communication (around 1000 to 2000 messages per day mostly) running for more than half a year on Windows2000 Server without interruption since the last update of the OS for security reasons. Recently I had to add some message splitting: one-message --> [message-part-1 message-part-2 message-part-3] I used a construct similar to this forever [ until [new-messages-available] foreach message new-messages [ catch [ if not important [throw] do-some-heavy-message-processing-and data-completion-using-odbc if some-tests [throw] message-parts: split-messages message until [ catch [ message: first message-parts do-more-conversions if other-tests [throw] deliver message emtpy? message-parts: next message-parts ] ] ] ] ] Now I saw two crashes in one day. I was somehow able to reproduce the crash Invalid data type during recycle by playing again the history of one to two weeks. But the crash happened always processing another message. |
As I had seen in the past instable behaviour with constructs like this foreach ... [ catch [ .. data: any [ a b throw ] .. .. ] ] I replaced the inner catch with statements like this if not other-tests [ deliver message ] and the crash went away. Now I am curious if someone else encountered the same behaviour too? | |
Anton 25-Apr-2005 [435x2] | I don't know, but if you have found instability there that would be a great bug report !! |
By saying "by playing again the history of one to two weeks", do you mean that this removes all the network activity ? Is ODBC removed too ? Is the crash always on the same message ? | |
sqlab 25-Apr-2005 [437] | playing again the history of one to two weeks means I process all messages of that period in the same order and send them to a dummy receiver. Of course, there is some non reproducibility regarding the time axis, as this takes around three to four hours compared with two weeks in reality and more processes running at the same time on the production server. On the production server the crash happened in reality with less messages two times during a period of around two hours. The crash happens not always at the same message. This can depend of the time behaviour or that the data, that are retrieved from the ODBC source is from a live DB, with many inserts, updates and deletes. Without ODBC the crash did not happen. |
Anton 25-Apr-2005 [438x3] | Perhaps you can send the same message 2000 times to see if the content of the messages makes any difference. |
And just do some minimal ODBC activity to see if that still triggers it. | |
Ok, submitted a ticket for the DLL callback crash "root block overflow", I mentioned a few days ago. (Gabriele, sorry, first I submitted an empty one). | |
Gabriele 25-Apr-2005 [441] | Carl will need to delete that. |
Anton 28-Apr-2005 [442x2] | I've just noticed a new global word PATH existing since View 1.2.10, an undocumented function. |
It doesn't seem to do much that is useful.. | |
Gabriele 28-Apr-2005 [444] | i think it's an internal function that is being exposed by error. (i think the newer betas lack the code to unset internal words like native, path, or even set-browser-path) |
Anton 28-Apr-2005 [445] | Is it worth a ticket ? |
Gabriele 28-Apr-2005 [446x2] | my guess is that native is used to define the natives coming from components, and path is probably used somehow in path evaluation (though i have no idea why it should exist as an accessible function, maybe it is related to components initialization too) |
not sure, a reminder is never bad, though i guess Carl is aware of this. | |
Anton 28-Apr-2005 [448] | Probably it's better to wait for betas closer to a full release. |
Izkata 8-May-2005 [449] | I just uncovered this while working on that JumpField over in the View group... >> print compress {A: #"^M" { switch A [ { #"^M" [print {A}] { ] { } #{ 789C73B4525056E255E22A2ECF2C49CE50705488E602F115A20B8A32F34A14AA 1D6B63B962B900B34009D526000000 } >> do decompress #{ { 789C73B4525056E255E22A2ECF2C49CE50705488E602F115A20B8A32F34A14AA { 1D6B63B962B900B34009D526000000 { } ** Syntax Error: Invalid char -- #" ** Near: (line 1) A: #" >> print decompress #{ { 789C73B4525056E255E22A2ECF2C49CE50705488E602F115A20B8A32F34A14AA { 1D6B63B962B900B34009D526000000 { } : # switch A [ [print {A}] ] >> |
Anton 9-May-2005 [450] | The error reduces to: >> load {#"^M"} ** Syntax Error: Invalid char -- #" ** Near: (line 1) #" Here's another one: >> load {#"^J"} ** Syntax Error: Invalid char -- #" ** Near: (line 1) #" |
older newer | first last |