Would you like to react to this message? Create an account in a few clicks or log in to continue.

You are not connected. Please login or register

I do not understand this error

2 posters

Go down  Message [Page 1 of 1]

1I do not understand this error Empty I do not understand this error Sun Feb 06, 2022 11:07 pm

feri



Simulide 0.4.15 with some patterns when I start the simulation comes out, it does it only certain times especially when it has just been started.
Debugging gives me this error but I can't attribute it to a component.
It would seem arduino and the serial, however, I do not understand.
What the following error can be caused by.

I do not understand this error Error_10

Greetings

2I do not understand this error Empty Re: I do not understand this error Mon Feb 07, 2022 9:08 am

arcachofo

arcachofo

I can't see nothing there.
What is the problem?
Does simulide crash at that line?

3I do not understand this error Empty Re: I do not understand this error Mon Feb 07, 2022 11:15 am

feri



Simulide closes "simulator.cpp line 164".
If you open the image you see the whole screen.
Greetings

4I do not understand this error Empty Re: I do not understand this error Mon Feb 07, 2022 3:58 pm

arcachofo

arcachofo

Ok, then you need to see what is "el", and that is not shown in the image.

Probably whatever "el" is, it was deleted and didn't remove itself from simuclock list.

5I do not understand this error Empty Re: I do not understand this error Mon Feb 07, 2022 6:49 pm

feri



I do not understand this error Error_11

If I first open another scheme and then open the one that gives the error if opened first, it works.
Greetings

6I do not understand this error Empty Re: I do not understand this error Mon Feb 07, 2022 6:55 pm

arcachofo

arcachofo

Is there some element that is added to simuclock and then deleted without removing from simuclock?

7I do not understand this error Empty Re: I do not understand this error Mon Feb 07, 2022 10:12 pm

feri



I copied and pasted the schematic into a new one but the same error happens.
From the debug it seems that initially in the clock list there are 2 elements and when i2c starts they become 3 from here one creates the error.

I do not understand this error Error_12

If I delete the speaker the simulation works and the debug is this:

0x1a2a548
eElement "baseprocessor"
0x1a2a548
eElement "baseprocessor"
0x1a2a548
eElement "baseprocessor"
0x1a2a548
eElement "baseprocessor"
0x1a2a548
eElement "baseprocessor"
0x1a2a548
eElement "baseprocessor"
0x1a2a548
eElement "baseprocessor"
AvrCompBase::twenChanged Enable: 1
AvrCompBase::twenChanged i2cFreq: 100000
0x1a2a548
eElement "baseprocessor"
0x1a2a640
eElement "avrI2C"
0x1a2a548
eElement "baseprocessor"
0x1a2a640
eElement "avrI2C"
0x1a2a548
eElement "baseprocessor"
0x1a2a640
eElement "avrI2C"
0x1a2a548
eElement "baseprocessor"
0x1a2a640
eElement "avrI2C"

Greetings

8I do not understand this error Empty Re: I do not understand this error Tue Feb 08, 2022 10:29 am

arcachofo

arcachofo

I can't reproduce the issue.

Which version or revision of 0.4.15 are you using?
Did you do some modifications?

Also if you share your circuit I can test it.

9I do not understand this error Empty Re: I do not understand this error Tue Feb 08, 2022 12:09 pm

feri



Simulide 0.4.15 271
Attachments
I do not understand this error AttachmentRadiocomando.zip
You don't have permission to download attachments.
(11 Kb) Downloaded 1 times

10I do not understand this error Empty Re: I do not understand this error Tue Feb 08, 2022 2:08 pm

arcachofo

arcachofo

It is working for me, no crashes.
Is there something I have to do to reproduce the issue?

11I do not understand this error Empty Re: I do not understand this error Tue Feb 08, 2022 8:57 pm

feri



I don't know I'm unlucky.
How can I check if the "el" pointer is valid?
What causes the error I get when I start Simulide 0.4.15
271 from Qt creator:

: -1: error: [Makefile: 2046: runLrelease] Error 1

Greetings

12I do not understand this error Empty Re: I do not understand this error Wed Feb 09, 2022 11:10 am

arcachofo

arcachofo

How can I check if the "el" pointer is valid?
It is not valid because the program crash when you call it.

What causes the error I get when I start Simulide 0.4.15
271 from Qt creator:

: -1: error: [Makefile: 2046: runLrelease] Error 1
I don't know, runLrelease has not changed for a long time.

I think you should do a clean build.
make clean, and delete all files in the build folder except .pro and .pro.user.
Then run qmake and build.

13I do not understand this error Empty Re: I do not understand this error Wed Feb 09, 2022 11:43 am

feri



I meant a way to make this condition but it doesn't work like this:

if (el) el->simuClockStep();

Greetings

14I do not understand this error Empty Re: I do not understand this error Wed Feb 09, 2022 1:53 pm

arcachofo

arcachofo

I meant a way to make this condition but it doesn't work like this:

if (el) el->simuClockStep();
No, that only works if "el" is NULL.

15I do not understand this error Empty Re: I do not understand this error Wed Feb 09, 2022 7:03 pm

feri



I did like this:

Code:

if( !m_simuClock.isEmpty() )          // Run elements at Simulation Clock
 {
            for( eElement* el : m_simuClock ) {
                if (m_simuClock.contains(el))
                    el->simuClockStep();
            }
 }

it is strange but Simulide no longer closes.
Greetings

arcachofo likes this post

16I do not understand this error Empty Re: I do not understand this error Thu Feb 10, 2022 1:12 am

feri



Another error that happened to me, when after an undo I started the simulation in complex schemes Simulide crashed, was solved in a similar way.

On these "for" Qt creator gives the following warning :

waring
C++ 11 range-loop might detach Qt container (QList) [clazy-range-loop]

Here it is solved like this row 120 and 323:

Code:

    for( eElement* el : m_updateList ) {
      if (m_elementList.contains(el))
          el->updateStep();
    }

Greetings

17I do not understand this error Empty Re: I do not understand this error Thu Feb 10, 2022 6:17 pm

arcachofo

arcachofo

Another error that happened to me, when after an undo I started the simulation in complex schemes Simulide crashed, was solved in a similar way.
That's a good clue.

18I do not understand this error Empty Re: I do not understand this error Thu Feb 17, 2022 2:52 pm

feri



In Simulide 0.4.15 I corrected this function:
Code:

void KY023::remove()
{
    delete m_sw;              // This line was missing
    delete m_vrx;
    delete m_vry;
    Component::remove();
}

Now it no longer crashes.
In version 1.0.0 it still sometimes comes out with UNDO.
But I still don't understand what it depends on.
Greetings

19I do not understand this error Empty Re: I do not understand this error Thu Feb 17, 2022 4:12 pm

arcachofo

arcachofo

In Simulide 0.4.15 I corrected this function:
Thanks, change done at Rev 272.

Sponsored content



Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum