java.lang.IllegalAr...
 
Share:
Notifications
Clear all

Jan 31 2026: APP 2.0.0-beta40 will soon be released with many fixes especially for Linux, upgraded development platform and 10-20% performance boost !

Jan 15 2026: FIXED LICENSE SERVER VPN Tunnel  issue

 The issue could have prevented APP to start when using a VPN tunnel or another complicated network configuration, like using APP on a remote computer on a different continent. This issue is fixed now and APP should start normally.

Jan 04 2026: 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. Unfortunately, Mabula was struck by a severe flu virus in the past couple of weeks and thus could not work.  He is getting much better now and he has resumed work to release 2.0.0 as soon as possible. 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.

Nov 28 2025:  APP 2.0.0-beta39 has been released !

It is a major update with a new and much improved registration engine and much better Multi-Narrowband processing !

[Solved] java.lang.IllegalArgumentException ??

11 Posts
5 Users
0 Reactions
1,200 Views
(@bilko29)
White Dwarf
Joined: 5 years ago
Posts: 8
Topic starter  

Hello,

I wanted to add frames to a mosaic, but I'm getting this "java.lang.IllegalArgumentException" error, and I can't figure out what's going on. Mosaic using the Sigma 135 / ASI6200MC lens, total is 11 frames. I've already made another mosaic with the same setup of 14 frames, and it "worked" correctly.

Does anyone know the cause of the problem?

Thanks in advance 🙂

 message :
Astro Pixel Processor - 2.0.0-beta37
Oracle GraalVM 24.0.1+9.1 - Windows-64-bit

Encountered error in module:
Integrator

Error message:
java.lang.IllegalArgumentException: capacity < 0: (-1778052496 < 0)

Cause:
capacity < 0: (-1778052496 < 0)
java.base/java.nio.Buffer.createCapacityException(Unknown Source)
java.base/java.nio.ByteBuffer.allocate(Unknown Source)
astropixelprocessor@2.0.0-beta37/com.ariesproductions.iO.g.b(MemoryToFileMapper.java:392)
astropixelprocessor@2.0.0-beta37/com.ariesproductions.iO.g.d(MemoryToFileMapper.java:2547)



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

Hi Breard @bilko29,

Thank you very much for posting your issue and welcome to the APP forum !

That error seems to indicate a problem with writing data to your Working Directory location. With regular internal hard disks, this issue should never happen. Could it be that you have your working directory on an external drive or network, and that the connection could be lost to the external hard disk or network share?

Also, is this error repeatable? Does it happen each time, or did it only occur once? If only once, I think something went wrong with the connection to the harddisk on which the Working directory is.

It would be helpful to understand why this error occurred, so please share as much information as you can. I will try to catch this problem and warn the user about the issue or prevent it from happening.

Mabula

 



   
ReplyQuote
(@bilko29)
White Dwarf
Joined: 5 years ago
Posts: 8
Topic starter  

@mabula-admin 

Thank you for your feedback. This error only appears on the "6" tab - Integration. And with this product, when I add a frame to 13 frames, the integration goes well. I add another frame and then I get this error.
And I've had this error since I upgraded to the latest stable version.
I also tested it on another hard drive, same problem.


   
ReplyQuote
(@bilko29)
White Dwarf
Joined: 5 years ago
Posts: 8
Topic starter  

@mabula-admin 

Hello,

I'm still having this problem.
Error message:
java.lang.IllegalArgumentException: capacity < 0: (-1884069752 < 0)
On a mosaic of 9 frames, up to 8 frames are no problems.
Are the numbers indicated in the error (-1884069752) bytes?
I tested it on standard internal hard drives or SSD

thank you for your feedback 🙂

François



   
ReplyQuote
(@karolbe)
White Dwarf
Joined: 6 years ago
Posts: 11
 

I had the same problem with 24 panel mosaic, I have enough of RAM (128GB) and disk space (TBs) so this is not an issue.

This happens with a local NVME disk, I have plenty of space there, there is no write permission issue. I can reproduce it every time.

 

Astro Pixel Processor - 2.0.0-beta38
Oracle GraalVM 24.0.1+9.1 - Linux-64-bit

Encountered error in module:
Integrator

Error message:
java.lang.IllegalArgumentException: capacity < 0: (-1432615808 < 0)

Cause:
capacity < 0: (-1432615808 < 0)
java.base/java.nio.Buffer.createCapacityException(Unknown Source)
java.base/java.nio.ByteBuffer.allocate(Unknown Source)
astropixelprocessor@2.0.0-beta38/com.ariesproductions.iO.g.b(MemoryToFileMapper.java:392)
astropixelprocessor@2.0.0-beta38/com.ariesproductions.iO.g.d(MemoryToFileMapper.java:2547)

 

16:13:19 - 6) INTEGRATE: integrate light frames: got size of 1 frame: 8189 MegaBytes
16:13:19 - 6) INTEGRATE: integrate light frames: got datasize (# of pixels * # of channels) of 1 frame: 2047 Mega Pixels
16:13:19 - 6) INTEGRATE: integrate light frames: using read buffer per thread of 32 KiloBytes
16:13:19 - 6) INTEGRATE: integrate light frames: using total read buffer of 736 KiloBytes
16:13:19 - 6) INTEGRATE: integrate light frames: integration buffer consumes 207 MegaBytes of RAM memory
16:13:19 - 6) INTEGRATE: integrate light frames: loading 1 frame at a time and writing it to the file mapper...
16:13:19 - MEMORY TO FILE MAPPER: trying to create memory to file mapping...
16:13:19 - MEMORY TO FILE MAPPER: file: Light-RGB-session_1
16:13:19 - MEMORY TO FILE MAPPER: number of files: 24
16:13:19 - MEMORY TO FILE MAPPER: size of one file: 2047 Mega Pixels
16:13:19 - MEMORY TO FILE MAPPER: data type: FLOAT
16:13:19 - MEMORY TO FILE MAPPER: using file /run/media/kbryd/endeavouros/tmp/Light-RGB-session_1.dat
16:13:19 - MEMORY TO FILE MAPPER: file mapping succesfully created
16:13:19 - 6) INTEGRATE: integrate light frames: created memory to file mapper for main integration task
16:13:19 - MEMORY TO FILE MAPPER: trying to create memory to file mapping...
16:13:19 - MEMORY TO FILE MAPPER: file: Light-weights-RGB-session_1
16:13:19 - MEMORY TO FILE MAPPER: number of files: 24
16:13:19 - MEMORY TO FILE MAPPER: size of one file: 2047 Mega Pixels
16:13:19 - MEMORY TO FILE MAPPER: data type: SHORT
16:13:19 - MEMORY TO FILE MAPPER: using file /run/media/kbryd/endeavouros/tmp/Light-weights-RGB-session_1.dat
16:13:19 - MEMORY TO FILE MAPPER: file mapping succesfully created
16:13:19 - 6) INTEGRATE: integrate light frames: created memory to file mapper for integration with weights per pixel
16:13:20 - 6) INTEGRATE: integrate light frames: LNC: got center coordinates and area of frame 1 in integration composition
16:13:21 - 6) INTEGRATE: integrate light frames: integration task encountered an execution exception
16:13:55 - MEMORY TO FILE MAPPER: closing memory to file mapper.../run/media/kbryd/endeavouros/tmp/Light-RGB-session_1.dat
16:13:55 - MEMORY TO FILE MAPPER: removing mapped file
16:13:55 - MEMORY TO FILE MAPPER: removed file mapping : true
16:13:55 - MEMORY TO FILE MAPPER: closed succesfully
16:13:55 - MEMORY TO FILE MAPPER: closing memory to file mapper.../run/media/kbryd/endeavouros/tmp/Light-weights-RGB-session_1.dat
16:13:55 - MEMORY TO FILE MAPPER: removing mapped file
16:13:55 - MEMORY TO FILE MAPPER: removed file mapping : true

I decided to upgrade to the beta39 and now I get this, happened during LNC processing. 

 

Encountered error in module:
FirstDegreeRegressionWorker

Error message:
java.lang.NullPointerException: Cannot read the array length because "<parameter1>" is null

Cause:
Cannot read the array length because "<parameter1>" is null
java.base/java.util.Arrays.sort(Unknown Source)
vI.a(Unknown Source)
rS.a(Unknown Source)
rS.doInBackground(Unknown Source)

 

 


This post was modified 9 months ago by Karol Bryd

   
ReplyQuote
(@karolbe)
White Dwarf
Joined: 6 years ago
Posts: 11
 

Hi @mabula-admin 

 

I have downgraded APP to 2.0.0-beta30, and I am able to register and integrate the mosaic just fine, it is a clearly a regression then. 

 

If you want I can send you the FITS files so you can take a look. 

 



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

Hi all @karolbe @bilko29,

This issue has been fixed, the fix will be included in the soon to be released 2.0.0-beta39. Thank you very much for reporting this.

Mabula



   
ReplyQuote
(@bilko29)
White Dwarf
Joined: 5 years ago
Posts: 8
Topic starter  

merci pour ce retour, j'étais aussi repassé sous le version XX3.0 fin de créer ma mosaïque de la constellation du Cygne
demain j’installerais cette nouvelle version 2.0.0-beta39

La mosaique en question
https://www.astrobin.com/5ondco/



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

Hi Breard @bilko29,

Wow, that looks really awesome, great work !

2.0.0-beta39 is not yet released, sorry for the confusion, it will be released within 7-14 days for sure !

Mabula



   
ReplyQuote
(@550ml)
Brown Dwarf
Joined: 12 months ago
Posts: 4
 

Posted by: @mabula-admin

Hi Breard @bilko29,

Wow, that looks really awesome, great work !

2.0.0-beta39 is not yet released, sorry for the confusion, it will be released within 7-14 days for sure !

Mabula

Looking at the thread itself, I also started to get this error, but only on some Seestar related files. However, reading about the beta 39 changes, it really sounds like it holds major upgrades and it sparked my interest, so the question is, how far from the release is @Mabula?!

 



   
ReplyQuote
(@vorobiev)
White Dwarf
Joined: 3 years ago
Posts: 11
 

I also run into the same error while integrating a mosaic with 3 new panels.

 

Previously I was able to integrate successfully (before the new 3 panels) but now this error occured.

 

I guess we'll have to wait for the beta 39 🙂

 

Greetings,

Pavel



   
ReplyQuote
Share: