Page MenuHome

Startup crash in versioning for some users after bc3139d79226 Eevee DOF Unification
Closed, ResolvedPublic


System Information
Operating system: Windows-10-10.0.17134 64 Bits
Graphics card: GeForce GTX 1060/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 419.17

Blender Version
Broken: version: 2.80 (sub 69), branch: master (modified), commit date: 2019-05-17 17:00, hash: rBbe5fd9c09f25
Worked: Reportedly builds prior to current buildbot.

Short description of error
Blender crashes on startup in versioning code.

Reported by two people in and I reproduced it here using the supplied .blend

User supplied startup.blend:

Exact steps for others to reproduce the error
Using this user-supplied startup.blend will result in a crash on startup. You can simply try opening the file as a normal .blend and it will also crash, so you don't need to put it in place as the actual startup file.

Abort location below. The scene data structure does not look valid and the cam_ob->type reference faults.

    /* Unify DOF settings (EEVEE part only) */
    if (!DNA_struct_elem_find(fd->filesdna, "Camera", "CameraDOFSettings", "dof")) {
      const int SCE_EEVEE_DOF_ENABLED = (1 << 7);
      LISTBASE_FOREACH (Scene *, scene, &bmain->scenes) {
        if (STREQ(scene->r.engine, RE_engine_id_BLENDER_EEVEE)) {
          if (scene->eevee.flag & SCE_EEVEE_DOF_ENABLED) {
            Object *cam_ob = scene->camera;
-->         if (cam_ob && cam_ob->type == OB_CAMERA) {
              Camera *cam = cam_ob->data;
              cam->dof.flag |= CAM_DOF_ENABLED;

Likely related to:

Event Timeline

Not sure if this matters, the submitted startup.blend camera properties use (I think)

vs the new properties:

The link to the startup.blend is dead? I have an idea what might be causing it though.

The link to the startup.blend is dead? I have an idea what might be causing it though.

Sorry, here it is:

For future reference, when you have files, you can just drag them into the text area and they will be uploaded and attached to the bug report, no need to host them on other sites.