note-seq icon indicating copy to clipboard operation
note-seq copied to clipboard

OOM crash on MIDI file where note timestamp invalid

Open anarkiwi opened this issue 4 years ago • 2 comments

crash.mid is attached.

josh@vek-x:~/tmp$ uname -a
Linux vek-x 5.4.0-59-generic #65-Ubuntu SMP Thu Dec 10 12:01:51 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
josh@vek-x:~/tmp$ python3
Python 3.8.5 (default, Jul 28 2020, 12:59:40) 
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> ^D
josh@vek-x:~/tmp$ midicsv dm-mid/crash/crash.mid 
0, 0, Header, 0, 1, 96
1, 0, Start_track
1, 0, Title_t, "\000"
1, 0, Time_signature, 4, 2, 36, 8
1, 0, Time_signature, 4, 2, 36, 8
1, 2147483647, Note_on_c, 0, 58, 100
1, 2147483647, Note_on_c, 0, 53, 100
1, 2147483647, Note_off_c, 0, 58, 64
1, 2147483647, Note_off_c, 0, 53, 64
1, 2147483647, End_track
0, 0, End_of_file
josh@vek-x:~/tmp$ pip3 show note-seq
Name: note-seq
Version: 0.0.2
Summary: Use machine learning to create art and music
Home-page: https://magenta.tensorflow.org/
Author: Google Inc.
Author-email: [email protected]
License: Apache 2
Location: /usr/local/lib/python3.8/dist-packages
Requires: librosa, attrs, bokeh, absl-py, numpy, scipy, pretty-midi, numba, protobuf, intervaltree, IPython, pydub, pandas
Required-by: magenta
josh@vek-x:~/tmp$ pip3 show magenta
Name: magenta
Version: 2.1.3
Summary: Use machine learning to create art and music
Home-page: https://magenta.tensorflow.org/
Author: Google Inc.
Author-email: [email protected]
License: Apache 2
Location: /usr/local/lib/python3.8/dist-packages
Requires: scikit-image, numba, tensorflow-probability, sk-video, matplotlib, mir-eval, dm-sonnet, absl-py, wheel, pygtrie, librosa, sox, dopamine-rl, pretty-midi, tensorflow, numpy, python-rtmidi, Pillow, scipy, tensor2tensor, tf-slim, six, mido, tensorflow-datasets, imageio, note-seq
Required-by: 
josh@vek-x:~/tmp$ convert_dir_to_note_sequences --input_dir=dm-mid/crash --output_file=magenta/dm.tfrecord 
2021-01-09 22:10:43.217451: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0: cannot open shared object file: No such file or directory
2021-01-09 22:10:43.217560: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
WARNING:tensorflow:From /usr/local/lib/python3.8/dist-packages/tensorflow/python/compat/v2_compat.py:96: disable_resource_variables (from tensorflow.python.ops.variable_scope) is deprecated and will be removed in a future version.
Instructions for updating:
non-resource variables are not supported in the long term
INFO:tensorflow:Converting files in 'dm-mid/crash/'.
I0109 22:10:46.468066 139996452947776 convert_dir_to_note_sequences.py:83] Converting files in 'dm-mid/crash/'.
INFO:tensorflow:0 files converted.
I0109 22:10:46.468371 139996452947776 convert_dir_to_note_sequences.py:88] 0 files converted.
Killed

anarkiwi avatar Jan 09 '21 09:01 anarkiwi

crash.zip

anarkiwi avatar Jan 09 '21 09:01 anarkiwi

Does the comment added in #30 address this issue?

cghawthorne avatar Jan 28 '21 20:01 cghawthorne