# Fatal error importing via Datasmith (memory allocation)

**URL:** <https://forums.unrealengine.com/t/fatal-error-importing-via-datasmith-memory-allocation/441454>\
**Category:** Pipeline & Plugins\
**Tags:** Datasmith, Revit, fatal-error, unreal-engine, question\
**Created:** [January 16, 2019, 4:36pm UTC](https://forums.unrealengine.com/t/fatal-error-importing-via-datasmith-memory-allocation/441454 "2019-01-16T16:36:10Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_fe412f7a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fe412f7a](https://forums.unrealengine.com/u/anonymous_user_fe412f7a)\
**Post date:** [January 16, 2019, 4:36pm UTC](https://forums.unrealengine.com/t/fatal-error-importing-via-datasmith-memory-allocation/441454/1 "2019-01-16T16:36:10Z")

</div>

Hi guys,

Simply put: I wanted to import a Revit file via Datasmith in to UE4. I tried everything, but it keeps crashing while doing this.  
Maybe it has to do with the model itself (size: 150 MB), because basic files like the default Revit file that comes along with the program, works just fine.

The error says:  
Fatal error:  
[File:D:\Build++UE4\Sync\Engine\Source\Runtime\Core\Private\GenericPlatform\GenericPlatformMemory.cpp] [Line:200]  
Ran out of memory allocating 3990934 bytes with alignment 0

**First sytem (desktop):**  
i7 4770K @ 4.1 GHz  
32 GB DDR3  
250 GB SSD + 2 TB HDD  
1080Ti

**Second system (laptop)**  
HP Omen  
i7 7820 HK @ 2.9 GHz  
32 GB DDR4  
500 GB SSD + 1 TB HDD  
1080

**Third sytem (desktop):**  
i7 5820K@ 3.3 GHz  
16 GB DDR4  
250 GB SSD + 2 TB HDD  
R9 280

The error keeps coming at my desktops. The laptop just crashes with BSOD (DPC Watchdog Violation)

I already have the latest drivers + software.  
Talking about Revit 2019, Unreal 4.21.1, latest exporter, windows 10, nvidia driver etc.  
Also tried in a brand new project, still no results.

The udatasmith file is 11 MB

Can someone help?  
Thanks!

---

<div class="post-metadata">

**Author:** ![Stephen\_Ellis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/stephen_ellis/32/1210665_2.png) [@Stephen\_Ellis](https://forums.unrealengine.com/u/Stephen_Ellis)\
**Post date:** [January 16, 2019, 4:57pm UTC](https://forums.unrealengine.com/t/fatal-error-importing-via-datasmith-memory-allocation/441454/2 "2019-01-16T16:57:32Z")

</div>

Hi Furkan.

I’ve looked up your CrashReports. It looks like the one from the laptop is a basic OutOfMemory crash.

The one from your other system is a little more unique to Datasmith, but still a memory issue.

```
Fatal error: [File:D:\Build\++UE4\Sync\Engine\Source\Runtime\Core\Private\GenericPlatform\GenericPlatformMemory.cpp] [Line: 200] Ran out of memory allocating 2209056 bytes with alignment 0

UE4Editor-DatasmithImporter!2c1c0000 + ac384
UE4Editor-DatasmithImporter!2c1c0000 + 6fc09
UE4Editor-DatasmithImporter!2c1c0000 + 6fa5e
UE4Editor-Core!FQueuedThread::Run() [ThreadingBase.cpp:455]
UE4Editor-Core!FRunnableThreadWin::Run() [WindowsRunnableThread.cpp:76]
UE4Editor-Core!FRunnableThreadWin::GuardedRun() [WindowsRunnableThread.cpp:33]
KERNEL32!85da0000 + 17e94
ntdll!870a0000 + 6a251

```

11MB is not a large file, so we’d like to investigate further if there is a bug with Datasmith behind this, but we’ll only be able to determine that if you’d be willing to share the file so we can test it.

We have a specific support site for Unreal Studio - [https://unrealstudiohelp.epicgames.com/s/case-community-page](https://unrealstudiohelp.epicgames.com/s/case-community-page) -please file a bug report here and upload the file, and we will follow up on your support ticket.

Thanks

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_fe412f7a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fe412f7a](https://forums.unrealengine.com/u/anonymous_user_fe412f7a)\
**Post date:** [January 16, 2019, 5:25pm UTC](https://forums.unrealengine.com/t/fatal-error-importing-via-datasmith-memory-allocation/441454/3 "2019-01-16T17:25:59Z")

</div>

Thanks . It is a very weird issue. Hope we can solve it together.  
The file itself is 11 MB, but the assets are 3.25 GB

I posted the issue on the link you’ve provided including the complete file.  
Thank you!

---

<div class="post-metadata">

**Author:** ![Beyond\_Matter](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Beyond\_Matter](https://forums.unrealengine.com/u/Beyond_Matter)\
**Post date:** [January 22, 2019, 6:37pm UTC](https://forums.unrealengine.com/t/fatal-error-importing-via-datasmith-memory-allocation/441454/4 "2019-01-22T18:37:27Z")

</div>

I got the same isse here. Importing a 3ds Max file.

```
Fatal error: [File:D:\Build\++UE4\Sync\Engine\Source\Runtime\Core\Private\GenericPlatform\GenericPlatformMemory.cpp] [Line: 200] Ran out of memory allocating 69493860 bytes with alignment 0

```

Any idea why this is happening?

---

<div class="post-metadata">

**Author:** ![Stephen\_Ellis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/stephen_ellis/32/1210665_2.png) [@Stephen\_Ellis](https://forums.unrealengine.com/u/Stephen_Ellis)\
**Post date:** [January 22, 2019, 10:38pm UTC](https://forums.unrealengine.com/t/fatal-error-importing-via-datasmith-memory-allocation/441454/5 "2019-01-22T22:38:45Z")

</div>

If you increase your memory, it may not crash anymore. For example, Furkan shared his assets and it did not crash on our hardware, but we did note that the import used a lot of memory, so we logged a bug report to investigate this. [Unreal Engine Issues and Bug Tracker (UE-68659)](https://issues.unrealengine.com/issue/UE-68659). There may be optimizations we can make on our end, but we don’t have a timeline for that yet.

Specifically however, Furkan’s issue was with a Revit import. For a 3ds Max file, we’d also like to have a test case, so please follow the link I provided in my other answer a report this issue, along with the asset that reproduces it.

Thanks

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_fe412f7a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fe412f7a](https://forums.unrealengine.com/u/anonymous_user_fe412f7a)\
**Post date:** [January 23, 2019, 9:29am UTC](https://forums.unrealengine.com/t/fatal-error-importing-via-datasmith-memory-allocation/441454/6 "2019-01-23T09:29:55Z")

</div>

You can vote here:

> **[The Unreal Engine Issues and Bug Tracker](https://issues.unrealengine.com/issue/UE-68659)**
>
> Welcome to the Unreal Engine Issue and Bug Tracker. You can check the status of an issue and search for existing bugs. See latest bug fixes too.

The whole issue is the model being complex. My model has a lot of circles/pipes in it, so the polygons are a bit too much to handle (even for 32 gb).  
How much gb ram do you use? Maybe i can try to export it on my pc for you 🙂

---

<div class="post-metadata">

**Author:** ![Beyond\_Matter](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Beyond\_Matter](https://forums.unrealengine.com/u/Beyond_Matter)\
**Post date:** [January 23, 2019, 12:23pm UTC](https://forums.unrealengine.com/t/fatal-error-importing-via-datasmith-memory-allocation/441454/7 "2019-01-23T12:23:01Z")

</div>

I got 32 gb of ram on my pc. My scene is an ArchViz scene so it is indeed a bit heavy on the polygons, but nothing really over the top (only a one bedroom apartment) so I believe Datasmith should be able to handle this as it is designed to import complex architectural stuff.  
I might be looking into upgrading my memory but would of course appreciate any fix on the Unreal side to this as well:)

Thanks, I upvoted the report:)
