APP no longer start...
 
Share:
Notifications
Clear all

15th Feb 2024: Astro Pixel Processor 2.0.0-beta29 released - macOS native File Chooser, macOS CMD-Q fixed, read-only Fits on network fixed and other bug fixes

7th December 2023:  added payment option Alipay to purchase Astro Pixel Processor from China, Hong Kong, Macau, Taiwan, Korea, Japan and other countries where Alipay is used.

 

[Solved] APP no longer starts

77 Posts
5 Users
12 Likes
1,530 Views
(@rouvinho209)
White Dwarf
Joined: 4 years ago
Posts: 17
Topic starter  

@mabula-admin This is displayed. The issue is still there.
If I remember correctly, this problem occurs since I connected a second screen. I also did a boot with just the laptop screen, but the problem persists. But maybe the problem still lies somewhere here.

APP beta24 test2

   
ReplyQuote
(@stastro)
Black Hole
Joined: 5 years ago
Posts: 183
 

@rouvinho209 

Can you explain what exactly the problem is, because from your screenshot, APP loaded in just over 3 seconds.  Also what GPU are you using?  As it states in your console output

"GL Shading Language version: 4.60"

But mine reports

"GL Shading Language version: 4.60 NVIDIA"

Also your maximum texture size is 16384 whereas mine is 32768

Simon

This post was modified 7 months ago by Simon Todd

   
ReplyQuote
(@rouvinho209)
White Dwarf
Joined: 4 years ago
Posts: 17
Topic starter  

@stastro

Hi Simon, 

the problem is, that APP doesn't start at all. All I see is a blank preview window in the task bar. Nothing happens when I click on it. It remains white in the task bar. My notebook has an AMD Radeon Graphics GPU, no NVIDIA.

Best,

Rouven


   
ReplyQuote
(@mabula-admin)
Universe Admin
Joined: 7 years ago
Posts: 4366
 

Hi Rouven rouvinho209,

Thank you very much for the feedback. Can you try the following for me to check if that changes the behaviour of APP startup on your system:

  1. Start APP, once APP is started, click on the CFG button
  2. Disable console output in separate window
  3. and also disable image viewer and frame list in separate windows
  4. click on save
  5. restart APP.

So this makes it a single window application basically. Maybe that changes things. If it does, please let us know.

Also, and if it does, what happens if you again enable console output in a separate window and restart APP? Is it now normal or not?

Using a 2nd or even more monitors has no influence on my test systems, but if that startup behaviour changed once you connected a 2nd monitor, maybe we need to double check this here again. I test and develop APP continously using 2 monitors and never experienced this issue myself.

Mabula

This post was modified 7 months ago 2 times by Mabula-Admin

   
ReplyQuote
(@stastro)
Black Hole
Joined: 5 years ago
Posts: 183
 

@mabula-admin Where is the config written to?  I have yet to find a file that contains the config, as @rouven has stated his console screen remains white, so he might not be able to click on the cfg option.

 

If you can share the location of the file that contains the config, he might be able to rename the file so that APP starts with default config.  I have just tried removing APP, deleting all the associated folders within my user profile, and then re-installed APP and it still picked up my config 😀


   
ReplyQuote
(@stastro)
Black Hole
Joined: 5 years ago
Posts: 183
 

@mabula-admin

I am also able to re-produce the issue of extremely long startup / not at all, after re-installing under "Only for me" rather than "Everyone" it took over 30 seconds to start this time:

image

   
ReplyQuote
(@mabula-admin)
Universe Admin
Joined: 7 years ago
Posts: 4366
 

Posted by: @stastro

@mabula-admin Where is the config written to?  I have yet to find a file that contains the config, as @rouven has stated his console screen remains white, so he might not be able to click on the cfg option.

 

If you can share the location of the file that contains the config, he might be able to rename the file so that APP starts with default config.  I have just tried removing APP, deleting all the associated folders within my user profile, and then re-installed APP and it still picked up my config 😀

Hi Simon @stastro,

There is no config file, on Windows, this is saved into the windows registry actually.

"as @rouven has stated his console screen remains white"

Thanks, indeed, i should make a test version then that forces the default setting when starting up...

 

 


   
ReplyQuote
(@mabula-admin)
Universe Admin
Joined: 7 years ago
Posts: 4366
 

Posted by: @stastro

@mabula-admin

I am also able to re-produce the issue of extremely long startup / not at all, after re-installing under "Only for me" rather than "Everyone" it took over 30 seconds to start this time:

image

@stastro, Actually, this is a diffent problem then...  @rouvinho209 APP does start quick in only 3seconds, but the main window will simply not show...

In your case, OpenGL initialization takes such a long time, which is also weird... I will check if it takes longer for me as well if I install for Only me.

Thanks,

Mabula

 


   
ReplyQuote
(@stastro)
Black Hole
Joined: 5 years ago
Posts: 183
 

@mabula-admin I am also updating my 3080 drivers since they released a version with some bug fixes for Starfield, OpenGL is part of the driver package it seems.

Maybe it's time to also start thinking about CUDA for the NVidia side of the camp, as OpenGL is designed for AMD, I have done some extensive testing of CUDA in image processing especially with StarXterminator and BlurXterminator and the performance gain is phenominal, removing starts from a 286mpx image takes 45 min on the CPU, but 2.5 minutes on the GPU, I suspect a lot of the processes in APP would benefit hugely by handing it off to the GPU


   
ReplyQuote
(@mabula-admin)
Universe Admin
Joined: 7 years ago
Posts: 4366
 

Posted by: @stastro

@mabula-admin I am also updating my 3080 drivers since they released a version with some bug fixes for Starfield, OpenGL is part of the driver package it seems.

Maybe it's time to also start thinking about CUDA for the NVidia side of the camp, as OpenGL is designed for AMD, I have done some extensive testing of CUDA in image processing especially with StarXterminator and BlurXterminator and the performance gain is phenominal, removing starts from a 286mpx image takes 45 min on the CPU, but 2.5 minutes on the GPU, I suspect a lot of the processes in APP would benefit hugely by handing it off to the GPU

Let us first solve this startup problem 😉

In addition, rewriting things in CUDA will take a lot of work and this is definitely not friendly for anyone which does not have a Nvidia GPU.

I feel it is better to use a GPU method that will work on all GPUs. Then everyone can profit from invested work and time on GPU processing. Or does CUDA work these days on non-nvidia chips?

GPU processing should also work on GPUs that are attached to the CPU as well I feel like on Intel CPUs. We did tests with aparapi and we know it will speed certain tasks up greatly once implemented correctly. And we also know that behind the scenes, our main development platform might actually build GPU processing directly into their API leaving us with little work left once implemented 😉 GPU will definitely come into APP and major improvements for that might not be far away even.

OpenGL is not designed for AMD i think, is it? But more so for cross-platform i thought, lIke Vulcan, which is basically OpenGL further improved.

 

This post was modified 7 months ago by Mabula-Admin

   
ReplyQuote
(@rouvinho209)
White Dwarf
Joined: 4 years ago
Posts: 17
Topic starter  

@mabula-admin Because in the latest test version the console output window wasn't visible I deinstalled this version and reinstalled the beta23 version once again. But now I have the same issue with the console output window as with the APP window. It remains white in task bar and on a click on it nothing happens. I have no clue about IT, but I have the feeling the program won't be removed completely by deinstalling. Anywhere seems a temporary file to be loaded by the reinstalled version. But I can be completely wrong.


   
ReplyQuote
(@technohell)
Main Sequence Star
Joined: 4 years ago
Posts: 32
 

@mabula-admin 

Here are my 2 tests, the first i started Photoshop to force it (very quickly) and the second I started Photoshop very late, cause it didn't show up it self.

You see the timestamps are looooong.

StartupLog1
StartupLog2

 Hope you find the devil in the code.... I guess it's Windows... 🤣 


   
ReplyQuote
(@stastro)
Black Hole
Joined: 5 years ago
Posts: 183
 

@technohell I have CS5 and Windows 11 installed so willing to try this out, what exactly did you do to produce this?


   
ReplyQuote
(@technohell)
Main Sequence Star
Joined: 4 years ago
Posts: 32
 

@stastro

I had my system already running (Browser, steam,...stuff). I closed all programms and opend APP.

After a long time of waiting I just open photoshop CS2 and when it's loading CS2 APP pops up and instand after it CS2.

 

So short, just start photoshop after starting APP.

 

But I don't need to do things to get the delay, I was always there in the newest Version...

AND I have Win10 Pro not 11 and CS2 not CS5... that's totaly different.

This post was modified 7 months ago by Sven Hendricks

   
ReplyQuote
(@technohell)
Main Sequence Star
Joined: 4 years ago
Posts: 32
 

@mabula-admin

Good morning master, 😉 

I thought cause the OpenGL needs some time the following is interesting for you:

2 screenshots of OpenGL Extention Viewer.

The report file is not allowed to upload, cause it's a XML file.

SysInfo
OpenGLreport

I hope it helps.


   
ReplyQuote
(@stastro)
Black Hole
Joined: 5 years ago
Posts: 183
 

So it would appear in all of the problematic startups (delayed) OpenGL seems to be the constant variable causing the issue.  Now obviously this is not an APP issue, as APP just calls on OpenGL, APP does not control how quickly OpenGL launches, there could be many reasons for this such as another process locking OpenGL.  My start time varies now, I can get as low as 2.37s startup, and sometimes is is >30s startup, but again it is always OpenGL being the root cause.

I have compared my OpenGL settings with @technohell, and apart from the NVIDIA driver (I updated yesterday), everything else is identical even though I am running Windows 11 Pro.  So there seems to be some consistency there within OpenGL.

My platform
Core i9 13900
128GB DDR5
PCIe Gen 5 M.2 SSD
2xP5800X in a RAID0 config as my APP Working location / Swap for Pixinsight
NVIDIA 3080

I think with all the "Software" we have on our systems today, it's almost impossible to determine which one uses any fraction of OpenGL that could be causing an issue, the only way to fully validate is for a perfectly "Clean" system with just APP installed, and I am almost 100% that startup time would be perfect every time.  But as you load more and more software, then some application/process would start to interfere with OpenGL and cause the delay in startup for APP.

@mabula-admin since you know a bit more about OpenGL than probably all of us on this thread put together, is there any way of troubleshooting / tracing OpenGL from an API perspective during APP launch?

This post was modified 7 months ago by Simon Todd

   
ReplyQuote
(@mabula-admin)
Universe Admin
Joined: 7 years ago
Posts: 4366
 

HI all @stastro, @technohell, @rouvinho209

Thank you very much for helping out here, indeed, this all points to an issue with our OpenGL dependency somehow on the windows platform. We use an external library called JOGL for this. And we have updated their library 2 times in the past couple of beta's. So maybe there is an initialization bug in there all of a sudden. I have tested this with the startup log on Linux and mac Intel and mac Apple Silicon, on those systems the OpenGL initialization is very fast, like 1-2 seconds only, giving APP startup time of only 2-3 seconds. But on my windows 10 machine it is always quite a bit slower, but the machine itself is the fastest of them all by alarge margin. OpenGL initialization on my windows 10 compueter is roughly 7 seconds all the time.

I will add more logging now to the OpenGL init part to see at what call it will actually stall. Maybe that indicates why Photoshop can all of a sudden trigger it to advance? And I will contact the JOGL developers upstream to see if they are aware of such an issue on Windows.

In addition to this particular problem, I am actually making an application startup dialog now to better show to the user that startup is taking place which should enhance user experience.

Please bare with me, I have been working a lot on this issue now, and I need to address other forum/email questions first now, but this one is a high priority to solve of course. Application startup should be smooth, fast and issue free 😉 !

Mabula

 


   
Simon Todd reacted
ReplyQuote
(@mabula-admin)
Universe Admin
Joined: 7 years ago
Posts: 4366
 

Hi all @stastro, @technohell, @rouvinho209,

Finally, I think i have found the cause of the startup delays. It does mean that the issue is caused by some security application or setting on your computers that blocks loading of native libs for OpenGL to load.

Especially company computers can have security implemented that causes these kind of issues.

But, there is definitely a workaround and it should improve APP startup time for everyone, so I will work on this now and will let you know as soon as possible when you can test again 😉

Mabula

 


   
ReplyQuote
(@stastro)
Black Hole
Joined: 5 years ago
Posts: 183
 

@mabula-admin care to share more information on the "Security" situation?

Is it

1. Software based
2. Hardware based like TPM for example
3. Anti-Virus Based
4. GPO Based

Mine is not a company computer so I have the luxury of playing around with settings if needs be


   
ReplyQuote
(@mabula-admin)
Universe Admin
Joined: 7 years ago
Posts: 4366
 

Posted by: @stastro

@mabula-admin care to share more information on the "Security" situation?

Is it

1. Software based
2. Hardware based like TPM for example
3. Anti-Virus Based
4. GPO Based

Mine is not a company computer so I have the luxury of playing around with settings if needs be

hi @stastro, I think it can occur especially with anti-virus/malware software and security scripts that are implemented by IT for company computers to not allow the employee to do bad stuff possibly.

 

 


   
ReplyQuote
(@mabula-admin)
Universe Admin
Joined: 7 years ago
Posts: 4366
 

Posted by: @mabula-admin

Posted by: @stastro

@mabula-admin care to share more information on the "Security" situation?

Is it

1. Software based
2. Hardware based like TPM for example
3. Anti-Virus Based
4. GPO Based

Mine is not a company computer so I have the luxury of playing around with settings if needs be

hi @stastro, I think it can occur especially with anti-virus/malware software and security scripts that are implemented by IT for company computers to not allow the employee to do bad stuff possibly.

 

 

Hi all @stastro, @technohell, @rouvinho209,

I have received information that Avira antivirus for instance will cause this slowdown. So please check if APP starts normally when you have disabled your antivirus scanner momentarily. If it starts normally then, then your antivirus is having a false positive here and you might want to add an exception for APP then. I will still try to fix it with a workaround 😉

Mabula

 


   
ReplyQuote
(@stastro)
Black Hole
Joined: 5 years ago
Posts: 183
 

@mabula-admin Rather than disabling my AV, can you provide a list of Locations to be added as an exception to my AV, I am using Sophos so I can add folders as well as Executables.  I have just added the following to be excluded from real time scans

image

Despite doing that, it still took a long time to load:

image
This post was modified 7 months ago 2 times by Simon Todd

   
ReplyQuote
(@mabula-admin)
Universe Admin
Joined: 7 years ago
Posts: 4366
 

Posted by: @stastro

@mabula-admin Rather than disabling my AV, can you provide a list of Locations to be added as an exception to my AV, I am using Sophos so I can add folders as well as Executables.  I have just added the following to be excluded from real time scans

image

@stastro You would simply use the APP installation folder and APP's executable. I have checked on my computer, I use Bitdefender but disabling it does not reduce loading time of 6-7 seconds. We also do not have reports Sophos is a problem.

Avira is known for problems like this it seems, it is a free package and seems to give many false positives. Maybe it is not even related to our issue. I am still not completely sure what is going on.

Mabula

 


   
ReplyQuote
(@stastro)
Black Hole
Joined: 5 years ago
Posts: 183
 

@mabula-admin You might be onto something and it might not be the APP app with the AV

I temporarily disabled real time protection completely, and startup time was always around 4 seconds in total, and I repeated this multiple times.  I then went and re-enabled real time protection, and straight away the first launch of APP took 11.45 seconds and again OpenGL is the culprit, so maybe exceltions need to be in place for OpenGL runtimes, but I think this would be a very risky security hole, as any application could then take advantage of OpenGL runtime libraries and a potential malicious code attack could take place.


   
ReplyQuote
(@stastro)
Black Hole
Joined: 5 years ago
Posts: 183
 

Realtime Protection Disabled
Run 1: 4.04 seconds
Run 2: 4.70 seconds
Run 3: 4.15 seconds
Run 4: 4.45 seconds
Run 5: 4.92 seconds
Run 6: 4.49 seconds
Run 7: 4.53 seconds
Run 8: 4.06 seconds
Run 9: 4.20 seconds

Realtime protection enabled (with exception for APP folder in place), the longer the gap is between launching instances, the more time it takes to load
Run 1:  17.14 seconds
Run 2:  4.82 seconds
Run 3:  5.72 seconds
Run 4:  6.30 seconds
Run 5:  8.78 seconds
Run 6:  12.84 seconds
Run 7:  9.64 seconds
Run 8:  15.78 seconds
Run 9:  13.45 seconds


   
ReplyQuote
(@stastro)
Black Hole
Joined: 5 years ago
Posts: 183
 

@mabula-admin

After running Process Monitor, and filtering out all the background noise when APP is not running, I have tied the issue down to it being java.exe and javaw.exe related.  In my last launch at 17:05:25 only java.exe and javaw.exe processes were active, all the way through to 17:05:30 when OpenGL had completed initialization.  So whilst the issue seems to be OpenGL related, I think we might need to look at Java too.  Asside from SmartScreen creating a thread then closing it, there's nothing else.


   
ReplyQuote
(@mabula-admin)
Universe Admin
Joined: 7 years ago
Posts: 4366
 

Hi Simon,

So this is realtime protection from Sophos I assume then, right?

From the OpenGL JOGL library bug list we have this: https://jogamp.org/bugzilla/show_bug.cgi?id=1301#c7

This is directly our issue it seems and a solution is available:

I've managed to solve the issue using the parameter : -Djogamp.gluegen.UseTempJarCache=false and taking care of providing the natives.

Also here :

https://stackoverflow.com/questions/40851464/jogl-takes-too-long-to-start

A comment from one of the JOGL developers:

I confirm Marvin's suggestion, it's a known problem: jogamp.org/bugzilla/show_bug.cgi?id=1301#c7 I remind that JOGL itself isn't to blame. Some virus scanners find JogAmp's automated native library extraction suspicious and take ages to scan the extracted libraries (which seems to be your problem). Sometimes, it's rather IOUtil.testDirExec() that takes a long time. Actually, the automated native library loading is a nice feature, it eases the deployment a lot but it's almost useless when you build your native bundles for a "polished" software under your control.

Dec 1, 2016 at 15:24

The explanation is that the native libs that JOGL needs to init OpenGL are currently unzipped from a jar archive and then loaded. This unpacking is the issue, it triggers a scan of the archive and various security package will do this, some might even block it apparently allthough the inside of the archive has no security threat.
 
So this is what I am working on right now actually, prevent the unzip operation and provde JOGL a location where the native libs are already unpacked and ready to be loaded into java's virtual machine.
 
If we are right, it should definitely solve the issue for the users where startup time is soo long.
 
Mabula
This post was modified 7 months ago 2 times by Mabula-Admin

   
Simon Todd reacted
ReplyQuote
(@mabula-admin)
Universe Admin
Joined: 7 years ago
Posts: 4366
 

Hi all @stastro, @technohell, @rouvinho209,

Allright, I have things working now with a workaround for the OpenGL slow load issue on windows. I should be able to give you a new test version tomorrow 🙂 !

Mabula


   
Simon Todd reacted
ReplyQuote
(@stastro)
Black Hole
Joined: 5 years ago
Posts: 183
 

@mabula-admin Thanks Mabula


   
ReplyQuote
(@mabula-admin)
Universe Admin
Joined: 7 years ago
Posts: 4366
 

Hi all @stastro, @technohell, @rouvinho209,

Finally, I have a new test version for you now 2.0.0-beta24-test3.

Unfortunately, I ran into some issues yesterday so could not supply it yesterday as promised.

This test version has the workaround for the OpenGL/JOGL library, and should prevent the slow or not loading of AstroPixelProcessor due to OpenGL initialization I think.

On most systems this version will load a bit faster in general as well, this issue helped me with analysing application startup and I have now added again a startup window that should actually function now.

When the application has started, a dialog will show the complete startup log and more information about the OpenGL initialization has been added. That dialog is still shown for testing purposes of this issue. I will remove it when the issue is solved. Finally, the startup log will always be printed now in the general console, so after each APP start, everyone can see the startup log in there.

StartUp log in General Console

 

Oh, last modification, the license check has been placed earlier in the application startup. So if the license check is vaild, you will not even see a message dialog at startup about license verification. Only when the license check fails, a window will popup about this when the application has started. So that improves startup time as well 😉

Please test this version and let me know if the slow application start on windows is solved now :

https://appreleaseserver.s3.eu-central-1.amazonaws.com/2.0.0-beta24-test3/AstroPixelProcessor-2.0.0-beta24-test3-Windows-64-bit.zip

Mabula


   
ReplyQuote
Page 2 / 3
Share: