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

XaoS zooming algorithm: bestprice assertion fails while rendering large size images #162

Open
PiotrNestor opened this issue Jun 4, 2020 · 5 comments

Comments

@PiotrNestor
Copy link

PiotrNestor commented Jun 4, 2020

Rendering 16k image fails on Linux box with 64GiB RAM and 14G on local SSD

xaos -render Octal.xpf -size 15360x8640 -basename octal_16k 
Initializing
Loading catalogs
Processing command line options
Enabling animation replay

Entering calculation loop!
Rendering frame 0...
xaos: src/engine/zoom.cpp:498: void mkrealloc_table(const number_t*, realloc_t*, unsigned int, number_t, number_t, number_t, unsigned char*): Assertion `bestprice >= 0' failed.

The xpf

(initstate)
(filter 'anti #t)
(palette 1 16291 0)
(formula 'octal)
(maxiter 320)
(outcoloring 6)
(incoloring 2)
(view -0.47351 -0.2333 0.55991 0.55991)

Linux box ulimit -a

ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 127019
max locked memory       (kbytes, -l) 64
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 4096
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited

Is there some Linux configuration that is needed or this is Xaos memory allocation issue?

@kanurag94
Copy link
Member

This is an issue in xaos zooming algorithm. I am not sure how to go about it now. But let's create this issue for tracking this further.

PS: I added some info a few days back regarding this #77 (comment)

@kanurag94 kanurag94 changed the title 16k render fails XaoS zooming algorithm: bestprice assertion fails while rendering large size images Jun 6, 2020
@PiotrNestor
Copy link
Author

I can help running tests if needed ...

@kanurag94
Copy link
Member

@PiotrNestor Yes please, go ahead.

@kanurag94
Copy link
Member

@trathborne as you suggested in #77 I tried converting many int(s) to long(s) used in calculation. I can still reproduce the crash.
I am using the above mentioned xpf config with a size of 6400x8400 (my ram just gives up at the mentioned sizes in above xpf)

Do you have anything in mind that you'd like me to try?

@trathborne
Copy link

@kanurag94 thanks for trying ... I saw some of those changes (um did you accidentally commit some? :) ) and tried a bit myself. I'm out of ideas for you but will poke at it more when I have time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants