[Laszlo-dev] LzMediaLoader and "already loaded" error message

Antun Karlovac antun at laszlosystems.com
Fri Jun 2 18:59:12 EDT 2006


Hi Henry

I'm working the issue myself; I have all the code locally. The images 
are coming from my local box, and I can see the responses come in 
afterwards.

The timeout is set to 5 seconds, so what the comment describes is 
probably very relevant. Although I think there is another bug here 
that's actually triggering the timeout (and hence the confusing error 
message).

When quickly slowly scroll through a lazily-replicated list of items 
that include run-time loaded images, the list works fine. However when 
you scroll quickly, the lockup happens, and no images load.

I'm suspecting this is a media-loading a bug because the 
lazily-replicated views are useless after this error happens. Also the 
debugger stops working; I can't eval code.

I'm going to try to come up with a simpler test case that I can share.

-Antun

Henry Minsky wrote:
> There's a comment in data/LzLoader:
> 
> LzLoader.prototype.returnData = function ( loadobj , data ){
>     // Check if returnData has already been called on this
>     // object. This can happen if a serverless data load timed out in
>     // the LFC, but eventually returned something via the
>     // LoadVars.sendAndLoad() callback.
>     if (loadobj.loaded) {
>         if ($debug) {
>             Debug.warn("%w.returnData: %w already loaded",
>                        this, loadobj);
>         }
>         return;
>     }
> 
> What resource is the app loading? Is it possible it is getting an error 
> or timeout?
> Can the customer manually try to fetch the URL using wget or a web 
> browser with tracing on HTTP, and see what response is being returned 
> from the server?
> 
> 
> On 6/2/06, *Antun Karlovac* <antun at laszlosystems.com 
> <mailto:antun at laszlosystems.com>> wrote:
> 
>     I'm seeing a bug in a customer's (SOLO) application where once the
>     following warning is reported:
> 
>     ----
>     WARNING: «LzMediaLoader#7| «MediaLoadObj#6| <FILENAME>
>     (timedout)»».returnData: «MediaLoadObj#6| <FILENAME> (timedout)»
>     already
>     loaded
>     ----
> 
>     When the warning(s) show up, the views that were supposed to display
>     runtime-loaded resources fail to attach them. All media requests appear
>     to fail after the error shows up.
> 
>     Has anyone got any clues as to what this error means, or where it comes
>     from? I've searched the source code tree, and that error does not appear
>     in there.
> 
>     Thanks,
> 
>     Antun
>     _______________________________________________
>     Laszlo-dev mailing list
>     Laszlo-dev at openlaszlo.org <mailto:Laszlo-dev at openlaszlo.org>
>     http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
> 
> 
> 
> 
> -- 
> Henry Minsky
> Software Architect
> hminsky at laszlosystems.com <mailto:hminsky at laszlosystems.com>
> 


More information about the Laszlo-dev mailing list