OBJ Import failure (works on 2.79) #64740

Closed
opened 2019-05-17 02:18:16 +02:00 by Henrique Balduino Gonzaga · 13 comments

System Information
Operating system: Windows-10-10.0.17763 64 Bits
Graphics card: GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 416.94

Blender Version
Broken: version: 2.80 (sub 60), branch: blender2.7, commit date: 2019-05-07 19:17, hash: 3dc9da3a74 (splash screen says 3d9da3a74ee)
Worked: 2.79 hash: f4dc9f9d68

Short description of error

Tryed importing a heavy .obj into blender 2.8 and it crashed 3 times.
worked on the first try on 2.79. Then i opened this file on 2.8 with no problem.

Exact steps for others to reproduce the error

The file is a stupid useless heavy export from that piece of junk called SketchUp (someone put 2 bonsai in it that has 18.000 objects as leaves, each).
Probally deleting this bonsai from the file may help importing into 2.8.

But i wonder, if 2.79 could import it, why 2.8 could't?

The .obj for testing is here : Projeto Ape 2019.obj

Warning. It will take some minutes.

**System Information** Operating system: Windows-10-10.0.17763 64 Bits Graphics card: GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 416.94 **Blender Version** Broken: version: 2.80 (sub 60), branch: blender2.7, commit date: 2019-05-07 19:17, hash: `3dc9da3a74` (splash screen says 3d9da3a74ee) Worked: 2.79 hash: f4dc9f9d68b **Short description of error** Tryed importing a heavy .obj into blender 2.8 and it crashed 3 times. worked on the first try on 2.79. Then i opened this file on 2.8 with no problem. **Exact steps for others to reproduce the error** The file is a stupid useless heavy export from that piece of junk called SketchUp (someone put 2 bonsai in it that has 18.000 objects as leaves, each). Probally deleting this bonsai from the file may help importing into 2.8. But i wonder, if 2.79 could import it, why 2.8 could't? The .obj for testing is here : [Projeto Ape 2019.obj](https://archive.blender.org/developer/F7042061/Projeto_Ape_2019.obj) Warning. It will take some minutes.

Added subscriber: @HenriqueGonzaga

Added subscriber: @HenriqueGonzaga

Added subscriber: @StephenSwaney

Added subscriber: @StephenSwaney

You wouldn't want to give us a hint and show us the error message?

You wouldn't want to give us a hint and show us the error message?

There is no message. Blender just closes.

There is no message. Blender just closes.

Sometimes you can trick Blender into revealing secrets by running it from the command line.

I can import your .obj on Linux, but it looks like Blender needs over 2 Gb of memory to do so.

You might try running from the command line and looking for messages about calloc or malloc returns nil.
This is a sign of running out of memory.

Sometimes you can trick Blender into revealing secrets by running it from the command line. I can import your .obj on Linux, but it looks like Blender needs over 2 Gb of memory to do so. You might try running from the command line and looking for messages about calloc or malloc returns nil. This is a sign of running out of memory.

I have 32 Gb of memory..
And if it refers to my GPU, I think it has 4Gb
I don't know how to use the command line.
Just wondered why 2.79 worked and 2.8 didn't..

I have 32 Gb of memory.. And if it refers to my GPU, I think it has 4Gb I don't know how to use the command line. Just wondered why 2.79 worked and 2.8 didn't..

I have 32 Gb of memory..

That shoots my lack of memory theory. I got nothing...

> I have 32 Gb of memory.. That shoots my lack of memory theory. I got nothing...

Added subscriber: @mont29

Added subscriber: @mont29

As for using command line… http://www.letmegooglethat.com/?q=windows+command+line

Monster file imports fine for me as well, we cannot do anything else without more info…

As for using command line… http://www.letmegooglethat.com/?q=windows+command+line Monster file imports fine for me as well, we cannot do anything else without more info…
Member

Added subscriber: @Mets

Added subscriber: @Mets
Member

Windows 10, v1607
GTX 1070 latest drivers
16GB RAM

Attempt 1, importing to 2.80, 65168825e0b0:
Huh. I can actually reproduce this. After a minute or two of waiting, blender just closes.

Attempt 2, I started importing to 2.80 and 2.7 at the same time(to save time and test both), this time from command line:
My computer has gone completely haywire, screens started flashing, desktop disappeared, and a few seconds later(not long enough for a reboot) I was greeted by my windows login screen, and all my apps are closed, and only my second monitor works. A PC reboot fixed this.

Attempt 3, importing only to 2.80 again, with command line:
Console output:

(  0.0286 sec |   0.0286 sec) Importing OBJ 'D:\\Met-PC\\Downloads\\Projeto Ape 2019.obj'...
  (  0.1330 sec |   0.1034 sec) Parsing OBJ file...
    ( 32.4876 sec |  32.3542 sec) Done, loading materials and images...
        Material not found MTL: 'D:\\Met-PC\\Downloads\\Projeto Ape 2019.mtl'
    ( 36.5409 sec |  36.4074 sec) Done, building geometries (verts:1114038 faces:1191721 materials: 8387 smoothgroups:0) ...
    ( 53.8666 sec |  53.7331 sec) Done.
  ( 53.8676 sec |  53.8380 sec) Finished importing: 'D:\\Met-PC\\Downloads\\Projeto Ape 2019.obj'
Progress: 100.00%

Calloc returns null: len=20296032 in GPUIndexBuf data, total 4249401996
Calloc returns null: len=20296032 in GPUIndexBuf data, total 4249401996
Calloc returns null: len=20296032 in GPUIndexBuf data, total 4249401996 (repeated thousands of times)
Calloc returns null: len=20296032 in GPUIndexBuf data, total 4289994060
Calloc returns null: len=20296032 in GPUIndexBuf data, total 4289994060
Calloc returns null: len=20296032 in GPUIndexBuf data, total 4289994060 (repeated thousands of times)
Calloc returns null: len=20296032 in GPUIndexBuf data, total 15322796 
Calloc returns null: len=20296032 in GPUIndexBuf data, total 15322796 
Calloc returns null: len=20296032 in GPUIndexBuf data, total 15322796 (repeated thousands of times)
Error   : EXCEPTION_ACCESS_VIOLATION
Address : 0x00007FF6875F9F28
Module  : D:\3D\Blender\blender-2.80.0-git.65168825e0b0-windows64\blender.exe```

Additionally, windows threw this in my face: {F7614837}
And my PC started doing some funny things for a few seconds(browser tabs and desktop icons disappearing) but recovered. This makes me think there is something memory related going on here afterall, which could help explain attempt #2.

**Attempt 4, Blender 2.7**
I actually can't seem to import this into 2.7 either. Although it's hanging at 33% instead of crashing and making my PC lose its mind. Tried multiple times, waited upwards of 5 mins.
```(  0.0000 sec |   0.0000 sec) Importing OBJ 'D:\\Met-PC\\Downloads\\Projeto Ape 2019.obj'...
  (  0.0010 sec |   0.0000 sec) Parsing OBJ file...
    ( 33.5557 sec |  33.5542 sec) Done, loading materials and images...
Progress:  33.33%```
Windows 10, v1607 GTX 1070 latest drivers 16GB RAM **Attempt 1**, importing to 2.80, 65168825e0b0: Huh. I can actually reproduce this. After a minute or two of waiting, blender just closes. **Attempt 2**, I started importing to 2.80 and 2.7 at the same time(to save time and test both), this time from command line: My computer has gone completely haywire, screens started flashing, desktop disappeared, and a few seconds later(not long enough for a reboot) I was greeted by my windows login screen, and all my apps are closed, and only my second monitor works. A PC reboot fixed this. **Attempt 3**, importing only to 2.80 again, with command line: Console output: ``` ( 0.0286 sec | 0.0286 sec) Importing OBJ 'D:\\Met-PC\\Downloads\\Projeto Ape 2019.obj'... ( 0.1330 sec | 0.1034 sec) Parsing OBJ file... ( 32.4876 sec | 32.3542 sec) Done, loading materials and images... Material not found MTL: 'D:\\Met-PC\\Downloads\\Projeto Ape 2019.mtl' ( 36.5409 sec | 36.4074 sec) Done, building geometries (verts:1114038 faces:1191721 materials: 8387 smoothgroups:0) ... ( 53.8666 sec | 53.7331 sec) Done. ( 53.8676 sec | 53.8380 sec) Finished importing: 'D:\\Met-PC\\Downloads\\Projeto Ape 2019.obj' Progress: 100.00% Calloc returns null: len=20296032 in GPUIndexBuf data, total 4249401996 Calloc returns null: len=20296032 in GPUIndexBuf data, total 4249401996 Calloc returns null: len=20296032 in GPUIndexBuf data, total 4249401996 (repeated thousands of times) Calloc returns null: len=20296032 in GPUIndexBuf data, total 4289994060 Calloc returns null: len=20296032 in GPUIndexBuf data, total 4289994060 Calloc returns null: len=20296032 in GPUIndexBuf data, total 4289994060 (repeated thousands of times) Calloc returns null: len=20296032 in GPUIndexBuf data, total 15322796 Calloc returns null: len=20296032 in GPUIndexBuf data, total 15322796 Calloc returns null: len=20296032 in GPUIndexBuf data, total 15322796 (repeated thousands of times) Error : EXCEPTION_ACCESS_VIOLATION Address : 0x00007FF6875F9F28 Module : D:\3D\Blender\blender-2.80.0-git.65168825e0b0-windows64\blender.exe``` Additionally, windows threw this in my face: {F7614837} And my PC started doing some funny things for a few seconds(browser tabs and desktop icons disappearing) but recovered. This makes me think there is something memory related going on here afterall, which could help explain attempt #2. **Attempt 4, Blender 2.7** I actually can't seem to import this into 2.7 either. Although it's hanging at 33% instead of crashing and making my PC lose its mind. Tried multiple times, waited upwards of 5 mins. ```( 0.0000 sec | 0.0000 sec) Importing OBJ 'D:\\Met-PC\\Downloads\\Projeto Ape 2019.obj'... ( 0.0010 sec | 0.0000 sec) Parsing OBJ file... ( 33.5557 sec | 33.5542 sec) Done, loading materials and images... Progress: 33.33%```

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Bastien Montagne self-assigned this 2019-07-17 15:03:21 +02:00

@Mets that’s lack of available RAM (or GPU RAM, code fails to allocate needed memory). Not much to be done here, besides general optimization of Blender. but that is not a bug afaiks.

In any case, no answer from OP since over a month, more than time to archive.

@Mets that’s lack of available RAM (or GPU RAM, code fails to allocate needed memory). Not much to be done here, besides general optimization of Blender. but that is not a bug afaiks. In any case, no answer from OP since over a month, more than time to archive.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#64740
No description provided.