Project

General

Profile

error when running examples in Windows

Added by Pedro Vicente almost 8 years ago

I downloaded the Windows 3.3.7 binaries from

https://github.com/emweb/wt/releases

then, built the examples with Visual Studio 2015

cd wt\lib\Wt\examples

mkdir build

cd build

cmake .. -G "Visual Studio 14"

tried to run the project "hello.wt"

added to command line argument

---http-address=0.0.0.0 ---http-port=8080 ---deploy-path=/ ---docroot=.

and to environment

PATH=E:/wt/bin

run project

[2017-Aug-02 14:16:04.604237] 3988 - [info] "WServer/wthttp: initializing built-in wthttpd"

[2017-Aug-02 14:16:04.772956] 3988 - [info] "wthttp: started server: http://0.0.0.0:8080"

opened browser at

http://127.0.0.1:8080/

got an exception in the project

[2017-Aug-02 14:16:04.604237] 3988 - [info] "WServer/wthttp: initializing built-in wthttpd"

[2017-Aug-02 14:16:04.772956] 3988 - [info] "wthttp: started server: http://0.0.0.0:8080"

[2017-Aug-02 14:17:05.904992] 3988 - [info] "Wt: session created (#sessions = 1)"

[2017-Aug-02 14:17:05.906997] 3988 [/ DJY8kF2CYfoNTcS3] [info] "WEnvironment: UserAgent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:54.0) Gecko/20100101 Firefox/54.0"

127.0.0.1 - - [2017-Aug-02 14:17:05.915017] "GET / HTTP/1.1" 200 2925

[2017-Aug-02 14:17:05.919028] 3988 - [info] "WebRequest: took 15.039ms"

[2017-Aug-02 14:17:05.955632] 3988 [/ DJY8kF2CYfoNTcS3] [error] "Wt: fatal error: bad allocation"

[2017-Aug-10272. 014.:01.7:10 5-. 9-5 7[227061]7 3A9u8g8 0-2 14[in:1f7o:] "WebCont0r5o.l9ler:5 Rem8o277v]i n"g GsEeTs s/i?ownt dD=DJY8kF2JYCY8kF2CfYfoNTcS3"oNTcS3&sid=--1877260480&webGL=true&scrW=1280&scrH=720&tz=--240&htmlHistory=true&deployPath=%2F&request=script&rand=2769556019 HTTP/1.1" 500 67

[2017-Aug-02 14:17:05.966299] 3988 - [info] "WebRequest: took 11.17ms"[2017-Aug-02 14:17:05.966299] 3988 [/1 2D7J.Y08.k0F.21C Y-f o-N T[c2S031]7 -[Aiungf-o0]2 "1W4t::1 7:05.967302] "GET /?wtd=DJY8session destroyed (#sessions = 0)"kF2CYfoNTcS3&request=style&page=1 HTTP/1.1" 200 0

[2017-Aug-02 14:17:05.972315] 3988 - [info] "WebRequest: took 29.218ms"

thanks for any help


Replies (2)

RE: error when running examples in Windows - Added by Wim Dumon over 7 years ago

Pedro,

I just tested this with both the x86 and x64 binaries from the 3.3.8-rc2 distributions and I cannot reproduce the bad allocation you reported. As far as I can remember, our build procedure didn't really change from 3.3.7 to 3.3.8 - openssl and boost were updated.

These types of errors may be caused by mixing up compiler versions or library versions, but I can't tell if this is the case here.

BR,

Wim.

RE: error when running examples in Windows - Added by Pedro Vicente over 7 years ago

Wim

thanks for looking into this

this is not an issue for me any more because I tried with 3.3.8-rc2 after this post and I don't get the error.

so, I am a happy 3.3.8-rc2 user so far :-)

but as an advice for you in finding problems , if a user posts a message that he/she has an error with the 3.3.7 version that is the version you must check

as you mention the error might be a mix of mixing up compiler versions or library versions because I am using the

Windows 3.3.7 binaries with built in source code for the example(possibly another Visual Studio version).

This is always a bad idea, looking back, I don't even know why I did it. Must have been my first ever WT try, for simplicity

cheers

-Pedro

-

    (1-2/2)