Get Python stack trace while using cx_freeze -


i have data acquisition program written in python distribute collaboration executable (using cx_freeze), don't want bother them installing python , installing software dependencies. program has been working year now. recently, program started crash (crash, not give scripting error, i.e., python virtual machine crashing). know library causing problem. problem happening randomly, it's difficult systematically pinpoint cause.

i learned faulthandler, , use cx_freeze, because can't sure problem happening due cx_freeze or due other library.

the question: how can produce cx_freeze executable use faulthandler?

what tried:

my current cx_freeze setup script following:

import sys cx_freeze import setup, executable gui.meta import *  target = executable("main.py",                     #base = "win32gui",                     icon = "gui\\icon.ico",                     compress=true,                     targetname="prog.exe")  setup(     name = "my software",     version = software_version,     description = "",     executables = [target]) 

i tried replacing executable part main.py main.py -q -x faulthandler, didn't work. importing faulthandler in cx_freeze setup file import faulthandler or from faulthandler import * didn't help.

please advise.

additional info: dependencies i'm using (in case may know possible cause of problem): pyside, sympy, numpy, h5py, pyserial, matplotlib

i learned use procdump. can downloaded here. it's simple program can log stack trace. can use with:

c:\>procdump -ma -i c:\dumps 

and dump stack trace of program crashes folder.


Comments

Popular posts from this blog

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -