# ROOT error：total size of new array must be unchanged

**URL:** https://community.naturalcapitalalliance.org/t/root-error-total-size-of-new-array-must-be-unchanged/2103
**Category:** Software Support
**Tags:** root
**Created:** [August 10, 2021, 4:52pm UTC](https://community.naturalcapitalalliance.org/t/root-error-total-size-of-new-array-must-be-unchanged/2103 "2021-08-10T16:52:09Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Yongxiu](https://avatars.discourse-cdn.com/v4/letter/y/6f9a4e/32.png) [@Yongxiu](https://community.naturalcapitalalliance.org/u/Yongxiu)
#### Post date: [August 10, 2021, 4:52pm UTC](https://community.naturalcapitalalliance.org/t/root-error-total-size-of-new-array-must-be-unchanged/2103/1 "2021-08-10T16:52:09Z")

</div>

Hello everyone,  
I am using ROOT to optimise selection of areas for habitat quality，but i can not run due to this question. I want to seek help for this.

 ![微信图片_20210811004824](https://canada1.discourse-cdn.com/flex031/uploads/naturalcapitalproject/original/2X/a/a4879643f464481611d9f6f5c1b7f85cc445b107.png)

---

<div class="post-metadata">

### Author: ![dcdenu4](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/dcdenu4/32/544_2.png) [@dcdenu4](https://community.naturalcapitalalliance.org/u/dcdenu4)
#### Post date: [August 11, 2021, 1:52pm UTC](https://community.naturalcapitalalliance.org/t/root-error-total-size-of-new-array-must-be-unchanged/2103/2 "2021-08-11T13:52:30Z")

</div>

Hi @Yongxiu ,

Is there a text logfile that was generated in your workspace? If so, could upload that here for us to inspect?

Thanks,

Doug

---

<div class="post-metadata">

### Author: ![Yongxiu](https://avatars.discourse-cdn.com/v4/letter/y/6f9a4e/32.png) [@Yongxiu](https://community.naturalcapitalalliance.org/u/Yongxiu)
#### Post date: [August 12, 2021, 3:11am UTC](https://community.naturalcapitalalliance.org/t/root-error-total-size-of-new-array-must-be-unchanged/2103/3 "2021-08-12T03:11:18Z")

</div>

Hello, thank your reply. When I used these files (files1), I encounter the question “total size of new array must be unchanged”. However, when I used another files (files 2), I again encounter the question"MemoryError". I can not run due to these questions.

Thanks,

Yongxiu

(Attachment files 1.rar is missing)

[files 2.zip](https://community.naturalcapitalalliance.org/uploads/short-url/6Vw1qcbtjmzOWVG3DrvMXnvHv4i.zip) (3.83 KB)

---

<div class="post-metadata">

### Author: ![Yongxiu](https://avatars.discourse-cdn.com/v4/letter/y/6f9a4e/32.png) [@Yongxiu](https://community.naturalcapitalalliance.org/u/Yongxiu)
#### Post date: [August 12, 2021, 3:16am UTC](https://community.naturalcapitalalliance.org/t/root-error-total-size-of-new-array-must-be-unchanged/2103/4 "2021-08-12T03:16:26Z")

</div>

Hello, thank your reply. When I used these files (files1), I encounter the question “total size of new array must be unchanged”. However, when I used another files (files 2), I again encounter the question"MemoryError". I can not run due to these questions.

Thanks,

Yongxiu

[files 1.zip](https://community.naturalcapitalalliance.org/uploads/short-url/71sgLyFkjQ5MeLYmgRtIkFQ8ehO.zip) (3.75 KB)

[files 2.zip](https://community.naturalcapitalalliance.org/uploads/short-url/6Vw1qcbtjmzOWVG3DrvMXnvHv4i.zip) (3.83 KB)

---

<div class="post-metadata">

### Author: ![dcdenu4](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/dcdenu4/32/544_2.png) [@dcdenu4](https://community.naturalcapitalalliance.org/u/dcdenu4)
#### Post date: [August 12, 2021, 8:04pm UTC](https://community.naturalcapitalalliance.org/t/root-error-total-size-of-new-array-must-be-unchanged/2103/5 "2021-08-12T20:04:08Z")

</div>

HI @Yongxiu ,

Thanks for sharing those files. I’m going to upload the logfile from within those files and see if @phawthorne has any thoughts.

[root-log-2021-08-10–23\_09\_18.txt](https://community.naturalcapitalalliance.org/uploads/short-url/sg3rDCbpKYs4EU35JJzC5pUCLwD.txt) (7.7 KB)

Cheers,

Doug

---

<div class="post-metadata">

### Author: ![wmerritt](https://avatars.discourse-cdn.com/v4/letter/w/b9bd4f/32.png) [@wmerritt](https://community.naturalcapitalalliance.org/u/wmerritt)
#### Post date: [October 6, 2021, 5:18pm UTC](https://community.naturalcapitalalliance.org/t/root-error-total-size-of-new-array-must-be-unchanged/2103/6 "2021-10-06T17:18:53Z")

</div>

@dcdenu4 @Yongxiu I am currently attempting to run ROOT but am encountering this same issue. Has any resolution been identified?

---

<div class="post-metadata">

### Author: ![jade](https://avatars.discourse-cdn.com/v4/letter/j/a8b319/32.png) [@jade](https://community.naturalcapitalalliance.org/u/jade)
#### Post date: [October 7, 2021, 11:43pm UTC](https://community.naturalcapitalalliance.org/t/root-error-total-size-of-new-array-must-be-unchanged/2103/7 "2021-10-07T23:43:42Z")

</div>

Hi @Yongxiu  
I am sorry you are running into those issues.  
Would you be able to send me your spatial layers (AMR and IPM) so I can take a look at them and try to run it on my end?  
Thank you  
Jade

---

<div class="post-metadata">

### Author: ![wmerritt](https://avatars.discourse-cdn.com/v4/letter/w/b9bd4f/32.png) [@wmerritt](https://community.naturalcapitalalliance.org/u/wmerritt)
#### Post date: [December 14, 2021, 7:59pm UTC](https://community.naturalcapitalalliance.org/t/root-error-total-size-of-new-array-must-be-unchanged/2103/8 "2021-12-14T19:59:21Z")

</div>

Just posting incase anyone else comes to this issue. I was able to remedy the error in my case by projecting my input rasters (i.e. originally they were being input is a geographic coordinate system wgs84).

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex031/uploads/naturalcapitalproject/original/2X/8/8d95591aa074da87ea0fdd61ca47c1c3c0588aa7.png) [@system](https://community.naturalcapitalalliance.org/u/system)
#### Post date: [December 21, 2021, 7:59pm UTC](https://community.naturalcapitalalliance.org/t/root-error-total-size-of-new-array-must-be-unchanged/2103/9 "2021-12-21T19:59:31Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
