DEMLab icon indicating copy to clipboard operation
DEMLab copied to clipboard

Error during the run

Open mhAllouche opened this issue 10 months ago • 6 comments

Hi,

I ran the main.m file after putting it in the same folder as one of the examples (the billard one). Calculations seem to have ended correctly, and the analysis finished. It started creating the animation, but finished with the following error messages. I'm using Matlab 2021b.

Regards

100.0%: time 10.000, step 200001

Analysis finished: 10-Apr-2025 22:46:13 Total time:.....: 00:02:14.58 Avg step time:..: 0.00067292 sec

Creating animation "Motion"...Error using Animation/animate (line 200) The specified profile is not valid.

Error in Driver/posProcess (line 353) this.animations(i).animate(this);

Error in Master/runSimulations (line 82) drv.posProcess();

Error in main (line 85) Master().runSimulations(1);

mhAllouche avatar Apr 10 '25 21:04 mhAllouche

You copied the main.m file into the example folder, can you confirm that?

In any case, I could not reproduce your error. It seems to occur when calling the VideoWriter function, which is an internal Matlab function to create the animation.

After a quick search on the web, I realized that this error might occur on Linux systems. What operational system are you using?

rlrangel avatar Apr 11 '25 18:04 rlrangel

Hi Rafael,Yes I confirm that I put the main file into the example folder. Everything ran correctly till the animation. I am using the cluster of my university, then yes, it is for sure linux.RegardsHatemLe 11 avr. 2025 8:13 PM, Rafael Rangel @.> a écrit : You copied the main.m file into the example folder, can you confirm that? In any case, I could not reproduce your error. It seems to occur when calling the VideoWriter function, which is an internal Matlab function to create the animation. After a quick search on the web, I realized that this error might occur on Linux systems. What operational system are you using?—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.>

rlrangel left a comment (rlrangel/DEMLab#1) You copied the main.m file into the example folder, can you confirm that? In any case, I could not reproduce your error. It seems to occur when calling the VideoWriter function, which is an internal Matlab function to create the animation. After a quick search on the web, I realized that this error might occur on Linux systems. What operational system are you using?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

mhAllouche avatar Apr 12 '25 21:04 mhAllouche

I'll try on windows and let you know.CheersLe 12 avr. 2025 11:34 PM, MH A @.> a écrit :Hi Rafael,Yes I confirm that I put the main file into the example folder. Everything ran correctly till the animation. I am using the cluster of my university, then yes, it is for sure linux.RegardsHatemLe 11 avr. 2025 8:13 PM, Rafael Rangel @.> a écrit : You copied the main.m file into the example folder, can you confirm that? In any case, I could not reproduce your error. It seems to occur when calling the VideoWriter function, which is an internal Matlab function to create the animation. After a quick search on the web, I realized that this error might occur on Linux systems. What operational system are you using?—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

rlrangel left a comment (rlrangel/DEMLab#1) You copied the main.m file into the example folder, can you confirm that? In any case, I could not reproduce your error. It seems to occur when calling the VideoWriter function, which is an internal Matlab function to create the animation. After a quick search on the web, I realized that this error might occur on Linux systems. What operational system are you using?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

mhAllouche avatar Apr 12 '25 21:04 mhAllouche

I'll try on windows and let you know.

Ok, please. Cheers

rlrangel avatar Apr 13 '25 07:04 rlrangel

Hi Rafael,Well I tried on windows (MATLAB 2024b), but the code does not even run. The error message is :Unrecognized function or variable 'Master'.Error in main (line 84)Master.runSimulations(1);At least on Linux, the calculations ran correctly, and only the display function in the last step did not work.Regards,HatemLe 13 avr. 2025 9:10 AM, Rafael Rangel @.***> a écrit :

I'll try on windows and let you know.

Ok, please. Cheers—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

rlrangel left a comment (rlrangel/DEMLab#1)

I'll try on windows and let you know.

Ok, please. Cheers

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

mhAllouche avatar Apr 17 '25 09:04 mhAllouche

Try to run the main.m file from its original location ('src' folder).

rlrangel avatar Apr 22 '25 06:04 rlrangel