Fatal error: realloc: can't allocate 91964 bytes

Fatal error: realloc: can’t allocate 91964 bytes.

What can be the reason?
The qspice files installation process (last step during updates) too is taking long (more than 5-10 minutes) since a few weeks. It used to happen in few seconds earlier.

Yes, there are errors on some computers after pressing the Run button (the version from February 11 - everything works, versions after February 25 - no; versions from February 12, 14, 19, 21, 23, 24 I can’t check, I don’t have them).

Here this one works, you should use .model statement to add L and W.


mos.qsch (5.1 KB)

Best regards

1 Like

@ivan1 It is uncertain what exact problem @SJayanth encountered, the model he called is pfet_01v8 and nfet_01v8, and they should come from a .model which is not in Qspice standard library. Without his schematic to replicate his exact issue, it just don’t have enough information to troubleshoot.

Back to your proposal, actually, L and W is NOT necessary only with .model statement.
The reason that .model seems required when using the 4-pins NMOS and PMOS native symbol is that, Qspice in default doesn’t include standard library file NMOS.txt or PMOS.txt in its 4-pins symbol, but only 3-pins symbol. I created NMOS and PMOS symbol with substrate to source or with body diode and with NMOS.txt / PMOS.txt included in its library file field, and therefore this problem not bothering me.

Now, missing .lib PMOS.txt is where the problem lies in your schematic setup of why L and W cannot work as instance parameters. Qspice assume M-device with .model NMOS NMOS, and if M1 PMOS doesn’t link with a library or .model that to define it as a PMOS, it return error to you. So, the solution is to add PMOS.txt (where it contains a .model PMOS PMOS in its library) into library file field, or add .lib PMOS.txt or .model PMOS PMOS into schematic.

If in the first step, you are using 3-pin native PMOS/NMOS model, you won’t encounter problem in adding L and W as instance parameters.

Here is an example that L and W put into instance parameters as similar to @SJayanth schematic. However, what he encountered may be a different story.

mos (add library).qsch (5.3 KB)

1 Like

Now on some computers there is such a problem (slow installation) when updating, on some computers there are errors with the display of results after clicking the “Run” button (for any schemes).

I read your post again, and it seems that I may have encountered this issue before. I don’t know what the problem was, but I remember what I did was terminate the installation from Task Manager, delete the Qspice directory, and reinstall Qspice directly from its installer. To avoid having to go through the registration on the Qorvo website again, I downloaded the installer directly from this link. https://getqspice.com/InstallQSPICE.exe

I did a clean reinstall. I used the QUX.exe file for different versions - the version from February 11 - everything works, versions after February 25 - no.
Something happened in a short period of time:

For now I’m using the version from February 11th.
If there are versions from February 12, 14, 19, 21, 23, 24 - this will reduce the search area.
The QUX.exe file is enough.