fermi-ad / controls

Central repo for reporting bugs, making feature requests, managing RFCs, and requesting seminar topics.
https://www-bd.fnal.gov/controls/
2 stars 0 forks source link

L35 Java Launched from Index Page Insufficient Memory #34

Open beauremus opened 11 months ago

beauremus commented 11 months ago

Describe the bug

When launching L35, it doesn't open, and the message box shows an "insufficient memory" error.

L35 [2831461]: finished w/ status 256                                                                                                                                                                                                                          
L35 [2831461]: # /scratch/xaps/scratch/replay_pid2831475.log                                                                                                                                                                                                   
L35 [2831461]: # Compiler replay data is saved as:                                                                                                                                                                                                             
L35 [2831461]: #                                                                                                                                                                                                                                               
L35 [2831461]: # /scratch/xaps/scratch/hs_err_pid2831475.log                                                                                                                                                                                                   
L35 [2831461]: # An error report file with more information is saved as:                                                                                                                                                                                       
L35 [2831461]: # Native memory allocation (mmap) failed to map 65536 bytes for committing reserved memory.                                                                                                                                                     
L35 [2831461]: # There is insufficient memory for the Java Runtime Environment to continue.                                                                                                                                                                    
L35 [2831461]: #                                                                                                                                                                                                                                               
L35 [2831461]:  ]                                                                                                                                                                                                                                              
L35 [2831461]:  L_BPRG33[0]@P,15H, L_BPRG34[0]@P,15H, L_BPRG41[0]@P,15H, L_BPRG42[0]@P,15H, L_BPRG43[0]@P,15H, L_BPRG44[0]@P,15H, L_BPRG51[0]@P,15H, L_BPRG52[0]@P,15H, L_BPRG53[0]@P,15H, L_BPRG54[0]@P,15H, L_BPRG61[0]@P,15H, L_BPRG62[0]@P,15H, L_BPRG63[0]@
L35 [2831461]:  L:BPRG74[]@P,15H, L:BPRGE2[]@P,15H, L:BPRGE3[]@P,15H, L:BPRGE4[]@P,15H, L_BP2ORG[0]@P,15H, L_BP3IRG[0]@P,15H, L_BP3ORG[0]@P,15H, L_BP4IRG[0]@P,15H, L_BP5IRG[0]@P,15H, L_BP5ORG[0]@P,15H, L_BPRG02[0]@P,15H, L_BPRG03[0]@P,15H, L_BPRG04[0]@P,15
L35 [2831461]:  L:BPRG22[]@P,15H, L:BPRG23[]@P,15H, L:BPRG31[]@P,15H, L:BPRG32[]@P,15H, L:BPRG33[]@P,15H, L:BPRG34[]@P,15H, L:BPRG41[]@P,15H, L:BPRG42[]@P,15H, L:BPRG43[]@P,15H, L:BPRG44[]@P,15H, L:BPRG51[]@P,15H, L:BPRG52[]@P,15H, L:BPRG53[]@P,15H, L:BPRG
L35 [2831461]:  B_BPRG24[0]@P,15H, B_BPRGDB[0]@P,15H, B_BPRGFL[0]@P,15H, B_BPRGLD[0]@P,15H, B_BPRGLM[0]@P,15H, B_BPRGLU[0]@P,15H, B_BPRGS1[0]@P,15H, B_BPRGSU[0]@P,15H, L:BP2ORG[]@P,15H, L:BP3IRG[]@P,15H, L:BP3ORG[]@P,15H, L:BP4IRG[]@P,15H, L:BP5IRG[]@P,15H
L35 [2831461]:  B:BPRGLM[]@P,15H, B:BPRGLU[]@P,15H, B:BPRGS1[]@P,15H, B:BPRGSU[]@P,15H, B_BPRG01[0]@P,15H, B_BPRG02[0]@P,15H, B_BPRG03[0]@P,15H, B_BPRG04[0]@P,15H, B_BPRG05[0]@P,15H, B_BPRG06[0]@P,15H, B_BPRG07[0]@P,15H, B_BPRG08[0]@P,15H, B_BPRG09[0]@P,15
L35 [2831461]: ReadDeviceList: Starting DAQ for [B:BPRG01[]@P,15H, B:BPRG02[]@P,15H, B:BPRG03[]@P,15H, B:BPRG04[]@P,15H, B:BPRG05[]@P,15H, B:BPRG06[]@P,15H, B:BPRG07[]@P,15H, B:BPRG08[]@P,15H, B:BPRG09[]@P,15H, B:BPRG10[]@P,15H, B:BPRG11[]@P,15H, B:BPRG12[
L35 [2831461]: StatusAndRegisterTogetherPanel: Have set up 126 devices at 1698431657332                                                                                                                                                                        
L35 [2831461]: INFO: GUI descriptor jar:https://www-bd.fnal.gov/release/jars/gov.jar!/gov/fnal/controls/applications/LinacBPM/expert/LinacRegisterOverview.xml loaded                                                                                          
L35 [2831461]: Oct 27, 2023 1:34:16 PM gov.fnal.controls.framework.AbstractControlsFrame <init>                                                                                                                                                                
L35 [2831461]: end of daqUser construction                                                                                                                                                                                                                     
L35 [2831461]: ---------- DaqUser.serverLockChanged() start-------                                                                                                                                                                                             
L35 [2831461]: mask_31_Manager      :  false                                                                                                                                                                                                                   
L35 [2831461]: mask_30_RemoteSet    :  true>                                                                                                                                                                                                                   
L35 [2831461]: mask_29_RPC          :  true>                                                                                                                                                                                                                   
L35 [2831461]: mask_28_Frig         :  true>                                                                                                                                                                                                                   
L35 [2831461]: mask_27_RF           :  true>                                                                                                                                                                                                                   
L35 [2831461]: mask_26_BooNE        :  true>                                                                                                                                                                                                                   
L35 [2831461]: mask_25_NuMI         :  true>                                                                                                                                                                                                                   
L35 [2831461]: mask_24_Tevatron     :  true>                                                                                                                                                                                                                   
L35 [2831461]: mask_23_SwitchYard   :  true>                                                                                                                                                                                                                   
L35 [2831461]: mask_22_MainInjector :  true>                                                                                                                                                                                                                   
L35 [2831461]: mask_21_Booster      :  true>                                                                                                                                                                                                                   
L35 [2831461]: mask_20_Linac        :  true>                                                                                                                                                                                                                   
L35 [2831461]: mask_19_Collider     :  true>                                                                                                                                                                                                                   
L35 [2831461]: mask_18_Development  :  true>                                                                                                                                                                                                                   
L35 [2831461]: mask_17_FSWriteOK    :  true>                                                                                                                                                                                                                   
L35 [2831461]: mask_16_Pbar         :  true>                                                                                                                                                                                                                   
L35 [2831461]: mask_15_CentralServ  :  true>                                                                                                                                                                                                                   
L35 [2831461]: mask_14_CentralOther :  true>                                                                                                                                                                                                                   
L35 [2831461]: mask_13_Proton       :  true>                                                                                                                                                                                                                   
L35 [2831461]: mask_12_Meson        :  true>                                                                                                                                                                                                                   
L35 [2831461]: mask_11_AccelPrgmmer :  true>                                                                                                                                                                                                                   
L35 [2831461]: mask_10_KTev         :  true>                                                                                                                                                                                                                   
L35 [2831461]: mask_9_Operations    :  true>                                                                                                                                                                                                                   
L35 [2831461]: mask_8_Minimal       :  true>                                                                                                                                                                                                                   
L35 [2831461]: mask_7_WebUser       :  true>                                                                                                                                                                                                                   
L35 [2831461]: mask_6_CDF           :  true>                                                                                                                                                                                                                   
L35 [2831461]: mask_5_DZero         :  true>                                                                                                                                                                                                                   
L35 [2831461]: mask_4_MCRCC         :  true>                                                                                                                                                                                                                   
L35 [2831461]: mask_3_CHL           :  true>                                                                                                                                                                                                                   
L35 [2831461]: mask_2_RemoteMCR     :  true>                                                                                                                                                                                                                   
L35 [2831461]: mask_1_MCR           :  true>                                                                                                                                                                                                                   
L35 [2831461]: mask_0_unused        :  false>                                                                                                                                                                                                                  
L35 [2831461]:          <<Privilege Class Mask>> >                                                                                                                                                                                                             
L35 [2831461]: ApTimeout          :  2147483647>                                                                                                                                                                                                               
L35 [2831461]: UnlockTime         :  2147483647>                                                                                                                                                                                                               
L35 [2831461]: OffsiteAllowed     :  false>                                                                                                                                                                                                                    
L35 [2831461]: AllowUnlock        :  true>                                                                                                                                                                                                                     
L35 [2831461]: CurrentUnlocked    :  false>                                                                                                                                                                                                                    
L35 [2831461]: DefaultUnlocked    :  true>                                                                                                                                                                                                                     
L35 [2831461]:          <<Permisions Mask>>>                                                                                                                                                                                                                   
L35 [2831461]: ConsoleUserId =  0>                                                                                                                                                                                                                             
L35 [2831461]: PhoneExtension =  >                                                                                                                                                                                                                             
L35 [2831461]: MailStation =  >                                                                                                                                                                                                                                
L35 [2831461]: Section =  >                                                                                                                                                                                                                                    
L35 [2831461]: FermiId =  >                                                                                                                                                                                                                                    
L35 [2831461]: EmailAddress =  >                                                                                                                                                                                                                               
L35 [2831461]: UserFullName =  >                                                                                                                                                                                                                               
L35 [2831461]: AccountName =  >                                                                                                                                                                                                                                
L35 [2831461]: KerberosName =  >                                                                                                                                                                                                                               
L35 [2831461]: ------ Person ----->                                                                                                                                                                                                                            
L35 [2831461]: ClassMask          :  0x7ffffffe>                                                                                                                                                                                                               
L35 [2831461]: Permissions        :  0x4>                                                                                                                                                                                                                      
L35 [2831461]: EntityId           :  1>                                                                                                                                                                                                                        
L35 [2831461]: isValid            :  true>                                                                                                                                                                                                                     
L35 [2831461]: Ownership          :  2>                                                                                                                                                                                                                        
L35 [2831461]: Validation         :  true>                                                                                                                                                                                                                     
L35 [2831461]: CaseFlag           :  0>                                                                                                                                                                                                                        
L35 [2831461]: UserNode           :  null>                                                                                                                                                                                                                     
L35 [2831461]: daquser servicePrivieges = -------- Service Privileges -------->                                                                                                                                                                                
L35 [2831461]: DaqUser beau_clx39.fnal.gov_beau_DSE04,34 connectDataAcquisitionServer ok                                                                                                                                                                       
L35 [2831461]: INFO: Using 131.225.120.39 as a local RMI address                                                                                                                                                                                               
L35 [2831461]: Oct 27, 2023 1:34:16 PM gov.fnal.controls.daq.acquire.DaqUser initSocketFactory                                                                                                                                                                 
L35 [2831461]: INFO: GUI descriptor jar:https://www-bd.fnal.gov/release/jars/gov.jar!/gov/fnal/controls/framework/JControlsFrame.xml loaded                                                                                                                    
L35 [2831461]: Oct 27, 2023 1:34:16 PM gov.fnal.controls.framework.AbstractControlsFrame <init>                                                                                                                                                                
L35 [2831461]: INFO: DB connections to PostgreSQL servers will be direct                                                                                                                                                                                       
L35 [2831461]: Oct 27, 2023 1:34:15 PM gov.fnal.controls.db.util.Util useDirect                                                                                                                                                                                
L35 [2831461]: INFO: DB connections to PostgreSQL servers will be direct                                                                                                                                                                                       
L35 [2831461]: Oct 27, 2023 1:34:15 PM gov.fnal.controls.db.util.Util useDirect                                                                                                                                                                                
L35 [2831461]: INFO: DB connections to PostgreSQL servers will be direct                                                                                                                                                                                       
L35 [2831461]: Oct 27, 2023 1:34:15 PM gov.fnal.controls.db.util.Util useDirect                                                                                                                                                                                
L35 [2831461]: INFO: Openning connection to: https://www-bd.fnal.gov/appix/service/appdesc?exec=gov.fnal.controls.applications.LinacBPM.expert.LinacRegisterOverview&type=1&type=2                                                                             
L35 [2831461]: Oct 27, 2023 1:34:15 PM gov.fnal.controls.framework.helpers.SelfDeterminator getDescription                                                                                                                                                     
L35 [2831461]: INFO: appix_server: https://www-bd.fnal.gov/appix                                                                                                                                                                                               
L35 [2831461]: Oct 27, 2023 1:34:15 PM gov.fnal.controls.framework.ApplicationManager <init>                                                                                                                                                                   
L35 [2831461]: INFO: Local host: clx39.fnal.gov                                                                                                                                                                                                                
L35 [2831461]: Oct 27, 2023 1:34:15 PM gov.fnal.controls.framework.ApplicationManager <init>                                                                                                                                                                   
L35 [2831461]: INFO: Enabled Kerberos HTTP authentication                                                                                                                                                                                                      
L35 [2831461]: Oct 27, 2023 1:34:15 PM gov.fnal.controls.framework.ApplicationManager enableKerberosAuthentication                                                                                                                                             
L35 [2831461]: INFO: Enabling Kerberos authentication                                                                                                                                                                                                          
L35 [2831461]: Oct 27, 2023 1:34:15 PM gov.fnal.controls.kerberos.protocol.Init enableKerberosAuthentication                                                                                                                                                   
L35 [2831461]: INFO: This computer has an address on the Controls' network: 131.225.120.39                                                                                                                                                                     
L35 [2831461]: Oct 27, 2023 1:34:15 PM gov.fnal.controls.framework.helpers.RMIAddressHelper configureRMI 

To Reproduce

  1. Go to L35
  2. See error

Affected system

rsharankova commented 9 months ago

Is there any progress on this? It is not only true for L35, but for any (Linac) Java app started from ACNET console, and ideally it should be resolved for when we return to operations... I realize there is shortage of people available, and we really do appreciate the help!

beauremus commented 9 months ago

I think @finstrom wasn't able to duplicate it, but I am. This is still an issue. @finstrom, can we meet to figure out what the difference in the launch process is that makes it work for you?

Here's what I get when I try to launch the app via WebStart on my Macbook.

net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: Could not initialize application. The application has not been initialized, for more information execute javaws from the command line.
    at net.sourceforge.jnlp.Launcher.createApplication(Launcher.java:592)
    at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:373)
    at net.sourceforge.jnlp.Launcher.access$300(Launcher.java:71)
    at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:660)
Caused by: net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: A fatal error occurred while trying to verify jars. An exception has been thrown in class JarCertVerifier. Being unable to read the cacerts or trusted.certs files could be a possible cause for this exception.: Error in verify jar /Users/beau/.cache/icedtea-web/cache/0/10/60000474-00.jar
    at net.sourceforge.jnlp.runtime.classloader.JNLPClassLoader.initializeResources(JNLPClassLoader.java:713)
    at net.sourceforge.jnlp.runtime.classloader.JNLPClassLoader.<init>(JNLPClassLoader.java:350)
    at net.sourceforge.jnlp.runtime.classloader.JNLPClassLoader.createInstance(JNLPClassLoader.java:423)
    at net.sourceforge.jnlp.runtime.classloader.JNLPClassLoader.getInstance(JNLPClassLoader.java:495)
    at net.sourceforge.jnlp.runtime.classloader.JNLPClassLoader.getInstance(JNLPClassLoader.java:468)
    at net.sourceforge.jnlp.Launcher.createApplication(Launcher.java:584)
    ... 3 more
Caused by: java.lang.RuntimeException: Error in verify jar /Users/beau/.cache/icedtea-web/cache/0/10/60000474-00.jar
    at net.sourceforge.jnlp.tools.JarCertVerifier.verifyJar(JarCertVerifier.java:309)
    at net.sourceforge.jnlp.tools.JarCertVerifier.verifyJars(JarCertVerifier.java:251)
    at net.sourceforge.jnlp.tools.JarCertVerifier.add(JarCertVerifier.java:225)
    at net.sourceforge.jnlp.runtime.classloader.JNLPClassLoader.initializeResources(JNLPClassLoader.java:706)
    ... 8 more
Caused by: net.sourceforge.jnlp.util.InvalidJarHeaderException: Jar 60000474-00.jar do not heave valid header. You can skip this check by -Xignoreheaders
    at net.sourceforge.jnlp.util.JarFile.verifyZipHeader(JarFile.java:184)
    at net.sourceforge.jnlp.util.JarFile.<init>(JarFile.java:86)
    at net.sourceforge.jnlp.util.JarFile.<init>(JarFile.java:82)
    at net.sourceforge.jnlp.tools.JarCertVerifier.verifyJar(JarCertVerifier.java:273)
    ... 11 more