Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python Executable crashing abruptly while reading mf4 file. #1119

Open
Hukumdeen opened this issue Dec 12, 2024 · 0 comments
Open

Python Executable crashing abruptly while reading mf4 file. #1119

Hukumdeen opened this issue Dec 12, 2024 · 0 comments

Comments

@Hukumdeen
Copy link

Python version

'python=3.9.7 (default, Sep 16 2021, 16:59:28) [MSC v.1916 64 bit (AMD64)]'
'os=Windows-10-10.0.22631-SP0'
'numpy=1.24.0'
'asammdf=8.0.1'

MDF version

4.10

Code snippet

I'll send the .ipynb, .py, .exe file and a sample mf4 file (measurement.mf4) to your email in the subject "Python Executable crashing abruptly while reading mf4 file."

Traceback

I do not have any error messages. The python executable file crashes abruptly during execution.

Description

The fastest way to debug is to have the original file. For data protection you can use the static
method scramble to scramble all text blocks, and send the scrambled file by e-mail.

I'm attempting to read data from mf4 file. Everything works fine while executing the script in JupyterLab.
When I convert the .py file of the script to .exe file, the .exe file is crashing abruptly.
The conversion of .py to .exe file is done with auto-py-to-exe 2.45.0.
The code output, when executed in JupyterLab, is pasted below. This the result I'm expecting the .exe file to print in the command window. But the executable is crashing abruptly without any error message. Requesting your support to resolve the same.

EXPECTED OUTPUT:
['measurement.mf4']
MDF_File_Version 4.10
Signal List ['Epm_nEng', 'CEngDsT_t', 'ora_w_msg']
Objects [<asammdf.mdf.MDF object at 0x000001E3CB09AC40>]
Parameter ((0, 1),)
Epm_nEng Successful
Parameter ((0, 2),)
CEngDsT_t Successful
Parameter ((0, 3),)
ora_w_msg Successful
Final Results {'Speed': [[0.0, 446.5, 0.0, 446.5, 0.0, 1455.0, 0.0, 1455.0, 0, 1, 0, 1, 9.41, 0.03, 9.41, 0.03, 75.5, 1399.5, 75.5, 1399.5]], 'SOC': [], 'temp': [[15.660000000000025, 95.36000000000001, 15.660000000000025, 95.36000000000001, 15.660000000000025, 95.56000000000006, 15.660000000000025, 95.56000000000006, 0, 1, 0, 1, 22.990000000000002, 24.39, 22.990000000000002, 24.39, 20.860000000000014, 95.36000000000001, 20.860000000000014, 95.36000000000001]], 'adap1': [], 'adap2': [[0.421875, 0.421875, 0.421875, 0.421875, 0.421875, 0.421875, 0.421875, 0.421875, 0, 0, 0, 0, 0.0, 0.0, 0.0, 0.0, 0.421875, 0.421875, 0.421875, 0.421875]], 'adap3': []}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant