Wim,

 

The patch worked just fine as it solved the Safari issue related to WVideo 
(WAbstractMedia). Thanks a lot. 

 

Regards.

 

___________________

Mario Diethelm Guallar

Celular +569 9343 4754

 

From: Wim Dumon [mailto:w...@emweb.be] 
Sent: lunes, 17 de noviembre de 2014 13:09
To: witty-interest@lists.sourceforge.net
Subject: Re: [Wt-interest] Using video widgets

 

I did not look very careful, there's indeed one case that could cause 
termination. Can you try this patch:

diff --git a/src/Wt/WAbstractMedia.C b/src/Wt/WAbstractMedia.C
index 2aed9ad..0e1d4af 100644
--- a/src/Wt/WAbstractMedia.C
+++ b/src/Wt/WAbstractMedia.C
@@ -127,8 +127,7 @@ void WAbstractMedia::setFormData(const FormData& formData)
       try {
         readyState_ = intToReadyState(boost::lexical_cast<int>(attributes[5]));
       } catch (const std::exception& e) {
-       throw WException("WAbstractMedia: error parsing: " + formData.values[0]
-                        + ": " + e.what());
+        readyState_ = HaveNothing;
       }
     } else
       throw WException("WAbstractMedia: error parsing: " + formData.values[0]);

Best regards,
Wim.

 

2014-11-17 14:53 GMT+01:00 Mario Diethelm Guallar <mari...@terra.cl 
<mailto:mari...@terra.cl> >:

Hi Wim, I am using Wt 3.3.3. I will try with the last Wt version available on 
GitHub and I will comment back.

 

Thanks.

 

___________________

Mario Diethelm Guallar

 

From: Wim Dumon [mailto:w...@emweb.be <mailto:w...@emweb.be> ] 
Sent: lunes, 17 de noviembre de 2014 10:35
To: witty-interest@lists.sourceforge.net 
<mailto:witty-interest@lists.sourceforge.net> 
Subject: Re: [Wt-interest] Using video widgets

 

Hey,

Wat version of Wt is this? If I look at the current source code, the error with 
WAbstractMedia (thus WVideo) appears to be fixed.

Wrt the WMediaPlayer: does an upgrade to the most recent Wt version fix this? 
Otherwise, can you make a small test case for it?

 

Best regards,
Wim.

 

2014-11-13 23:42 GMT+01:00 Mario Diethelm Guallar <mari...@terra.cl 
<mailto:mari...@terra.cl> >:

Hi guys,

 

Testing some alternatives to have a more dynamic web site I have included a 
WVideo widget in my application. After some few tweaks the widget is working 
properly, but when I test the site with Safari explorer (I am using the 
built-in httpd  connector), the application enters in an infinite restarting 
loop and I got the following log messages at the server console level:

 

[2014-Nov-13 19:03:37.299030] 6632 - [info] "config: reading Wt config file: 
c:/software/webresources/wt_config.xml (location 
=C:\software\projects\mastercondo - nw\Debug\mastercondo.exe')"

[2014-Nov-13 19:03:37.345906] 6632 - [info] "WServer/wthttp: initializing 
built-in wthttpd"

[2014-Nov-13 19:03:38.377268] 6632 - [info] "wthttp: started server: 
http://0.0.0.0:8080";

[2014-Nov-13 19:03:47.719638] 6632 - [info] "Wt: session created (#sessions = 
1)"

[2014-Nov-13 19:03:47.728671] 6632 [/condo QfAH0ijIjcF6hlmB] [info] 
"WEnvironment: UserAgent: Mozilla/5.0 (Windows NT 6.2; WOW64) 
AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2"

127.0.0.1 - - [2014-Nov-13 19:03:47.752689] "GET /condo HTTP/1.1" 200 2171

127.0.0.1 - - [2014-Nov-13 19:03:48.024867] "GET 
/condo?wtd=QfAH0ijIjcF6hlmB&request=style HTTP/1.1" 200 116

127.0.0.1 - - [2014-Nov-13 19:03:48.242012] "GET 
/condo?wtd=QfAH0ijIjcF6hlmB&sid=-324060857&tz=-180&htmlHistory=true&deployPath=%2Fcondo&request=script&rand=2

947245766 HTTP/1.1" 200 46480

127.0.0.1 - - [2014-Nov-13 19:03:49.006198] "POST /condo?wtd=QfAH0ijIjcF6hlmB 
HTTP/1.1" 200 6215

[2014-Nov-13 19:03:51.255412] 6632 [/condo QfAH0ijIjcF6hlmB] [error] "Wt: error 
during event handling: WAbstractMedia: error parsing: undefined;undefined;0;0;

0;undefined: bad lexical cast: source type value could not be interpreted as 
target"

[2014-Nov-13 19:03:51.285470] 6632 [/condo QfAH0ijIjcF6hlmB] [error] "Wt: fatal 
error: WAbstractMedia: error parsing: undefined;undefined;0;0;0;undefined: bad 
lexical cast: source type value could not be interpreted as target"

[2014-Nov-13 19:03:51.433599] 6632 [/condo QfAH0ijIjcF6hlmB] [info] "Wt: 
session destroyed (#sessions = 0)"

[2014-Nov-13 19:03:52.684094] 6632 - [info] "Wt: session created (#sessions = 
1)"

[2014-Nov-13 19:03:52.701184] 6632 [/condo Y4pgHA20BDxeBeiw] [info] 
"WEnvironment: UserAgent: Mozilla/5.0 (Windows NT 6.2; WOW64) 
AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2"

[2014-Nov-13 19:03:52.727199] 6632 [/condo Y4pgHA20BDxeBeiw] [info] "Wt: signal 
from dead session, sending reload."

 

I then tried with the WMediaPlayer widget and the problem with Safari explorer 
went away, but now when the application execute a change of language (a call to 
WApplication::instance()->setLocale(appLocale), where appLocale is a WLocale 
object configured with date format and decimal point and  thousand separator 
symbols) the application stops responding to user input (the server console 
keeps running without displaying any error, but it seems like any user input – 
menu selection, anchor activation, anything is absolutely ignored). This 
behavior is independent from the browser that your are using. If the user don’t 
try to do a language change, everything works ok.

 

Any ideas what could be going on with both Safari - WVideo and with 
WMediaPlayer – Wapplication::instance()->setLocale() call?

 

Thanks.

 

___________________

Mario Diethelm Guallar

 


------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111 
<http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk> 
&iu=/4140/ostg.clktrk
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net 
<mailto:witty-interest@lists.sourceforge.net> 
https://lists.sourceforge.net/lists/listinfo/witty-interest

 


------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751 
<http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk> 
&iu=/4140/ostg.clktrk
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net 
<mailto:witty-interest@lists.sourceforge.net> 
https://lists.sourceforge.net/lists/listinfo/witty-interest

 

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to