Some examples/graphics not working
Added by Michelle Dupuis about 5 years ago
I have built the examples, and while 'hello' works fine, examples like drag and drop dont (no graphical pills)
As well, when I try to run the hangman example it gives me a core dump (see below)
I ensured GD and GD-DEVEL are installed. Am I missing something?
examples/hangman/hangman.wt ---docroot . ---http-address 0.0.0.0 ---http-port 8080
[2019-Jan-28 08:36:06.189] 122341 - [info] "config: reading Wt config file: /etc/wt/wt_config.xml (location = 'examples/hangman/hangman.wt')"
[2019-Jan-28 08:36:06.191] 122341 - [info] "Auth.GoogleService: not configured: OAuth: no 'google-oauth2-redirect-endpoint' property configured"
[2019-Jan-28 08:36:06.191] 122341 - [info] "WServer/wthttp: initializing built-in wthttpd"
[2019-Jan-28 08:36:06.192] 122341 - [info] "wthttp: started server: http://0.0.0.0:8080"
[2019-Jan-28 08:36:11.393] 122341 - [info] "Wt: session created (#sessions = 1)"
[2019-Jan-28 08:36:11.394] 122341 [/ tvqYj0PVnwjYbKs0] [info] "WEnvironment: UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
172.31.254.73 - - [2019-Jan-28 08:36:11.395] "GET /?_=/play HTTP/1.1" 200 2297
[2019-Jan-28 08:36:11.395] 122341 - [info] "WebRequest: took 1.839 ms"
begin transaction
rollback transaction
[2019-Jan-28 08:36:11.554] 122341 [/ tvqYj0PVnwjYbKs0] [error] "WMessageResources: Could not load resource bundle: templates.xml"
[2019-Jan-28 08:36:11.554] 122341 [/ tvqYj0PVnwjYbKs0] [error] "WMessageResources: Could not load resource bundle: strings.xml"
[2019-Jan-28 08:36:11.554] 122341 [/ tvqYj0PVnwjYbKs0] [info] "Using existing database"
[2019-Jan-28 08:36:11.554] 122341 [/ tvqYj0PVnwjYbKs0] [warning] "WApplication: Deploy-path ends with '/', using /?_= for internal paths"
begin transaction
select u."id" as col0, u."version" as col1, u."user_id" as col2, u."password_hash" as col3, u."password_method" as col4, u."password_salt" as col5, u."status" as col6, u."failed_login_attempts" as col7, u."last_login_attempt" as col8, u."email" as col9, u."unverified_email" as col10, u."email_token" as col11, u."email_token_expires" as col12, u."email_token_role" as col13 from "auth_info" u join "auth_token" t on u.id = t."auth_info_id" where (t."value" = ?) and (t."expires" > ?)
select "id", "version", "auth_info_id", "value", "expires" from "auth_token" where "auth_info_id" = ?
update "auth_token" set "version" = ?, "auth_info_id" = ?, "value" = ?, "expires" = ? where "id" = ? and "version" = ?
commit transaction
begin transaction
select "id", "version", "auth_info_id", "provider", "identity" from "auth_identity" where ("auth_info_id" = ?) and ("provider" = ?)
commit transaction
172.31.254.73 - - [2019-Jan-28 08:36:11.559] "GET /?wtd=tvqYj0PVnwjYbKs0&request=style&page=1 HTTP/1.1" 200 109
[2019-Jan-28 08:36:11.559] 122341 - [info] "WebRequest: took 124.971 ms"
begin transaction
select "id", "version", "auth_info_id", "provider", "identity" from "auth_identity" where ("auth_info_id" = ?) and ("provider" = ?)
commit transaction
172.31.254.73 - - [2019-Jan-28 08:36:11.568] "GET /?wtd=tvqYj0PVnwjYbKs0&sid=2115894215&webGL=true&scrW=3440&scrH=1440&tz=--300&tzS=America%2FNew_York&htmlHistory=true&deployPath=%2F&request=script&rand=3001378112 HTTP/1.1" 200 39388
[2019-Jan-28 08:36:11.568] 122341 - [info] "WebRequest: took 15.942 ms"
172.31.254.73 - - [2019-Jan-28 08:36:11.617] "GET /resources/themes/default/wt.css HTTP/1.1" 404 85
172.31.254.73 - - [2019-Jan-28 08:36:11.618] "GET /resources/webkit-transitions.css HTTP/1.1" 404 85
172.31.254.73 - - [2019-Jan-28 08:36:11.623] "GET /css/hangman.css HTTP/1.1" 404 85
172.31.254.73 - - [2019-Jan-28 08:36:11.623] "GET /resources/form.css HTTP/1.1" 404 85
172.31.254.73 - - [2019-Jan-28 08:36:11.798] "GET /icons/hangman0.jpg HTTP/1.1" 404 85
172.31.254.73 - - [2019-Jan-28 08:36:11.799] "GET /icons/hangman1.jpg HTTP/1.1" 404 85
172.31.254.73 - - [2019-Jan-28 08:36:11.800] "GET /icons/hangman2.jpg HTTP/1.1" 404 85
172.31.254.73 - - [2019-Jan-28 08:36:11.801] "GET /icons/hangman3.jpg HTTP/1.1" 404 85
172.31.254.73 - - [2019-Jan-28 08:36:11.806] "GET /icons/hangman4.jpg HTTP/1.1" 404 85
172.31.254.73 - - [2019-Jan-28 08:36:11.809] "GET /icons/hangman5.jpg HTTP/1.1" 404 85
172.31.254.73 - - [2019-Jan-28 08:36:11.824] "GET /icons/hangman9.jpg HTTP/1.1" 404 85
172.31.254.73 - - [2019-Jan-28 08:36:11.825] "GET /icons/hangman6.jpg HTTP/1.1" 404 85
172.31.254.73 - - [2019-Jan-28 08:36:11.826] "GET /icons/hangman7.jpg HTTP/1.1" 404 85
172.31.254.73 - - [2019-Jan-28 08:36:11.827] "GET /icons/hangman8.jpg HTTP/1.1" 404 85
172.31.254.73 - - [2019-Jan-28 08:36:11.830] "GET /icons/hangmanhurray.jpg HTTP/1.1" 404 85
172.31.254.73 - - [2019-Jan-28 08:36:11.932] "POST /?wtd=tvqYj0PVnwjYbKs0 HTTP/1.1" 200 814
[2019-Jan-28 08:36:11.932] 122341 - [info] "WebRequest: took 1.521 ms"
Floating point exception (core dumped)
Replies (1)
RE: Some examples/graphics not working - Added by Wim Dumon about 5 years ago
Hello,
You'll notice some errors in this log:
WMessageResources: Could not load resource bundle: templates.xml
172.31.254.73 - - [2019-Jan-28 08:36:11.617] "GET /resources/themes/default/wt.css HTTP/1.1" 404 85
Please allow me to refer to the documentation: the examples folder has a README.md file, as well as the folder of some specific examples, giving hints on how to run examples:
You typically need the following commands to run an example (`foobar`):
cd foobar # source directory for example foobar
ln -s ../../resources . # include standard Wt resource files
../../build/examples/foobar/foobar.wt --docroot . --http-address 0.0.0.0 --http-port 8080
By running the examples from within their source directory, in this way the
examples will find the auxiliary files in the expected places.
Some examples may need additional command line arguments, which are detailed
in the README.md for each example.
Best regards,
Wim.