David Buckler | 1 Jun 2011 21:52
Favicon

Endlessly Refreshing Browser

Just had a weird experience on a client’s computer accessing our Laszlo application.  Basically the first window of the  app opens up and then the browser immediately refreshes, then loads the first window and immediately refreshes again and continues ad nauseam.  The app is SOLO’d and typically loaded through a standard htm file that calls swfEmbed from embed-compressed.js.  I then loaded the swf directly in the url, to try and isolate the movie without the swfEmbed call, and was able to get the app to function correctly.  Then I tried to figure out if this was an issue with our app or an issue with all lzx apps, so I went into the openlaszlo.org site and tried to load the lzPix swf example and got the exact same endless refreshing behavior.  This is happening on a couple computers, but not all,  at a new client’s office so I started to think it was an issue with some security setting. From what I have found it  seems to be rooted in the way javascript starts the movie inside embed-compressed.js Has anyone ever experienced any behavior like this?

 

Thanks,
David

Henry Minsky | 1 Jun 2011 22:12
Picon

Re: Endlessly Refreshing Browser

What browser/os combinations is this happening with?

Is there some output of a browser debugger like firebug that might help, or the safari
web developer console plugin?


On Wed, Jun 1, 2011 at 3:52 PM, David Buckler <db-v2pLX8z/RlnQT0dZR+AlfA@public.gmane.org> wrote:

Just had a weird experience on a client’s computer accessing our Laszlo application.  Basically the first window of the  app opens up and then the browser immediately refreshes, then loads the first window and immediately refreshes again and continues ad nauseam.  The app is SOLO’d and typically loaded through a standard htm file that calls swfEmbed from embed-compressed.js.  I then loaded the swf directly in the url, to try and isolate the movie without the swfEmbed call, and was able to get the app to function correctly.  Then I tried to figure out if this was an issue with our app or an issue with all lzx apps, so I went into the openlaszlo.org site and tried to load the lzPix swf example and got the exact same endless refreshing behavior.  This is happening on a couple computers, but not all,  at a new client’s office so I started to think it was an issue with some security setting. From what I have found it  seems to be rooted in the way javascript starts the movie inside embed-compressed.js Has anyone ever experienced any behavior like this?

 

Thanks,
David




--
Henry Minsky
Nest Labs

Alexei Fedotov | 2 Jun 2011 00:10
Picon
Gravatar

OpenLaszlo debug

Hi folks,

OpenLaszlo debug console stopped to work for me. I have deleted some
OpenLaszlo files from the distribution (why? because we store these
files in our svn), still the compilation successfully passed.

Does openlaszlo debugger require OpenLaszlo servlet on the server
side? Are there any hints to debug the debug?


--
With best regards / с наилучшими пожеланиями,
Alexei Fedotov / Алексей Федотов,
http://dataved.ru/

+7 916 562 8095

Alexei Fedotov | 2 Jun 2011 00:11
Picon
Gravatar

Re: OpenLaszlo debug

I should add that without the following lines application runs successfully:

<canvas debug="true" width="100%" height="100%" title="OpenMeetings">
    <debug fontsize="11" oninit="Debug.showInternalProperties = true" />

--
With best regards / с наилучшими пожеланиями,
Alexei Fedotov / Алексей Федотов,
http://dataved.ru/

+7 916 562 8095




On Thu, Jun 2, 2011 at 2:10 AM, Alexei Fedotov <alexei.fedotov <at> gmail.com> wrote:
> Hi folks,
>
> OpenLaszlo debug console stopped to work for me. I have deleted some
> OpenLaszlo files from the distribution (why? because we store these
> files in our svn), still the compilation successfully passed.
>
> Does openlaszlo debugger require OpenLaszlo servlet on the server
> side? Are there any hints to debug the debug?
>
>
> --
> With best regards / с наилучшими пожеланиями,
> Alexei Fedotov / Алексей Федотов,
> http://dataved.ru/

> +7 916 562 8095
>

Henry Minsky | 2 Jun 2011 02:11
Picon

Re: OpenLaszlo debug

If you are using the debugger with the SWF10 runtime, then the debugger requires
the LPS server to be running in order to evaluate any kind of complex statement or function call.

The debugger can evaluate simple accessor expressions like canvas.width locally, without talking to the server,  but
if you want to do anything  else, such as myview.setAttribute(...), that requires the server to compile the expression remotely and send it back to the browser.



On Wed, Jun 1, 2011 at 6:11 PM, Alexei Fedotov <alexei.fedotov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
I should add that without the following lines application runs successfully:

<canvas debug="true" width="100%" height="100%" title="OpenMeetings">
   <debug fontsize="11" oninit="Debug.showInternalProperties = true" />

--
With best regards / с наилучшими пожеланиями,
Alexei Fedotov / Алексей Федотов,
http://dataved.ru/
+7 916 562 8095




On Thu, Jun 2, 2011 at 2:10 AM, Alexei Fedotov <alexei.fedotov <at> gmail.com> wrote:
> Hi folks,
>
> OpenLaszlo debug console stopped to work for me. I have deleted some
> OpenLaszlo files from the distribution (why? because we store these
> files in our svn), still the compilation successfully passed.
>
> Does openlaszlo debugger require OpenLaszlo servlet on the server
> side? Are there any hints to debug the debug?
>
>
> --
> With best regards / с наилучшими пожеланиями,
> Alexei Fedotov / Алексей Федотов,
> http://dataved.ru/
> +7 916 562 8095
>




--
Henry Minsky
Nest Labs

P T Withington | 2 Jun 2011 02:13
Picon
Favicon
Gravatar

Re: OpenLaszlo debug

On 2011-06-01, at 18:10, Alexei Fedotov wrote:

> Hi folks,
> 
> OpenLaszlo debug console stopped to work for me. I have deleted some
> OpenLaszlo files from the distribution (why? because we store these
> files in our svn), still the compilation successfully passed.
> 
> Does openlaszlo debugger require OpenLaszlo servlet on the server
> side? Are there any hints to debug the debug?

The debugger needs the servlet to evaluate complex expressions in the swf runtimes, but otherwise should
work correctly without the servlet.  Without the servlet, the debugger can only evaluate simple
expressions like `a.b[c].d`, and it will still inspect objects using the context menu.

Alexei Fedotov | 2 Jun 2011 07:12
Picon
Gravatar

Re: OpenLaszlo debug

Thank you, folks
--
With best regards / с наилучшими пожеланиями,
Alexei Fedotov / Алексей Федотов,
http://dataved.ru/
+7 916 562 8095

On Thu, Jun 2, 2011 at 4:13 AM, P T Withington <ptw@...> wrote:
> On 2011-06-01, at 18:10, Alexei Fedotov wrote:
>
>> Hi folks,
>>
>> OpenLaszlo debug console stopped to work for me. I have deleted some
>> OpenLaszlo files from the distribution (why? because we store these
>> files in our svn), still the compilation successfully passed.
>>
>> Does openlaszlo debugger require OpenLaszlo servlet on the server
>> side? Are there any hints to debug the debug?
>
> The debugger needs the servlet to evaluate complex expressions in the swf runtimes, but otherwise should
work correctly without the servlet.  Without the servlet, the debugger can only evaluate simple
expressions like `a.b[c].d`, and it will still inspect objects using the context menu.

Alexei Fedotov | 3 Jun 2011 00:36
Picon
Gravatar

Re: OpenLaszlo debug

The problem was not actually related to the debugger. I accessed the
application via $URL/app_dir, and the debug version of the application
via $URL/app_dir/app_debug.swf

This actually caused the problem. The the former loaded some
HTML/javascript embed tools first, while the latter swf was loaded
directly into the browser.

I have noticed that the latter application does not load included
views. This worked several versions ago. Why the standard HTML +
javascript wrapper is important for includes?

I use solo mode, and views are compiled into the swf

--
With best regards / с наилучшими пожеланиями,
Alexei Fedotov / Алексей Федотов,
http://dataved.ru/
+7 916 562 8095

On Thu, Jun 2, 2011 at 9:12 AM, Alexei Fedotov
<alexei.fedotov@...> wrote:
> Thank you, folks
> --
> With best regards / с наилучшими пожеланиями,
> Alexei Fedotov / Алексей Федотов,
> http://dataved.ru/
> +7 916 562 8095
>
>
>
>
> On Thu, Jun 2, 2011 at 4:13 AM, P T Withington <ptw@...> wrote:
>> On 2011-06-01, at 18:10, Alexei Fedotov wrote:
>>
>>> Hi folks,
>>>
>>> OpenLaszlo debug console stopped to work for me. I have deleted some
>>> OpenLaszlo files from the distribution (why? because we store these
>>> files in our svn), still the compilation successfully passed.
>>>
>>> Does openlaszlo debugger require OpenLaszlo servlet on the server
>>> side? Are there any hints to debug the debug?
>>
>> The debugger needs the servlet to evaluate complex expressions in the swf runtimes, but otherwise
should work correctly without the servlet.  Without the servlet, the debugger can only evaluate simple
expressions like `a.b[c].d`, and it will still inspect objects using the context menu.
>

Antun Karlovac | 4 Jun 2011 01:29

Mysterious Compilation Warning with no file name

Hi all,

I get the following compilation warning when compiling an app. There's 
no file name, but there is a line number.

-----------------------
Compilation Warnings

<snip some other warnings>
Encountered " "," ", "" at line 114, column 88.
Was expecting one of:
     <EOF>
     ";" ...
-----------------------

Any idea of what to look for?

I tried searching the source to see what shows up on line 114 of every 
file, but there's just too many to sift through:

find . -name '*.lzx' -exec sed -n '114{p;q;}' {} \;

-Antun

Henry Minsky | 4 Jun 2011 02:11
Picon

Re: Mysterious Compilation Warning with no file name

Don might be able to diagnose why the original source filename and line number are getting discarded... as a workaround it may be possible to run the flex compiler from the command line on the
.as intermediate files and see what it says.

First off, try running lzc from the command line, if you're not already, it might have
some output that's getting stripped in the LPS server

If that doesn't help then you can do

lzc -ldebug your_app.lzx

And it will print out  a shell command it uses to run the flex compiler. If you cut and paste that into the shell, it will run flex, and output compiler errors to the console. You can then probably deduce which lzx source file the error came from, by looking in the .as file. It should have some comments in it pointing to the LZX source file and line (which were supposed to be mapped by our backend to give you the source locations, but must be
getting swallowed someplace)

On Fri, Jun 3, 2011 at 7:29 PM, Antun Karlovac <antun-oDN+GTs16Eu/3pe1ocb+swC/G2K4zDHf@public.gmane.org> wrote:
Hi all,

I get the following compilation warning when compiling an app. There's no file name, but there is a line number.

-----------------------
Compilation Warnings

<snip some other warnings>
Encountered " "," ", "" at line 114, column 88.
Was expecting one of:
   <EOF>
   ";" ...
-----------------------

Any idea of what to look for?

I tried searching the source to see what shows up on line 114 of every file, but there's just too many to sift through:

find . -name '*.lzx' -exec sed -n '114{p;q;}' {} \;

-Antun



--
Henry Minsky
Nest Labs


Gmane