Crash trying to import CSV as DataTable

I have created a struct which consists of a few variables (strings, ints, material refs etc.). I am trying to import a CSV in the format of this struct. I tested it earlier with a short CSV and it was all working fine. Now I am trying to import my full CSV (which has 537 rows) and the editor is crashing every single time and failing to import.

I have tried creating a totally new project, re-creating the struct and importing the Data Table into that project and it works fine. It’s only crashing trying to bring it into my main project, which is very odd.

  • I’m using Mac OSX 10.11.2
  • MacBook Pro (17-inch, Late 2011)
  • 2.5 GHz Intel Core i7
  • 16 GB 1333 MHz DDR3
  • AMD Radeon HD 6770M 1024 MB
  • Unreal 4.10.4

I’ve uploaded the .dmp and .log files here.
link text

Hi localstarlight,

  • Does this occur in a clean, blank project with no additional content or is it limited to one project?
  • What steps can I take to reproduce this on my end?
  • Have you tried this with additional CSV’s or is it limited to a specific CSV file?

[Part 1]
It’s hard to test on a ‘blank’ project because this relies on quite a large number of assets. Perhaps I should explain in more detail what I’m trying to do.

I have a large number of video files in this project (the whole project is essentially an interactive UI for exploring vast amounts of video material) – 567 to be precise. I have imported these video files as Media Players, and created both Media Textures and Materials from them.

I have a custom Blueprint Class called Video_File which has a lot of different variables (video_name, theme_tags, duration etc.) as well as a Media Player reference and Material reference.

Since there are so many objects, I want to use a CSV (ie. Data Table inside Unreal) to instantiate all the Video_File objects at runtime based on the data in the spreadsheet.

Since I was still building the spreadsheet data, I wanted to get this working with a smaller set to begin with. I had around 250 video files imported, and a CSV with all the lines pertaining to those video files. I got the function working perfectly – at runtime I had all 250 Video_File objects created exactly as they should be.

Then I brought in all the remaining video files (had a few crashes just trying to do that to be honest). But then I tried to just import a CSV with all 567 lines in it, and it was crashing the editor every time.

[Part 2]
I tried returning to the original test CSV, and just adding 10 lines at a time, trying to work out if there was some particular line causing problems, maybe an error in one of the asset references. After trying to track this down for hours, there was no pattern or consistency to it. I would focus on one group of ten lines on their own in the CSV which seemed to be crashing it, but then suddenly it would import just fine. I tried breaking the CSV into three parts, thinking maybe it was just a problem with the length of the thing. I eventually managed to get all three parts in there just fine. Since you can’t use a Data Table as a variable in Blueprint (really hoping that comes along one day) this just meant I would have to duplicate the Initialize_Video_Files function three times, and hardcode the reference to the three different Data Tables. Not ideal, but fine. However, suddenly, any time I tried to select the second Data Table it crashed the editor.

I decided to start a whole new project, imported all the video files, created Media Textures and Materials, create the struct for importing data, and tried it like that. Worked perfectly, with the entire data in one CSV.

So I went back to my production project, and deleted all the media files. Re-imported the videos, re-created the Media Textures and Materials, and then tried to import the CSV as one thing. SUCCESS!

And then, I went to the Initialize_Video_Files function and tried to change the reference to the Data Table to the newly imported Data Table – instant CRASH.

And now, I can’t even open the project. It crashes just trying to open it.

I have no idea what to do now.

I have uploaded my crash files from this most recent crash: http://we.tl/t1NFpvgCEO

I’m not sure how you could recreate this on your end to be honest, so I’m hoping there’s something in the crash report you can make sense of. But please let me know if there’s anything else I can send to try and make sense of this.

Unfortunately, due to our internal firewall I am unable to open the link that you provided. Can you upload a . with the crash logs? They can be found at \Unreal Projects\PROJECTNAME\saved\logs. Additionally, if you go into your project via the Windows Explorer by going to \Unreal Projects\PROJECTNAME\ and go to the content folder, are you able to find and remove the csv file? If so, are you able to open the project without it crashing?

Once you have done this if it works, try creating the datatable asset within UE4 to see if you get the same results.

Hi ,

I think I’ve managed to get around the problem actually. I have created a new project, redone everything with the media files, and then migrated the other assets over from the original project. Seems to be working for now…

I’m happy to hear you were able to find a suitable solution for your error. If this occurs in the new project, please feel free to post here and I’ll be happy to take a look. I am marking this as answered for tracking purposes.

Hi ,

I seem to be continually having problems with Data Tables. Before I realised it was the same issue, I created another bug report, would be great if you could check it out: Editor crashing opening project - Programming & Scripting - Epic Developer Community Forums

Hi localstarlight,

I see that Rudy has already been assigned to assist you further. I will pass along the information we have gathered here so he can have it at hand as he works on this issue.

Thanks ! Really stuck on this so appreciate all help :slight_smile: