Java error when beg...
 
Share:
Notifications
Clear all

Mar 28 2026 APP 2.0.0-beta40 will be released in 7 days.

It did take a long time to have the work finished on this and it  will have a major performance boost of 30-50% over 2.0.0-beta39 from calibration to integration. We extensively optimized many critical parts of APP. All has been tested to guarantee correct optimizations. Drizzle and image resampling is much faster for instance, those modules have been completely rewritten. Much less memory usage. LNC 2.0 will be released which works much better and faster than LNC in it's current state. And more, all will be added to the release notes in the coming weeks...

Update on the 2.0.0 release & the full manual

We are getting close to the 2.0.0 stable release and the full manual. The manual will soon become available on the website and also in PDF format. Both versions will be identical and once released, will start to follow the APP release cycle and thus will stay up-to-date to the latest APP version.

Once 2.0.0 is released, the price for APP will increase. Owner's license holders will not need to pay an upgrade fee to use 2.0.0, neither do Renter's license holders.

 

[Solved] Java error when beginning a new session

15 Posts
3 Users
1 Reactions
1,725 Views
(@digug)
Main Sequence Star
Joined: 4 years ago
Posts: 33
Topic starter  

I loaded my lights, flats, dark flats, and bias.  Click Integrate, and the app stopped during calibration with this error.  This is the first time APP has crashed for me.  Have to force quit via taskman.  I'm on Windows 11 btw.  Latest Java installed.  Haven't seen any Java updates lately.

 

Encountered error in module:
FrameDataCalibration

Error message:
java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1

Cause:
Index 1 out of bounds for length 1
fN.a(Unknown Source)
fN.doInBackground(Unknown Source)
java.desktop/javax.swing.SwingWorker$1.call(Unknown Source)
java.base/java.util.concurrent.FutureTask.run(Unknown Source)

Edit by Mabula: fixed in 2.0.0-beta29 🙂 !


This topic was modified 2 years ago by Mabula-Admin

   
ReplyQuote
(@mabula-admin)
Universe Admin
Joined: 9 years ago
Posts: 5056
 

Hi George @digug,

Thank you very much for sharing this issue, this was a bug in beta22 or before. Please use beta23 or later, that has this issue fixed 😉

you can find downloads in the downloads section here:

https://www.astropixelprocessor.com/downloads/

In addition, APP uses it's own version of java (is included in the installation package and is in APP's installation folder once installed), it does not matter if you have installed java or not, nor does the java version that you have installed affect APP's performance nor operation. If it would, it would not be good... 😉

Mabula



   
ReplyQuote
(@deepsky-photo)
White Dwarf
Joined: 4 years ago
Posts: 8
 

hi @mabula-admin, i also have this error with 2.0.0-beta26, but only with flats.

the only working workaround that i found is to load only one light, completely leave out any other calibration frames than flats and integrate. the calibrated light can obv. be deleted, but with that i at least get the masterflat.

from there on everything works as usual.

both below posted error messages appear twice, then APP gets stuck. in my example i loaded 176 lights for 7 different filters (so multi-filter mode), 350 flats (50 per filter), 350 dark-flats (50 per filter, flat-based exposure time), 3 master-darks (3 different light exposure times) and 1 master-bias.

Encountered error in module:                     
FrameDataCalibration

Error message: 
java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1

Cause: 
Index 1 out of bounds for length 1
fP.a(FrameDataCalibration.java:992)
fP.doInBackground(FrameDataCalibration.java:47)
java.desktop/javax.swing.SwingWorker$1.call(Unknown Source)
java.base/java.util.concurrent.FutureTask.run(Unknown Source)
Encountered error in module:                     
LightFrameCalibration

Error message: 
java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1

Cause: 
Index 1 out of bounds for length 1
fP.a(FrameDataCalibration.java:992)
fP.doInBackground(FrameDataCalibration.java:47)
java.desktop/javax.swing.SwingWorker$1.call(Unknown Source)
java.base/java.util.concurrent.FutureTask.run(Unknown Source)

 


This post was modified 2 years ago 2 times by deepsky.photo

   
ReplyQuote
(@mabula-admin)
Universe Admin
Joined: 9 years ago
Posts: 5056
 

Hi @deepsky-photo,

Thank you for reporting this.

Can you check for me the settings in 0) Raw/FITS when this error occurs? Does the error occur if you reset all setting with the CFG button?

Feel free to upload the data so I can test myself and solve this properly :

https://upload.astropixelprocessor.com/

username: uploadData

password: uploadTestData

Please make a folder like: deepskyPhoto-dataCalibration-bug

and upload it there and let me know once done, thanks !

Mabula

Mabula



   
ReplyQuote
(@deepsky-photo)
White Dwarf
Joined: 4 years ago
Posts: 8
 

Hi Mabula,

thanks for your reply, much appreciated. So what I did in the meantime is to;

  1. CFG->RESET to defaults
  2. CFG->RESET all menu tabs to defaults

(..while still being on 2.0.0-beta26).

Since then, no additional errors occured. I also tried to replicate the issue to give you further hints, but I'm afraid I can't.

In general, as I'm working with a mono-setup;

  • 0) RAW/FITS => pattern=supported, algorithm=adaptive airy disc, force Bayer/X-Trans CFA=false
  • 1) LOAD => Multi-Channel/Filter processing=true, Multi-Session processing=false, auto-detect Masters & Integrations=true
  • 2) CALIBRATE => everything default
  • 3) ANALYSE STARS => everything default
  • 4) REGISTER => everything default
  • 5) NORMALIZE => everything default
  • 6) INTEGRATE => I tend, after manual selection, to set "lights to stack" between 90-95% (maybe that was the issue behind my initial post in this thread - but it's working now after resetting CFG), LNC degree=1st degree LNC, LNC iterations=3, enable MBB=true, MBB=4%, everything else default

CS,

Christian



   
ReplyQuote
(@mabula-admin)
Universe Admin
Joined: 9 years ago
Posts: 5056
 

Hi Christian @deepsky-photo,

Okay, that is reassuring. I do know what probably went wrong if I look at our code. Your error message has a bit more information when compared to the error message in the first post of the topic, because newer APP versions will show a bit more error detail now.

The error indicates that the MasterBias that was used was a CFA masterbias, so it contained a Bayer pattern and R,G,G,B statistics for it's median, average etc...while the Masterdark was not a CFA Masterdark, so no Bayer pattern was in the header. Maybe that explains it?

I think I know enough now to reproduce this error and then fix it in our code, to make sure that this error is gone 😉

Thank you very much for reporting this.

Mabula


This post was modified 2 years ago by Mabula-Admin

   
ReplyQuote
(@mabula-admin)
Universe Admin
Joined: 9 years ago
Posts: 5056
 

Hi @digug and @deepsky-photo,

This bug is fixed in beta29 which will soon be released. The bug woudl manifest is the masterbias had a CFA pattern in the fits header and the masterdark not while processing monochrome or OSC data. So it would be caused by mixing up monochrome and color lights and masters...

In beta29 the error will not be thrown and the data would still be calibrated.

Thank you both for reporting this 😉

Mabula



   
ReplyQuote
(@digug)
Main Sequence Star
Joined: 4 years ago
Posts: 33
Topic starter  

@mabula-admin Thanks for the update.  I haven't seen the error since I posted the OP.



   
Mabula-Admin reacted
ReplyQuote
(@mabula-admin)
Universe Admin
Joined: 9 years ago
Posts: 5056
 

Great George @digug, that is good to know, thank you 😉 I guess it would only occur when color and mono processing is mixed up for some reason. Glad to have caught this bug now !

 



   
ReplyQuote
(@deepsky-photo)
White Dwarf
Joined: 4 years ago
Posts: 8
 

Posted by: @mabula-admin

The error indicates that the MasterBias that was used was a CFA masterbias, so it contained a Bayer pattern and R,G,G,B statistics for it's median, average etc...while the Masterdark was not a CFA Masterdark, so no Bayer pattern was in the header. Maybe that explains it?

Now that you mentioned it I remember that I took a look again once I resetted the CFG and found that the calibration masters were indeed flagged as RGB. They were created within my first (mono) integration run, must be a setting that was wrong as I recently changed to a mono setup. Anyhow, glad I was able to support with the logs above and thanks for that great piece of software!

CS everyone!

 



   
ReplyQuote
(@digug)
Main Sequence Star
Joined: 4 years ago
Posts: 33
Topic starter  

I'm now getting the java error every calibration.  I can't finish any stack. I only stack color lights.



   
ReplyQuote
(@mabula-admin)
Universe Admin
Joined: 9 years ago
Posts: 5056
 

Dear George @digug,

Can you try with 2.0.0-beta29 which I released today?

The error occurs because there must be a mixup with color and mono data. If you are using older master calibration files, they probably have no bayer pattern in their header which can cause the issue.

I have added a fix in beta29, so I think that error must be gone now though.

Mabula



   
ReplyQuote
(@digug)
Main Sequence Star
Joined: 4 years ago
Posts: 33
Topic starter  

@mabula-admin this is great news!  I will say tho I only image in color and even when I was creating masters from fresh stack sessions I got the error but I will try beta29 later.  I also saw in another post someone reported beta29 is faster on Mac so I hope I see some performances gains on Windows.



   
ReplyQuote
(@digug)
Main Sequence Star
Joined: 4 years ago
Posts: 33
Topic starter  

@mabula-admin

Installed beta29, spun up a session, and it stopped at creating master flat, no error messages.

image


   
ReplyQuote
(@digug)
Main Sequence Star
Joined: 4 years ago
Posts: 33
Topic starter  

UPDATE:
Wanted to point out that I installed beta29 over beta28 then tried stacking when it hung.  I uninstalled beta29 and cleared registry entries related to app then rebooted.  Now I got through Calibration.  Seems to be working fine now.


This post was modified 2 years ago by George

   
ReplyQuote
Share: