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.

 

PRE APP 2.0 - topic applied to 1.083 and older - I can't adjust APP's memory with the CFG button ! It's always the same when I start APP...

32 Posts
10 Users
5 Likes
9,291 Views
(@mabula-admin)
Universe Admin
Joined: 7 years ago
Posts: 4366
Topic starter  

EDIT BY MABULA: this topic only applies to APP 1.083 and older, it does not apply to 2.0 betas or later.


Hi all,

Astro Pixel Processor is an Oracle JAVA application and the startup parameters of JAVA to run APP properly are configured in the APP installation files. You should never have to alter these yourself.

However, some other application builders have the bad habit of asking the user to set JAVA startup parameters on the Operating System level.  This is not good.

This means that all Java applications on your operating system, will only be able to run with the settings that are set on the Operating System level, because they will overrule the settings on application level.

So which operating system level envrionment variable is concerned here? It's the variable

_JAVA_OPTIONS

with argument -XmxXXXXM or -XmxXG

The XXXXM could be 1024M, in this case, any Java process could only use a maximum of 1024MB=1GB of memory. 2G means 2GB.

APP by default will start on a new installation with 2GB's of memory available. If this is not the case, then this environment variable is very likely to be set on your Operating System level.

If the variable is set, you will need to delete it (or alter it to influence the amount of memory that APP can use). Below are general instructions on how to find and delete the variable so APP can function properly :

Windows:

Right click on windows start:

System, system info, advanced system settings, Environment Variables

Here is an explanation as well:

https://www.computerhope.com/issues/ch000549.htm

MacOS & Linux:

This is probably a bit more complicated than on windows, because it can depend on which MacOS version you are or which shell you have on your Linux distribution, here is a general article that could help you in this regard:

https://support.foundry.com/hc/en-us/articles/209642805-Q100127-How-to-delete-unset-environment-variables

If you do a search on a searchengine, you are bound to found a way to solve this for your MacOS version or Linux distribution.

If you need help with deleting the envrionment variable on your computer, please let us know 😉

Kind regards,

Mabula

This topic was modified 5 years ago 5 times by Mabula-Admin
This topic was modified 7 months ago 2 times by Mabula-Admin

   
ReplyQuote
(@mikecmp)
Main Sequence Star
Joined: 4 years ago
Posts: 25
 

Actually, I think for the Mac version at least, this is a bug in the packaging of APP

Once installed, If I open contents of APP, and go into contents/java/AstropixelPriocessor.cfg There is a option under "JVMOptions" for -Xmx2g

The UI showed the correct value that I had set, but this file did not have the value updated. Once I changed this file and saved it, I saw APP use the correct amount of ram, or at least over 2gb 

I think that APP just needs to write the user specified value to this file as well and it would solve this problem on the Mac. 

 

Not a Java expert by any stretch! But this is how I solved the problem on my Mac

 

Mike


   
ReplyQuote
(@vincent-mod)
Universe Admin
Joined: 7 years ago
Posts: 5707
 

Very interesting Mike, I'll forward this to Mabula.


   
ReplyQuote
(@mikecmp)
Main Sequence Star
Joined: 4 years ago
Posts: 25
 

Sure thing - I found it as the second answer here:

 

https://stackoverflow.com/questions/10887518/change-max-memory-heap-for-java-on-mac-os-x


   
ReplyQuote
(@mabula-admin)
Universe Admin
Joined: 7 years ago
Posts: 4366
Topic starter  
Posted by: @mikecmp

Actually, I think for the Mac version at least, this is a bug in the packaging of APP

Once installed, If I open contents of APP, and go into contents/java/AstropixelPriocessor.cfg There is a option under "JVMOptions" for -Xmx2g

The UI showed the correct value that I had set, but this file did not have the value updated. Once I changed this file and saved it, I saw APP use the correct amount of ram, or at least over 2gb 

I think that APP just needs to write the user specified value to this file as well and it would solve this problem on the Mac. 

 

Not a Java expert by any stretch! But this is how I solved the problem on my Mac

 

Mike

H Michael @mikecmp & @vincent-mod,

This is NOT AN ERROR of APP's packaging really. APP uses the java 8 packager.

This topic concern's operating system's where for some reason other software builders had a problem with packaging... 🙂

Setting Java options on the operating system level is not smart and older java software packages used to do this... so if the operating system has this value _JAVA_OPTIONS then you need to remove this and APP will work as expected and according to modern java packaging.

To be clear, a user should never have to alter : AstropixelPriocessor.cfg

You can simply click on the CFG button in APP to change memory of APP, it will be applied after a restart. And the CFG should NOT be adjusted, this is not how that works...

The UI showed the correct value that I had set, but this file did not have the value updated. Once I changed this file and saved it, I saw APP use the correct amount of ram, or at least over 2gb

I think that APP just needs to write the user specified value to this file as well and it would solve this problem on the Mac.

And this is controlled on the user level. The CFG file regarding JVMOptions" for -Xmx2g is for general first time installation. Once APP has been started, the actual configuration is saved on the user account on for instance MacOS and Windows. So, the cfg file should not be changed by the user !

On all MacOS versions from sierra to Catalina, app works properly with memory management using only the CFG button in APP. I have never instructed users to change the CFG file, and they shouldn't need to do so.

It will only NOT work if _JAVA_OPTIONS are set on the Operating System level, which you never want to do. Older MacOS installation with legacy software might have this issue and that issue is caused by legacy software NOT using proper packaging, really 😉

Mabula


   
ReplyQuote
(@mikecmp)
Main Sequence Star
Joined: 4 years ago
Posts: 25
 

Interesting - I will poke around more - for now modifying the config in the app works for me, I'll try to hunt down the root of the problem with the installed version of the software.

Its possible i set something up incorrectly - I used this machine for work for several clients, all of whom had different software versions , etc. So i probably have a config buried somewhere I did not uncover. 

 

Thanks for the response, appreciate it and love APP

 

Mike


   
ReplyQuote
(@saarimann)
Hydrogen Atom
Joined: 4 years ago
Posts: 1
 

Hey, i have a Problem with the memory too. When i click on cfg nothing happens? I use Windows 10. I find the Variables with the instruction, but i dont know which one to delete? Can someone please help with this?

Encountered error in module:
AlignAndResampler

Error message:
java.lang.OutOfMemoryError: Java heap space

Cause:
Java heap space
d.a(Unknown Source)
d.doInBackground(Unknown Source)
javax.swing.SwingWorker$1.call(SwingWorker.java:295)
java.util.concurrent.FutureTask.run(FutureTask.java:266)

Thanks 

Alex


   
ReplyQuote
(@l-belien)
Hydrogen Atom
Joined: 5 years ago
Posts: 2
 

Same here.  Reported this issue a few months ago, but received no feedback or possible solution. Still hoping to get this resolved.

Lambert


   
ReplyQuote
(@aro)
Molecular Cloud
Joined: 3 years ago
Posts: 5
 

Hello everybody

I have the same problem, I can't adjust ram memory. The windows config didn't open when I click on button CFG. My config is Windows 10  32GB of RAM memory.

I have another small computer and it works on it.

Could you tell me how i can fix the problem.

I didn't find the varible JAVA in the system?

Thanks a lot Stéphane


   
ReplyQuote
(@vincent-mod)
Universe Admin
Joined: 7 years ago
Posts: 5707
 

I have notified Mabula again, it remains a weird problem that only happens for some. We will look into it again. If you are on Windows you can find environment variables here; go to the control panel and type in "environment variables", click on the "edit variables" option and then you should be able to see them (both for the user level and system level). If there is an option there for _JAVA_OPTIONS that might cause an issue apparently. But I would be surprised if that is the case for you. Be careful removing thins in there btw, it could be other software uses it.


   
ReplyQuote
(@aro)
Molecular Cloud
Joined: 3 years ago
Posts: 5
 

@vincent-mod

Thanks for the answer. I have checked but I didn't find _JAVA_OPTIONS in the environnement variables.

How can I fix it for the moment?


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

@aro & @l-belien,

In which way are you starting Astro Pixel Processor and on which Operating System? The CFG will not work if you don't start APP they way it is supposed to ;-).

After installation of the application, what exactly do you do to get Astro Pixel Processor to start?

Mabula

 


   
ReplyQuote
(@aro)
Molecular Cloud
Joined: 3 years ago
Posts: 5
 

Hello

Tell How I have to install it and launch it?

May be I have to desinstall and reinstal it?

Tell me.

My operating system is windows10


   
ReplyQuote
(@l-belien)
Hydrogen Atom
Joined: 5 years ago
Posts: 2
 

@mabula-admin

Hi Mabula, I've been strolling arround the forum and I found the solution to be set in the environnement variables. Although I am not a advanced programmer, I tried to alter the variables, defining the JAVA settings and succesfully applied 30 G of RAM memory to be adressed to the proper working of APP. My configuration is Windows 10  on a ASUS ZenBook Duo Pro with a I9 processor and 32G Ram. Now everything is working smoothly, but.......the CFG-button is still not reponding to the click. No problem because the system is getting all the RAM it needs.


   
ReplyQuote
(@aro)
Molecular Cloud
Joined: 3 years ago
Posts: 5
 

hello l.belien

 

Could you tell me precisely how to do it??

Thanks a lot

 

Stéphane


   
ReplyQuote
(@aro)
Molecular Cloud
Joined: 3 years ago
Posts: 5
 

hello l.belien

 

Could you help me please?

 Stéphane


   
ReplyQuote
(@mabula-admin)
Universe Admin
Joined: 7 years ago
Posts: 4366
Topic starter  
Posted by: @l-belien

@mabula-admin

Hi Mabula, I've been strolling arround the forum and I found the solution to be set in the environnement variables. Although I am not a advanced programmer, I tried to alter the variables, defining the JAVA settings and succesfully applied 30 G of RAM memory to be adressed to the proper working of APP. My configuration is Windows 10  on a ASUS ZenBook Duo Pro with a I9 processor and 32G Ram. Now everything is working smoothly, but.......the CFG-button is still not reponding to the click. No problem because the system is getting all the RAM it needs.

@l-belien, @aro

That is not a good solution at all, since the operating system variables will hold for any java application.

That is why it needs to be done on the application level, not on the Operating System level.

If you install Astro Pixel Processor correctly and start it with the link in Windows Start Menu -> Aries Productions -> Astro Pixel Processor.

The CFG button should work in that case.

If it works, but the memory is not adjusted after a restart, then there is the Operating System variable that is causing this. It overrrules which you don't want. So then you need to remove the variable.

If it does not work, so you don't see the CFG Menu pop-up, I think a system specific bug might be triggered somehow and it would be best if I have a look on your computer with Teamviewer for instance to solve this?

Kind regards,

Mabula

This post was modified 3 years ago by Mabula-Admin

   
ReplyQuote
(@moon314)
Hydrogen Atom
Joined: 2 years ago
Posts: 1
 

Folks, I could enable CFG button by uninstalling and re-installing APP at the top directory (C:\APP). The cause of my trouble appeared to come from my username of Kanji (Japanese character) for windows 10. I hope this will help.


   
ReplyQuote
(@michel1276)
Molecular Cloud
Joined: 4 years ago
Posts: 3
 

While looking for a solution to this problem, I found the thread here.

Maybe someone can help.

I got my new computer with 128 GB RAM, and installed 1.83.4 to work with. But it says, that only 2048 are used, and CFG Button doesn´t work. 

I tried new installation 4 times now, even with older 1.83.3 Version, but it´s still not active = pop up menu does NOT open. 

I also tried this java application thing, but it also didn´t help.

I have Windows 11 PRO - 64 Bit

12th Gen Intel(R) Core(TM) i5-12600K 3.70 GHz

128 GB RAM


   
ReplyQuote
(@wvreeven)
Quasar
Joined: 6 years ago
Posts: 2133
 

@michel1276 Michael, did you install APP on the C drive?


   
ReplyQuote
(@michel1276)
Molecular Cloud
Joined: 4 years ago
Posts: 3
 

@wvreeven Yes, it´s on C


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

Hi Michael,

How did you install APP ? And in what filepath?

Mabula


   
ReplyQuote
(@michel1276)
Molecular Cloud
Joined: 4 years ago
Posts: 3
 

@mabula-admin Fifth try was successfull... it´s working 😀 


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

