|
|
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » Witz template cryptic error messages
Witz template cryptic error messages [message #42940] |
Tue, 15 April 2014 12:29 |
mingodad
Messages: 53 Registered: February 2008 Location: Spain
|
Member |
|
|
Hello !
I'm playing with witz and getting funny cryptic error messages that do not help much to find the problem:
----
Internal server error
Invalid value conversion: int -> N3Upp7WStringE
----
|
|
|
|
|
|
|
Re: Witz template cryptic error messages [message #42945 is a reply to message #42944] |
Tue, 15 April 2014 13:58 |
mingodad
Messages: 53 Registered: February 2008 Location: Spain
|
Member |
|
|
I did a microbenchmark with ESC, lua, luajit, SquiLu:
fact(x)
{
if (x <= 1) {
return 1;
}
return x * fact (x-1);
}
main() {
i=0;
x = 0;
while (i < 100000) {
x = fact (12);
i+= 1;
}
Print(to_string(x) + "\n");
}
$ time ./EscApp
479001600
real 0m4.314s
user 0m4.304s
sys 0m0.000s
$ time squilu fact2.nut
479001600
real 0m0.425s
user 0m0.232s
sys 0m0.008s
$ time luajit fact2.lua
479001600
real 0m0.079s
user 0m0.016s
sys 0m0.000s
$ time lua-5.1.5 fact2.lua
479001600
real 0m0.243s
user 0m0.160s
sys 0m0.000s
[Updated on: Tue, 15 April 2014 13:59] Report message to a moderator
|
|
|
|
|
Re: Witz template cryptic error messages [message #42951 is a reply to message #42942] |
Wed, 16 April 2014 08:29 |
|
mirek
Messages: 14195 Registered: November 2005
|
Ultimate Member |
|
|
mingodad wrote on Tue, 15 April 2014 11:19The problem happen because I have a "$post_identity()" instruction on a form but I'm accessing this page through GET somehow it dies here:
While I agree there might be a problem in Skylark here, I believe it is more complicated that this.
In any case, just looking at the code, post_identity should work just fine with GET (of course, it is sort of weird to use it for GET, but whatever...).
Then I have tried adding $post_identity() to Skylark05 example and it seems to work just fine.
One possibility is that you are using some function that breaks the witz's stack frame.
Perhaps you could post the testcase?
Mirek
[Updated on: Wed, 16 April 2014 08:30] Report message to a moderator
|
|
|
|
Goto Forum:
Current Time: Sat Jan 25 22:25:36 CET 2025
Total time taken to generate the page: 0.05360 seconds
|
|
|