plasma-umass / scalene

Scalene: a high-performance, high-precision CPU, GPU, and memory profiler for Python with AI-powered optimization proposals
Apache License 2.0
12.16k stars 399 forks source link

Running scalene causes blue screen of death on Window 11 machine #422

Closed jpmorr closed 2 years ago

jpmorr commented 2 years ago

When I try to run scalene on a script, my computer immediately dies and I get a Blue Screen error from Windows. I'm running Windows 11. I've no idea what causes it.

When I try to import it into a script to focus on a specific function using from scalene import scalene_profiler it throws a error: NameError: name 'scalene_profiler' is not defined. I thought scalene should just run out of the box but I can't get it to do anything other than crash my computer.

Any help to debug this would be appreciated!

emeryberger commented 2 years ago

Insane! Are you using WSL2 or just vanilla Windows 11? What version of Python?

jpmorr commented 2 years ago

Vanilla windows 11, python 3.9.13, scalene 1.5.10.

I can try a good reference example (not my breaking script) on this machine that keeps crashing and a windows 10 or ubuntu machine if that helps?

jpmorr commented 2 years ago

I've just tried the example in the introductory video:

import numpy as np

def main():
    x = np.array(range(10**7))
    y = np.array(np.random.uniform(0, 100, size=(10**8)))

main()

Even that crashes my computer. I haven't tested on another machine, but I assume given that it won't run that code, then this is pretty machine specific.

emeryberger commented 2 years ago

I just ran the same versions of Python and Scalene on Windows 11 (admittedly, in a VM), and everything worked fine.

On the above code (python.exe -m scalene testme.py), works fine - brings up the expected web interface with the appropriate info, etc.

(I did notice that the CLI produced an odd output, which is surprising, but a lot less of a concern than crashing. Found the issue: The CLI output looks great with Windows Terminal; don't use Windows Console Host.)

Can you post the output of pip freeze?

jpmorr commented 2 years ago

pip freeze output:

aiohttp @ file:///D:/bld/aiohttp_1649013334059/work
aiosignal @ file:///home/conda/feedstock_root/build_artifacts/aiosignal_1636093929600/work
alabaster @ file:///home/ktietz/src/ci/alabaster_1611921544520/work
anaconda-client @ file:///C:/ci/anaconda-client_1635342725944/work
anaconda-navigator==2.2.0
anaconda-project @ file:///home/conda/feedstock_root/build_artifacts/anaconda-project_1632773999114/work
anyio @ file:///D:/bld/anyio_1652464116721/work/dist
appdirs @ file:///home/conda/feedstock_root/build_artifacts/appdirs_1603108395799/work
argh @ file:///home/conda/feedstock_root/build_artifacts/argh_1595627874344/work
argon2-cffi @ file:///home/conda/feedstock_root/build_artifacts/argon2-cffi_1640817743617/work
argon2-cffi-bindings @ file:///D:/bld/argon2-cffi-bindings_1649500515836/work
arrow @ file:///home/conda/feedstock_root/build_artifacts/arrow_1643313750486/work
asn1crypto @ file:///home/conda/feedstock_root/build_artifacts/asn1crypto_1647369152656/work
astroid @ file:///D:/bld/astroid_1652112112351/work
astropy @ file:///D:/bld/astropy_1653590270747/work
asttokens @ file:///home/conda/feedstock_root/build_artifacts/asttokens_1618968359944/work
async-generator @ file:///home/ktietz/src/ci/async_generator_1611927993394/work
async-timeout @ file:///home/conda/feedstock_root/build_artifacts/async-timeout_1640026696943/work
atomicwrites==1.4.0
attrs @ file:///home/conda/feedstock_root/build_artifacts/attrs_1640799537051/work
Automat==20.2.0
autopep8 @ file:///home/conda/feedstock_root/build_artifacts/autopep8_1635267974115/work
awkward @ file:///D:/bld/awkward_1649793987904/work
Babel @ file:///home/conda/feedstock_root/build_artifacts/babel_1651737115240/work
backcall @ file:///home/ktietz/src/ci/backcall_1611930011877/work
backports.functools-lru-cache @ file:///tmp/build/80754af9/backports.functools_lru_cache_1618170165463/work
backports.shutil-get-terminal-size @ file:///tmp/build/80754af9/backports.shutil_get_terminal_size_1608222128777/work
backports.tempfile @ file:///home/linux1/recipes/ci/backports.tempfile_1610991236607/work
backports.weakref @ file:///home/conda/feedstock_root/build_artifacts/backports.weakref_1645220785954/work
bcrypt @ file:///D:/bld/bcrypt_1651441745194/work
beautifulsoup4 @ file:///home/conda/feedstock_root/build_artifacts/beautifulsoup4_1649463573192/work
BeneDict==0.3.2
binaryornot @ file:///tmp/build/80754af9/binaryornot_1617751525010/work
bitarray @ file:///D:/bld/bitarray_1652238744713/work
bkcharts==0.2
black @ file:///home/conda/feedstock_root/build_artifacts/black-recipe_1648499330704/work
bleach @ file:///home/conda/feedstock_root/build_artifacts/bleach_1649361991009/work
bokeh @ file:///D:/bld/bokeh_1652969902726/work
boto==2.49.0
boto3 @ file:///home/conda/feedstock_root/build_artifacts/boto3_1655540506465/work
botocore @ file:///home/conda/feedstock_root/build_artifacts/botocore_1655517528279/work
Bottleneck @ file:///D:/bld/bottleneck_1649629816025/work
brotlipy @ file:///D:/bld/brotlipy_1648854327487/work
cached-property @ file:///home/conda/feedstock_root/build_artifacts/cached_property_1615209429212/work
cachetools @ file:///home/conda/feedstock_root/build_artifacts/cachetools_1640686991047/work
certifi==2022.6.15
cffi @ file:///D:/bld/cffi_1636046278333/work
chardet @ file:///C:/ci/chardet_1607706937985/work
charset-normalizer @ file:///home/conda/feedstock_root/build_artifacts/charset-normalizer_1644853463426/work
click @ file:///D:/bld/click_1651215430313/work
cloudpickle @ file:///home/conda/feedstock_root/build_artifacts/cloudpickle_1653061851209/work
clyent==1.2.2
colorama @ file:///tmp/build/80754af9/colorama_1607707115595/work
colorcet @ file:///home/conda/feedstock_root/build_artifacts/colorcet_1638280441091/work
commonmark==0.9.1
comtypes==1.1.11
conda==4.12.0
conda-build==3.21.9
conda-content-trust @ file:///home/conda/feedstock_root/build_artifacts/conda-content-trust_1621370699668/work
conda-libmamba-solver @ file:///home/conda/feedstock_root/build_artifacts/conda-libmamba-solver_1648115178866/work
conda-pack @ file:///home/conda/feedstock_root/build_artifacts/conda-pack_1642622318035/work
conda-package-handling @ file:///D:/bld/conda-package-handling_1649385222928/work
conda-repo-cli @ file:///tmp/build/80754af9/conda-repo-cli_1620168426516/work
conda-token @ file:///tmp/build/80754af9/conda-token_1620076980546/work
conda-verify==3.4.2
constantly==15.1.0
contextlib2 @ file:///home/conda/feedstock_root/build_artifacts/contextlib2_1624848568296/work
cookiecutter @ file:///home/conda/feedstock_root/build_artifacts/cookiecutter_1643669229020/work
cryptography @ file:///D:/bld/cryptography_1652967266737/work
cssselect==1.1.0
cycler @ file:///home/conda/feedstock_root/build_artifacts/cycler_1635519461629/work
Cython @ file:///D:/bld/cython_1652809429232/work
cytoolz==0.11.2
daal4py==2021.5.0
dask @ file:///home/conda/feedstock_root/build_artifacts/dask-core_1653603260862/work
datashader @ file:///home/conda/feedstock_root/build_artifacts/datashader_1651003146494/work
datashape==0.5.4
debugpy @ file:///D:/bld/debugpy_1649586515543/work
decorator @ file:///home/conda/feedstock_root/build_artifacts/decorator_1641555617451/work
defusedxml @ file:///tmp/build/80754af9/defusedxml_1615228127516/work
DEMpy @ file:///C:/Users/jpmor/PycharmProjects/DEMpy/dist/DEMpy-0.4.3.tar.gz
Deprecated @ file:///home/conda/feedstock_root/build_artifacts/deprecated_1632758190537/work
diff-match-patch @ file:///Users/ktietz/demo/mc3/conda-bld/diff-match-patch_1630511840874/work
dill @ file:///home/conda/feedstock_root/build_artifacts/dill_1653058582944/work
distributed @ file:///home/conda/feedstock_root/build_artifacts/distributed_1653607935301/work
diversipy==0.8
docutils @ file:///D:/bld/docutils_1648737828698/work
doepy==0.0.1
edempy @ file:///C:/Program%20Files/Altair/2021.2/EDEM2021.2/EDEMpy/edempy-0.1.5.tar.gz
EDEMtk @ file:///C:/Users/jpmor/PycharmProjects/EDEMtk/dist/EDEMtk-0.6.5.tar.gz
entrypoints @ file:///home/conda/feedstock_root/build_artifacts/entrypoints_1643888246732/work
esbonio==0.13.0
et-xmlfile==1.1.0
executing @ file:///home/conda/feedstock_root/build_artifacts/executing_1646044401614/work
fastcache @ file:///D:/bld/fastcache_1650118035493/work
fastjsonschema @ file:///home/conda/feedstock_root/build_artifacts/python-fastjsonschema_1641751198313/work/dist
filelock @ file:///home/conda/feedstock_root/build_artifacts/filelock_1652442797291/work
flake8 @ file:///home/conda/feedstock_root/build_artifacts/flake8_1646781084538/work
Flask @ file:///home/conda/feedstock_root/build_artifacts/flask_1651670959703/work
flit_core @ file:///home/conda/feedstock_root/build_artifacts/flit-core_1645629044586/work/source/flit_core
fonttools @ file:///D:/bld/fonttools_1651018206941/work
frozenlist @ file:///D:/bld/frozenlist_1648771863087/work
fsspec @ file:///home/conda/feedstock_root/build_artifacts/fsspec_1653010523205/work
future @ file:///D:/bld/future_1649010333337/work
gensim @ file:///D:/bld/gensim_1653483320281/work
gevent @ file:///D:/bld/gevent_1649327465609/work
glob2 @ file:///home/linux1/recipes/ci/glob2_1610991677669/work
google-api-core @ file:///home/conda/feedstock_root/build_artifacts/google-api-core-split_1653881570487/work
google-auth @ file:///home/conda/feedstock_root/build_artifacts/google-auth_1655273470589/work
google-cloud-core @ file:///home/conda/feedstock_root/build_artifacts/google-cloud-core_1654835241407/work
google-cloud-storage @ file:///home/conda/feedstock_root/build_artifacts/google-cloud-storage_1654734242100/work
google-crc32c @ file:///D:/bld/google-crc32c_1651517495918/work
google-resumable-media @ file:///home/conda/feedstock_root/build_artifacts/google-resumable-media_1654213463347/work
googleapis-common-protos @ file:///D:/bld/googleapis-common-protos-feedstock_1653627617137/work
greenlet @ file:///D:/bld/greenlet_1648882589361/work
grpcio @ file:///D:/bld/grpcio_1653139066827/work
h5grove==0.0.14
h5py @ file:///D:/bld/h5py_1637964127763/work
HeapDict @ file:///Users/ktietz/demo/mc3/conda-bld/heapdict_1630598515714/work
holoviews @ file:///home/conda/feedstock_root/build_artifacts/holoviews_1652084638358/work
html5lib @ file:///Users/ktietz/demo/mc3/conda-bld/html5lib_1629144453894/work
hvplot @ file:///home/conda/feedstock_root/build_artifacts/hvplot_1652112827927/work
hyperlink @ file:///home/conda/feedstock_root/build_artifacts/hyperlink_1610092164190/work
icecream @ file:///home/conda/feedstock_root/build_artifacts/icecream_1644999580818/work
idna @ file:///home/conda/feedstock_root/build_artifacts/idna_1642433548627/work
imagecodecs @ file:///D:/bld/imagecodecs_1652926324082/work
imageio @ file:///home/conda/feedstock_root/build_artifacts/imageio_1652789504106/work
imagesize @ file:///home/conda/feedstock_root/build_artifacts/imagesize_1636492669893/work
importlib-metadata @ file:///D:/bld/importlib-metadata_1653252997230/work
importlib-resources @ file:///home/conda/feedstock_root/build_artifacts/importlib_resources_1652715758048/work
incremental @ file:///home/conda/feedstock_root/build_artifacts/incremental_1621907170877/work
inflection==0.5.1
iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work
intake @ file:///home/conda/feedstock_root/build_artifacts/intake_1641785762997/work
intervaltree @ file:///Users/ktietz/demo/mc3/conda-bld/intervaltree_1630511889664/work
ipydatawidgets @ file:///home/conda/feedstock_root/build_artifacts/ipydatawidgets_1653296873759/work
ipykernel @ file:///D:/bld/ipykernel_1649684478442/work/dist/ipykernel-6.13.0-py3-none-any.whl
ipython @ file:///D:/bld/ipython_1651240751817/work
ipython-genutils @ file:///tmp/build/80754af9/ipython_genutils_1606773439826/work
ipywidgets @ file:///home/conda/feedstock_root/build_artifacts/ipywidgets_1647456365981/work
isort @ file:///home/conda/feedstock_root/build_artifacts/isort_1636447814597/work
itemadapter @ file:///home/conda/feedstock_root/build_artifacts/itemadapter_1652457180940/work
itemloaders @ file:///home/conda/feedstock_root/build_artifacts/itemloaders_1605273565796/work
itsdangerous @ file:///home/conda/feedstock_root/build_artifacts/itsdangerous_1648147185463/work
jdcal @ file:///Users/ktietz/demo/mc3/conda-bld/jdcal_1630584345063/work
jedi @ file:///D:/bld/jedi_1649067332918/work
jellyfish @ file:///D:/bld/jellyfish_1649404917811/work
Jinja2 @ file:///home/conda/feedstock_root/build_artifacts/jinja2_1651774399431/work
jinja2-time @ file:///home/conda/feedstock_root/build_artifacts/jinja2-time_1646750632133/work
jmespath @ file:///home/conda/feedstock_root/build_artifacts/jmespath_1655568249366/work
joblib @ file:///tmp/build/80754af9/joblib_1635411271373/work
json5 @ file:///tmp/build/80754af9/json5_1624432770122/work
jsonschema @ file:///home/conda/feedstock_root/build_artifacts/jsonschema-meta_1651798819471/work
jupyter @ file:///D:/bld/jupyter_1637233338215/work
jupyter-client @ file:///home/conda/feedstock_root/build_artifacts/jupyter_client_1652061014773/work
jupyter-console @ file:///home/conda/feedstock_root/build_artifacts/jupyter_console_1646669715337/work
jupyter-core @ file:///D:/bld/jupyter_core_1652365569005/work
jupyter-server @ file:///home/conda/feedstock_root/build_artifacts/jupyter_server_1651092495905/work
jupyterlab @ file:///home/conda/feedstock_root/build_artifacts/jupyterlab_1652407772753/work
jupyterlab-hdf==1.2.0
jupyterlab-pygments @ file:///home/conda/feedstock_root/build_artifacts/jupyterlab_pygments_1649936611996/work
jupyterlab-server @ file:///home/conda/feedstock_root/build_artifacts/jupyterlab_server_1652878309867/work
jupyterlab-widgets @ file:///home/conda/feedstock_root/build_artifacts/jupyterlab_widgets_1647446862951/work
keyring @ file:///D:/bld/keyring_1653312769042/work
kiwisolver @ file:///D:/bld/kiwisolver_1648854553193/work
lazy-object-proxy @ file:///D:/bld/lazy-object-proxy_1649033324076/work
libarchive-c @ file:///D:/bld/python-libarchive-c_1649436172246/work
libmambapy @ file:///D:/bld/mamba-split_1658856160353/work/libmambapy
line-profiler @ file:///D:/bld/line_profiler_1647945098206/work
llvmlite==0.36.0
locket @ file:///home/conda/feedstock_root/build_artifacts/locket_1650660393415/work
loguru @ file:///D:/bld/loguru_1649442981921/work
lsq-ellipse==2.2.1
lxml @ file:///D:/bld/lxml_1649697874011/work
lz4 @ file:///D:/bld/lz4_1652795749933/work
mamba @ file:///D:/bld/mamba-split_1658856160353/work/mamba
Markdown @ file:///home/conda/feedstock_root/build_artifacts/markdown_1651821407140/work
MarkupSafe @ file:///D:/bld/markupsafe_1648737757460/work
matplotlib @ file:///D:/bld/matplotlib-suite_1651609646819/work
matplotlib-inline @ file:///home/conda/feedstock_root/build_artifacts/matplotlib-inline_1631080358261/work
matplotx @ file:///home/conda/feedstock_root/build_artifacts/matplotx_1652831270549/work
mccabe==0.6.1
menuinst @ file:///D:/bld/menuinst_1636828869879/work
mistune @ file:///D:/bld/mistune_1635844891406/work
mkl-fft==1.3.1
mkl-random @ file:///C:/ci/mkl_random_1626186184308/work
mkl-service==2.4.0
mock @ file:///D:/bld/mock_1648992969698/work
more-itertools @ file:///home/conda/feedstock_root/build_artifacts/more-itertools_1652515549581/work
mpmath==1.2.1
msgpack @ file:///D:/bld/msgpack-python_1648746179953/work
multidict @ file:///D:/bld/multidict_1648882567277/work
multipledispatch @ file:///C:/ci/multipledispatch_1607574329826/work
munkres==1.1.4
mypy-extensions @ file:///D:/bld/mypy_extensions_1649013558628/work
navigator-updater==0.2.1
nbclassic @ file:///home/conda/feedstock_root/build_artifacts/nbclassic_1647450696711/work
nbclient @ file:///home/conda/feedstock_root/build_artifacts/nbclient_1652155694429/work
nbconvert @ file:///home/conda/feedstock_root/build_artifacts/nbconvert-meta_1649676641343/work
nbformat @ file:///home/conda/feedstock_root/build_artifacts/nbformat_1651607001005/work
nest-asyncio @ file:///home/conda/feedstock_root/build_artifacts/nest-asyncio_1648959695634/work
networkx @ file:///home/conda/feedstock_root/build_artifacts/networkx_1653162972907/work
nltk @ file:///home/conda/feedstock_root/build_artifacts/nltk_1640748215808/work
nose @ file:///tmp/build/80754af9/nose_1606773131901/work
notebook @ file:///home/conda/feedstock_root/build_artifacts/notebook_1650363291341/work
notebook-shim @ file:///home/conda/feedstock_root/build_artifacts/notebook-shim_1646330736330/work
numba @ file:///D:/bld/numba_1615723367209/work
numexpr @ file:///D:/bld/numexpr_1637086570522/work
numpy @ file:///C:/ci/numpy_and_numpy_base_1652784039997/work
numpydoc @ file:///home/conda/feedstock_root/build_artifacts/numpydoc_1648619272706/work
olefile @ file:///home/conda/feedstock_root/build_artifacts/olefile_1602866521163/work
openpyxl @ file:///tmp/build/80754af9/openpyxl_1632777717936/work
orjson==3.7.12
packaging @ file:///home/conda/feedstock_root/build_artifacts/packaging_1637239678211/work
pandas @ file:///D:/bld/pandas_1653497239685/work
pandocfilters @ file:///home/conda/feedstock_root/build_artifacts/pandocfilters_1631603243851/work
panel @ file:///home/conda/feedstock_root/build_artifacts/panel_1653429099596/work
param @ file:///home/conda/feedstock_root/build_artifacts/param_1648753599418/work
paramiko @ file:///home/conda/feedstock_root/build_artifacts/paramiko_1652792654356/work
parsel @ file:///home/conda/feedstock_root/build_artifacts/parsel_1591122878042/work
parso @ file:///home/conda/feedstock_root/build_artifacts/parso_1638334955874/work
partd @ file:///tmp/build/80754af9/partd_1618000087440/work
path @ file:///D:/bld/path_1649244698051/work
pathlib2 @ file:///D:/bld/pathlib2_1649684229157/work
pathspec @ file:///home/conda/feedstock_root/build_artifacts/pathspec_1626613672358/work
patsy==0.5.2
pep8==1.7.1
pepEDEMToolbox @ file:///C:/Users/jpmor/PycharmProjects/pepedemtoolbox/dist/pepEDEMToolbox-1.0.0.tar.gz
perfplot @ file:///home/conda/feedstock_root/build_artifacts/perfplot_1646351813171/work
pexpect @ file:///tmp/build/80754af9/pexpect_1605563209008/work
pickleshare @ file:///tmp/build/80754af9/pickleshare_1606932040724/work
Pillow @ file:///D:/bld/pillow_1655298656960/work
pkginfo @ file:///home/conda/feedstock_root/build_artifacts/pkginfo_1638813452194/work
platformdirs @ file:///home/conda/feedstock_root/build_artifacts/platformdirs_1645298319244/work
plotly @ file:///home/conda/feedstock_root/build_artifacts/plotly_1654895488764/work
pluggy @ file:///D:/bld/pluggy_1648772781226/work
ply==3.11
poyo @ file:///tmp/build/80754af9/poyo_1617751526755/work
prometheus-client @ file:///home/conda/feedstock_root/build_artifacts/prometheus_client_1649447152425/work
prompt-toolkit @ file:///home/conda/feedstock_root/build_artifacts/prompt-toolkit_1649130487073/work
Protego @ file:///home/conda/feedstock_root/build_artifacts/protego_1647348122707/work
protobuf==3.19.4
psutil @ file:///D:/bld/psutil_1653089392436/work
ptyprocess @ file:///tmp/build/80754af9/ptyprocess_1609355006118/work/dist/ptyprocess-0.7.0-py2.py3-none-any.whl
pure-eval @ file:///home/conda/feedstock_root/build_artifacts/pure_eval_1642875951954/work
py @ file:///home/conda/feedstock_root/build_artifacts/py_1636301881863/work
pyarrow==8.0.0
pyasn1==0.4.8
pyasn1-modules==0.2.7
pybase64 @ file:///D:/bld/pybase64_1649932828370/work
pycodestyle @ file:///home/conda/feedstock_root/build_artifacts/pycodestyle_1633982426610/work
pycosat @ file:///D:/bld/pycosat_1649384983580/work
pycparser @ file:///home/conda/feedstock_root/build_artifacts/pycparser_1636257122734/work
pyct==0.4.6
pycurl==7.45.1
pydantic @ file:///D:/bld/pydantic_1653020951067/work
PyDispatcher==2.0.5
pydocstyle @ file:///tmp/build/80754af9/pydocstyle_1621600989141/work
pyDOE==0.3.8
pyerfa @ file:///D:/bld/pyerfa_1649586279666/work
pyevtk @ file:///home/conda/feedstock_root/build_artifacts/pyevtk_1649419582605/work
pyflakes @ file:///home/conda/feedstock_root/build_artifacts/pyflakes_1633634815271/work
pygls==0.11.3
Pygments @ file:///home/conda/feedstock_root/build_artifacts/pygments_1650904496387/work
PyHamcrest @ file:///home/conda/feedstock_root/build_artifacts/pyhamcrest_1639391367583/work
PyJWT @ file:///home/conda/feedstock_root/build_artifacts/pyjwt_1652398519695/work
pylint @ file:///home/conda/feedstock_root/build_artifacts/pylint_1652792421559/work
pyls-spyder==0.4.0
PyNaCl @ file:///D:/bld/pynacl_1649520147560/work
pynvml==11.4.1
pyodbc @ file:///D:/bld/pyodbc_1636085640165/work
pyOpenSSL @ file:///home/conda/feedstock_root/build_artifacts/pyopenssl_1643496850550/work
pyparsing @ file:///home/conda/feedstock_root/build_artifacts/pyparsing_1652235407899/work
PyQt5==5.12.3
PyQt5_sip==4.19.18
PyQtChart==5.12
PyQtWebEngine==5.12.1
pyreadline @ file:///D:/bld/pyreadline_1636288672905/work
pyrsistent @ file:///D:/bld/pyrsistent_1649013531721/work
PySimpleGUI @ file:///home/conda/feedstock_root/build_artifacts/pysimplegui_1652325711383/work
PySocks @ file:///D:/bld/pysocks_1648857426942/work
pyspellchecker==0.6.3
pytest==7.1.2
python-dateutil @ file:///tmp/build/80754af9/python-dateutil_1626374649649/work
python-lsp-black @ file:///home/conda/feedstock_root/build_artifacts/python-lsp-black_1649795569828/work
python-lsp-jsonrpc==1.0.0
python-lsp-server @ file:///home/conda/feedstock_root/build_artifacts/python-lsp-server_1648744803503/work
python-slugify @ file:///home/conda/feedstock_root/build_artifacts/python-slugify_1651150815876/work
python-snappy @ file:///D:/bld/python-snappy_1649520101109/work
pythreejs @ file:///home/conda/feedstock_root/build_artifacts/pythreejs_1614691447028/work
pytz @ file:///home/conda/feedstock_root/build_artifacts/pytz_1647961439546/work
pyu2f @ file:///home/conda/feedstock_root/build_artifacts/pyu2f_1604248910016/work
pyvista @ file:///home/conda/feedstock_root/build_artifacts/pyvista_1650056792281/work
pyvistaqt @ file:///home/conda/feedstock_root/build_artifacts/pyvistaqt_1649300839527/work
pyviz-comms @ file:///home/conda/feedstock_root/build_artifacts/pyviz_comms_1648629824948/work
PyWavelets @ file:///D:/bld/pywavelets_1649616575120/work
pywin32==303
pywin32-ctypes @ file:///D:/bld/pywin32-ctypes_1648607901171/work
pywinpty @ file:///D:/bld/pywinpty_1649088391028/work/target/wheels/pywinpty-2.0.5-cp39-none-win_amd64.whl
PyYAML @ file:///D:/bld/pyyaml_1648757346451/work
pyzmq @ file:///D:/bld/pyzmq_1652965614630/work
QDarkStyle @ file:///home/conda/feedstock_root/build_artifacts/qdarkstyle_1638323533455/work
qstylizer @ file:///home/conda/feedstock_root/build_artifacts/qstylizer_1627619480283/work/dist/qstylizer-0.2.1-py2.py3-none-any.whl
QtAwesome @ file:///home/conda/feedstock_root/build_artifacts/qtawesome_1638212842953/work
qtconsole @ file:///home/conda/feedstock_root/build_artifacts/qtconsole-base_1648505151387/work
QtPy @ file:///home/conda/feedstock_root/build_artifacts/qtpy_1651524593465/work
queuelib @ file:///home/conda/feedstock_root/build_artifacts/queuelib_1629994290383/work
regex @ file:///D:/bld/regex_1650840093386/work
requests @ file:///home/conda/feedstock_root/build_artifacts/requests_1641580202195/work
requests-file @ file:///home/conda/feedstock_root/build_artifacts/requests-file_1591227832914/work
rich @ file:///home/conda/feedstock_root/build_artifacts/rich_1653400695283/work
rope @ file:///home/conda/feedstock_root/build_artifacts/rope_1653489009999/work
rsa @ file:///home/conda/feedstock_root/build_artifacts/rsa_1637781155505/work
Rtree @ file:///D:/bld/rtree_1649367810340/work
ruamel-yaml-conda @ file:///C:/ci/ruamel_yaml_1616016898638/work
s3transfer @ file:///home/conda/feedstock_root/build_artifacts/s3transfer_1654039987929/work
scalene==1.5.10
scikit-guess==0.0.1a0
scikit-image @ file:///D:/bld/scikit-image_1645196926663/work
scikit-learn @ file:///D:/bld/scikit-learn_1652976858669/work
scikit-learn-intelex==2021.20220207.124119
scipy @ file:///C:/bld/scipy_1653074066186/work
scooby @ file:///home/conda/feedstock_root/build_artifacts/scooby_1646247900691/work
Scrapy @ file:///C:/ci/scrapy_1646837986255/work
seaborn @ file:///tmp/build/80754af9/seaborn_1629307859561/work
Send2Trash @ file:///tmp/build/80754af9/send2trash_1632406701022/work
service-identity==18.1.0
simplegeneric==0.8.1
singledispatch @ file:///tmp/build/80754af9/singledispatch_1629321204894/work
sip @ file:///D:/bld/sip_1646101362141/work
six @ file:///tmp/build/80754af9/six_1623709665295/work
smart-open @ file:///home/conda/feedstock_root/build_artifacts/smart_open_1650793462701/work
snakeviz==2.1.1
sniffio @ file:///D:/bld/sniffio_1648819365674/work
snowballstemmer @ file:///home/conda/feedstock_root/build_artifacts/snowballstemmer_1637143057757/work
sortedcollections @ file:///tmp/build/80754af9/sortedcollections_1611172717284/work
sortedcontainers @ file:///tmp/build/80754af9/sortedcontainers_1623949099177/work
soupsieve @ file:///home/conda/feedstock_root/build_artifacts/soupsieve_1638550740809/work
Sphinx @ file:///home/conda/feedstock_root/build_artifacts/sphinx_1653904692612/work
sphinxcontrib-applehelp @ file:///home/ktietz/src/ci/sphinxcontrib-applehelp_1611920841464/work
sphinxcontrib-devhelp @ file:///home/ktietz/src/ci/sphinxcontrib-devhelp_1611920923094/work
sphinxcontrib-htmlhelp @ file:///tmp/build/80754af9/sphinxcontrib-htmlhelp_1623945626792/work
sphinxcontrib-jsmath @ file:///home/ktietz/src/ci/sphinxcontrib-jsmath_1611920942228/work
sphinxcontrib-qthelp @ file:///home/ktietz/src/ci/sphinxcontrib-qthelp_1611921055322/work
sphinxcontrib-serializinghtml @ file:///home/conda/feedstock_root/build_artifacts/sphinxcontrib-serializinghtml_1649380998999/work
sphinxcontrib-websupport @ file:///home/conda/feedstock_root/build_artifacts/sphinxcontrib-websupport_1636966052463/workspyder @ file:///D:/bld/spyder_1653428539795/work
spyder-kernels @ file:///D:/bld/spyder-kernels_1653181281239/work
SQLAlchemy @ file:///D:/bld/sqlalchemy_1651018320751/work
stack-data @ file:///home/conda/feedstock_root/build_artifacts/stack_data_1655315839047/work
statsmodels @ file:///D:/bld/statsmodels_1644535868573/work
sympy @ file:///D:/bld/sympy_1647802757727/work
tables==3.7.0
tabulate @ file:///home/conda/feedstock_root/build_artifacts/tabulate_1614001031686/work
TBB==0.2
tblib @ file:///Users/ktietz/demo/mc3/conda-bld/tblib_1629402031467/work
tenacity @ file:///home/conda/feedstock_root/build_artifacts/tenacity_1626090218611/work
terminado @ file:///D:/bld/terminado_1652790835377/work
testpath @ file:///home/conda/feedstock_root/build_artifacts/testpath_1645693042223/work
text-unidecode @ file:///Users/ktietz/demo/mc3/conda-bld/text-unidecode_1629401354553/work
textdistance @ file:///home/conda/feedstock_root/build_artifacts/textdistance_1635354148551/work
threadpoolctl @ file:///home/conda/feedstock_root/build_artifacts/threadpoolctl_1643647933166/work
three-merge @ file:///tmp/build/80754af9/three-merge_1607553261110/work
tifffile @ file:///home/conda/feedstock_root/build_artifacts/tifffile_1651666912743/work
tinycss @ file:///tmp/build/80754af9/tinycss_1617713798712/work
tinycss2 @ file:///home/conda/feedstock_root/build_artifacts/tinycss2_1637612658783/work
tldextract @ file:///home/conda/feedstock_root/build_artifacts/tldextract_1651716465325/work
toml @ file:///tmp/build/80754af9/toml_1616166611790/work
tomli @ file:///home/conda/feedstock_root/build_artifacts/tomli_1644342247877/work
toolz @ file:///home/conda/feedstock_root/build_artifacts/toolz_1636177962100/work
tornado @ file:///D:/bld/tornado_1648827405403/work
tqdm @ file:///home/conda/feedstock_root/build_artifacts/tqdm_1649051611147/work
traitlets @ file:///home/conda/feedstock_root/build_artifacts/traitlets_1652735690480/work
traittypes @ file:///home/conda/feedstock_root/build_artifacts/traittypes_1600843364635/work
Twisted @ file:///D:/bld/twisted_1649772107166/work
twisted-iocpsupport @ file:///D:/bld/twisted-iocpsupport_1649417949447/work
typed-ast @ file:///D:/bld/typed-ast_1653226311309/work
typeguard==2.13.3
typing_extensions @ file:///home/conda/feedstock_root/build_artifacts/typing_extensions_1650370875435/work
ujson @ file:///D:/bld/ujson_1653057628323/work
unicodecsv==0.14.1
unicodedata2 @ file:///D:/bld/unicodedata2_1649112114189/work
Unidecode @ file:///home/conda/feedstock_root/build_artifacts/unidecode_1646918762405/work
urllib3 @ file:///home/conda/feedstock_root/build_artifacts/urllib3_1647489083693/work
vedo @ file:///home/conda/feedstock_root/build_artifacts/vedo_1652092068857/work
vtk===-PKG-VERSION
w3lib @ file:///home/conda/feedstock_root/build_artifacts/w3lib_1591173357158/work
watchdog @ file:///D:/bld/watchdog_1652635556577/work
wcwidth @ file:///home/conda/feedstock_root/build_artifacts/wcwidth_1600965781394/work
webencodings==0.5.1
websocket-client @ file:///home/conda/feedstock_root/build_artifacts/websocket-client_1648562593984/work
Werkzeug @ file:///home/conda/feedstock_root/build_artifacts/werkzeug_1651670883478/work
whichcraft @ file:///tmp/build/80754af9/whichcraft_1617751293875/work
widgetsnbextension @ file:///D:/bld/widgetsnbextension_1647447150450/work
win-inet-pton @ file:///D:/bld/win_inet_pton_1648771910527/work
win-unicode-console @ file:///D:/bld/win_unicode_console_1636286541809/work
win32-setctime @ file:///home/conda/feedstock_root/build_artifacts/win32_setctime_1642883564726/work
wincertstore==0.2
wrapt @ file:///D:/bld/wrapt_1651495581086/work
xarray @ file:///home/conda/feedstock_root/build_artifacts/xarray_1646254587173/work
xlrd @ file:///home/conda/feedstock_root/build_artifacts/xlrd_1610224409810/work
XlsxWriter @ file:///home/conda/feedstock_root/build_artifacts/xlsxwriter_1645975313810/work
xlwings @ file:///D:/bld/xlwings_1653376770298/work
xlwt==1.3.0
xmltodict @ file:///home/conda/feedstock_root/build_artifacts/xmltodict_1652020822199/work
yapf @ file:///home/conda/feedstock_root/build_artifacts/yapf_1641487982943/work
yarl @ file:///D:/bld/yarl_1648966682693/work
zict @ file:///home/conda/feedstock_root/build_artifacts/zict_1651156074437/work
zipp @ file:///home/conda/feedstock_root/build_artifacts/zipp_1649012893348/work
zope.event==4.5.0
zope.interface @ file:///D:/bld/zope.interface_1649175877560/work

Could it be hardware related? Is it trying to run on GPU? I've tried the --cpu-only but that still causes a crash. It's very weird.

emeryberger commented 2 years ago

Sounds like a possible hardware issue, and yes, it is trying to use the GPU. On Windows, --cpu-only is the only option; it really means "don't do memory / copy volume profiling", which we do not yet support on Windows. It still will try to do GPU profiling if it detects an NVIDIA GPU. There's currently no way to disable GPU profiling at the command line.

(I am thinking of changing the options to --cpu, --gpu, --memory, and --all (with the latter as the default), while deprecating the other instructions.)

However, if you are willing to get into the source code, you could clone the repository, manually disable GPU profiling by inserting a return in the constructor in scalene/scalene_gpu.py, and install from the local directory (python3 -m pip install -e .).

jpmorr commented 2 years ago

OK, if GPU details are useful let me know and I can post them. The different options sound like a great idea!

If I get a chance, I can try the workaround you suggest, but it's likely to be easier for me to find a different computer/workstation to test on!

emeryberger commented 2 years ago

Sure, please try this on another computer if you can!

jpmorr commented 2 years ago

I've tested scalene on another windows laptop without an Nvidia GPU and it seems to run fine (Although the web output neither matches that shown in the video or the newer demo example for some reason), so this points to a hardware issue with my main system. Here's the spec for reference:

OS Name:                   Microsoft Windows 11 Pro
OS Version:                10.0.22000 N/A Build 22000
OS Manufacturer:           Microsoft Corporation
OS Configuration:          Standalone Workstation
OS Build Type:             Multiprocessor Free

Processor              Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz, 2304 Mhz, 8 Core(s), 16 Logical Processor(s)

Name                       NVIDIA Quadro RTX 5000
Driver Version             30.0.15.1179
Name                       Intel(R) UHD Graphics 630
Driver Version             31.0.101.2111

BIOS Version:              HP R92 Ver. 01.20.00, 23/03/2022

Total Physical Memory:     32,539 MB
Virtual Memory: Max Size:  54,043 MB

Hyper-V Requirements:      A hypervisor has been detected. Features required for Hyper-V will not be displayed.
jpmorr commented 2 years ago

So I thought the driver version looked a bit old, but it's actually windows reporting 30.0.15.1179 instead of 511.79 as Nvidia reports it, so not actually too bad. Anyway, updating the Nvidia driver to 516.94 has resolved the problem. No more instant death.