Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Arnis stuck on 49% #355

Open
sebbe330 opened this issue Jan 31, 2025 · 3 comments
Open

[BUG] Arnis stuck on 49% #355

sebbe330 opened this issue Jan 31, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@sebbe330
Copy link

Describe the bug
At 49 percent arnis just gets stuck. I have 128gb of ram but still cant render the city i want.

Arnis and Minecraft version
newest version and 1.21.4

Screenshots

Image

Additional context

it runs till 49% then dies with this screenshot as error. i cant seem to find out why

@sebbe330 sebbe330 added the bug Something isn't working label Jan 31, 2025
@louis-e
Copy link
Owner

louis-e commented Feb 1, 2025

Thanks for the bug report! Can you provide the bbox input you used?

@harmvdhorst
Copy link

i get the same problem using the gui, i have selected a city in the netherlands and it just freezes on 48% or 49%

@sebbe330
Copy link
Author

sebbe330 commented Feb 3, 2025

Thanks for the bug report! Can you provide the bbox input you used?

Hi yes this is the map i used

Image

i seem to have sorted one of the paniks out, it seems that it got stuck on 49% because of my map choice was to big for a i32 value.

I changed this part
Image

to this so i could get some values to see why it was paniking
Image

That way i got this error when trying to render
Launching UI...
[1/5] Fetching data...
[2/5] Parsing data...
[3/5] Processing data...
⠉ [00:06:58] [██████████████████████████████████▓░░░░░░░░░░] 48983/63701 elements (4m)
dx: 51608, dz: 51608
[2025-01-31][13:36:58][arnis][ERROR] Application panicked: PanicHookInfo { payload: Any { .. }, location: Location { file: "src\element_processing\water_areas.rs", line: 231, col: 8 }, can_unwind: true, force_no_backtrace: false }
error: process didn't exit successfully: target\debug\arnis.exe (exit code: 1)

Process finished with exit code 1

this just tells me that 51608 * 51608 = 2_664_794_464 which is bigger than the cap of i32 (2_147_483_647) and thats why my ARNIS was stoping at 49% and just crashing eventually

so i changed all 3 rows to
const ITERATIVE_THRES: i64 = 10_000;

let dx: i64 = (max.0 as i64) - (min.0 as i64);
let dz: i64 = (max.1 as i64) - (min.1 as i64);

this to give it a bigger cap. and this sorted that issue, now im trying to figure out a new issue
Image

now i get this stack_buffer so i will update if i am able to sorti this issue aswell.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants