Page MenuHome

On crash, Blender is not creating crash.txt file
Closed, ArchivedPublic

Description

System Information

Blender Version
Broken: (example: 2.78.5 bbce6ce249)
Worked: (unknown)

Short description of error

Upon a crash, blender seems to write to *filename*.crash.txt like it is supposed to from creator_signals.c
but the file doesn't seem to exist.

Exact steps for others to reproduce the error
On crash, search for crash.txt

This is the code where it is supposed to write the file.

FILE *fp;
	char header[512];
	wmWindowManager *wm = G.main->wm.first;

	char fname[FILE_MAX];

	if (!G.main->name[0]) {
		BLI_join_dirfile(fname, sizeof(fname), BKE_tempdir_base(), "blender.crash.txt");
	}
	else {
		BLI_join_dirfile(fname, sizeof(fname), BKE_tempdir_base(), BLI_path_basename(G.main->name));
		BLI_replace_extension(fname, sizeof(fname), ".crash.txt");
	}

Event Timeline

Brecht Van Lommel (brecht) lowered the priority of this task from 90 to 30.May 27 2017, 9:51 PM

It works for me, tested by running this in the Python console:

import os; import signal; os.kill(os.getpid(), signal.SIGSEGV)

How are you crashing Blender exactly? It may be that memory is corrupted to the point that even writing the crash log itself crashes, which we can't do much about.

I ran that in the python console, does crash, but still can't find the file.
Searching for crash.txt shows below:

Brecht Van Lommel (brecht) changed the task status from Unknown Status to Archived.May 27 2017, 10:37 PM
Brecht Van Lommel (brecht) claimed this task.

macOS probably doesn't search the /tmp folder, that doesn't mean the file does not exist. With Finder > Go > Go to Folder > type /tmp you'll find it.