I,

I use OL 3.4 and when i use debug attribute set to true the compilation fail :

<canvas debug="true" .... > or <canvas debug="inherit" .... >

there is no problem when debug is set to false.

I use a ant script to compile, here is the task that fail :
(inspirated by the lzc command script)

<!--
   TARGET build-flash generates the swf files
--> <target name="build-flash" depends="prepare" description="Compiles and deploy the flash app source code">

         <copy todir="${build.dir}/flash/root/demos">
           <fileset dir="${flash.dir}"/>
         </copy>
<path id="ol.classpath"> <pathelement location="${tmp.dir}/${OLArchive}/Server/lps-latest/WEB-INF/lps/server/build"/> <fileset dir="${tmp.dir}/${OLArchive}/Server/lps-latest/3rd-party/jars/dev">
                         <include name="**/*.jar"/>
</fileset> <fileset dir="${tmp.dir}/${OLArchive}/Server/lps-latest/WEB-INF/lib">
                                      <include name="**/*.jar"/>
</fileset> <pathelement location="${tmp.dir}/${OLArchive}/Server/lps-latest/WEB-INF/classes"/> </path>

<java dir="${build.dir}/flash/root/demos/${ClientPath}" classname="org.openlaszlo.compiler.Main"
           fork="true">
          <arg value="${ClientAppName}.lzx"/>
<jvmarg value="-DLPS_HOME=${tmp.dir}/${OLArchive}/Server/lps-latest"/> <classpath refid="ol.classpath"/> </java>

   </target>



and here is the error trace :

build-flash:
[copy] Copying 295 files to /Users/pepe/Wanager/workspace-lomboz/Red5Test/build/flash/root/demos [java] Warning: Assignment to free variable eg in videoconferenceweb2.lzx (230) [java] Warning: Assignment to free variable eg in oslmon/components/tablelistItem.lzx (19) [java] Warning: Assignment to free variable eg in oslmon/components/tablelistItem.lzx (30) [java] Warning: Assignment to free variable eg in oslmon/components/explorer/explorerbox.lzx (163) .... few warning without consequence (tested before ... i know that's dirty) [java] Warning: Assignment to free variable eg in oslmon/components/list/monitorlist.lzx (26) [java] Warning: Assignment to free variable eg in dokeos/video/videocontainer.lzx (27) [java] Warning: Assignment to free variable eg in dokeos/remote/remoteObject.lzx (63) [java] Warning: Assignment to free variable eg in dokeos/remote/remoteObject.lzx (70)
    [java] Compilation errors occurred:
    [java] out of memory
    [java] Java Result: 2

i tried to set the following environement variable but it has the same effect:

set ANT_OPTS=-XX:MaxPermSize=256m
set JAVA_OPTS=-XX:MaxPermSize=256m
set ANT_OPTS=-XX:MaxPermSize=512m
set JAVA_OPTS=-XX:MaxPermSize=512m



for the moment i don't use debug ... but it would be very usefull when i 'll go deeper into the code ..


regards,

Pierre

Reply via email to