Welcome Guest Search | Active Topics | Sign In | Register

[Web Browser] AJAX loading 5mb string fail // Audio API fail ? Options
Eurice
Posted: Thursday, September 17, 2015 3:40:29 AM
Rank: Advanced Member
Groups: Member

Joined: 12/10/2014
Posts: 137
Hi there,


We are trying to load "big" (2 -> 10 mb) base64 string with POST ajax/Webservice but when the response is >5mb the webview become unresponsive/blank and crash.

Those string are .mp3 data and we are using wavesurfer plugin (http://wavesurfer-js.org/ ) to play it.
This plugin uses Audio API.

On chrome 45 there is no problem the same ajax query go smoothly and the sound plays ok.

Is there some POST size limitation in eo browser ? Or audio API buffer limitation ?


Best regards


UPDATE :

You can test it here http://wavesurfer-js.org/ drag and drop a mp3 file. If you drop a file like >5mb the webview will just try to load it and get destroyed. It works on chrome 45. So I believe this is not a matter of receiving a large POST response.
eo_support
Posted: Thursday, September 17, 2015 11:50:13 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Hi,

Can you check the version of EO.WebBrowser you are running? We tested it here with the latest build and it seems works fine. When we drop the file the progress bar moves as expected and then loads with the wave picture. Another thing you might want to check is whether you have any third party firewall anti-virus application on your machine that's blocking the request. You can also test on a different machine and see if that works.

Thanks!
Eurice
Posted: Friday, September 18, 2015 3:17:34 AM
Rank: Advanced Member
Groups: Member

Joined: 12/10/2014
Posts: 137
Hey,

I tryed with the lastest version 15.2.53.0.
Did you try to load a big file > 5mb because it works perfectly for little mp3.

I don't have any firewall/anti-virus and I tested on another computer (window 10)


thanks
eo_support
Posted: Friday, September 18, 2015 10:42:42 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Hi,

We tested it on both Windows 7 and Windows 10 with our TabbedBrowser sample application and both worked fine. Can you test it with our TabbedBrowser sample and see if it works for you?

Thanks!
Eurice
Posted: Friday, September 18, 2015 10:48:32 AM
Rank: Advanced Member
Groups: Member

Joined: 12/10/2014
Posts: 137
Hey, thats what I did !
I'll send you my .mp3 file. But every file > 5mb make webview fails for us !

Best regards
eo_support
Posted: Tuesday, September 22, 2015 12:43:12 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Hi,

We have looked into this issue and posted a new build that should resolve the issue for you. You can download it from our download page.

The root of the issue is an out of memroy error occured in the render process (which houses the JavaScript engine). The trigger of the error is not the size of the audio file, but the length of it. The longer it is, the more JavaScript objects the library creates. So when it exceeds a certain size the process will run out of memory and crash.

In the new build we have added this property for this problem:

http://www.essentialobjects.com/doc/common/large_address_space.aspx

You will need to set this property to true in order to utlize the large address space. Once you enable large adress space, the problem should no longer occur.

Thanks!
Eurice
Posted: Wednesday, September 23, 2015 4:01:37 AM
Rank: Advanced Member
Groups: Member

Joined: 12/10/2014
Posts: 137
Hey,


Thanks you guys, really nice job :)
eo_support
Posted: Wednesday, September 23, 2015 7:47:47 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
You are very welcome. Please feel free to let us know if there is anything else.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.