Hi Michael,

Any idea what happend then? I know that if you do not start APP with it's installed executable, but instead would run the java process yourself like java -jar astropixelprocessor.jar then you will run into your problem 😉

Mabula


   
ReplyQuote
(@stefanastro)
Main Sequence Star
Joined: 1 year ago
Posts: 35
 

I discoverd that when i go to the windows start menu and go to Aries productions and open APP, it opened the 1.083.4? While i installed Beta 22?

In the Beta i couldnt change the RAM but in the 1.083.4 version i could?

What is the best way to do?


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

Hi Stefan @stefanastro,

Thank you for sharing this. Yes, this is a bit nasty. The 2.0 beta versions have updated installers and windows does not recognize that it is the same application unfortunately but has problems with it's registry to comply as well.

So it is possible to install a pre 2.0 version and a 2.0 version, both will be installed and you can run them. But in the windows control panel, the installed application will only show the 2.0 version mysteriously....

Best solution is now, to first deinstall the 2.0 version using the windows control panel. The remaining APP version, which would be 1.083 can then be uninstalled manually. Simply remove the installation folder completely, it would have a location like :  C:\Users\[your username]\AppData\Local\astropixelprocessor.

Once all installation are gone, double check if there is still a start menu option for APP, APP 1.083 was under the folder Aries Productions in the start menu. If it is still there, remove it manually as well, i think you can do it with a right mouse click on that folder ;-). APP 2.0 is no longer under the Aries Productions folder in the start menu as well. It is in the root and just Astro Pixel Processor is shown.

Yes, in the versions before 2.0, you could adjust how much memory APP could use with the CFG menu. THis option has been removed completely, it is no longer needed nor wanted to have that option. (Technically, we were forced to use that option pre 2.0 because of an old development platform which we have moved away from. So the newer development platform deprecated that option)

Mabula

This post was modified 7 months ago by Mabula-Admin

   
ReplyQuote
(@stefanastro)
Main Sequence Star
Joined: 1 year ago
Posts: 35
 

@mabula-admin 

Thanks for your response 

If i understand, i have to uninstall APP v2.0 beta 22 in the windows setting and go to App? Where you can uninstal many program's. 

After that i go to the location of the installation folder of Aries and remove that.

And if that is gone in the windows menu, i reinstall the V2.0 beta 22?

Correct?


   
ReplyQuote
(@stefanastro)
Main Sequence Star
Joined: 1 year ago
Posts: 35
 

@mabula-admin Hi, before i delete all APP programs i deactivate first my license.

Then i used the Uninstal app of APP in the map to delete the hole v2 beta 22 in the C:/programs (86x)/...

After that i checked the location of the v1.803 and it was in C:/user/username/AppData/roaming/Aries productions, and removed that map.

open the install file of beta 22 and it simply installed the APP in C:\Program Files\AstroPixelProcessor. Done and i place my license back and i go to CFG, still the same. Only the settings for the tool tips, what kind of sound when every process is done.

 

So i don't get it, but i see my CPU is on 11 of the 12 and Ram at 15 gb of 16GB so that is very good.

So i don't know what i did wrong? 


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

Hi Stefan stefanastro,

Simply make sure that you remove everything that you can find related to APP in the windows APP section where you cna uninstall application in general

Then manually remove all other APP stuff that still is on your system.

Remove the APP folders in C:/user/username/AppData/...

Remove the APP folders in C:\Program Files\

Remove all start menu items, especially the Aries Productions folder

Remove dekstop shortcuts etc..

Then install our lates APP 2.0.0-beta25. Once installed there should be both a desktop icon and a start menu item Astro Pixel Processor. Double check if they both point to the new installation location, if they don't fix them and check if the other location still holds anohter APP installation somehow.

Please let me know if all is okay now.

Mabula


   
ReplyQuote
(@stefanastro)
Main Sequence Star
Joined: 1 year ago
Posts: 35
 

@mabula-admin Well bad news, i uninstall it and checked everywhere in the pc if there is APP left, Nothing.

So i download and installed beta 25 and open it, place my license and checked the CFG and still not what i need. Only the options about the windows and sound signal like the Gong.


   
ReplyQuote
Page 1 / 2
Share: