jordi
Full Member
A simple solution is the smarter one.
Posts: 106
|
Post by jordi on Feb 24, 2020 5:25:11 GMT -5
Hello,
Every time I run for first time an exe made with Liberty Basic I get this message (attached)
"Smalltalk/V unable to allocate virtual address space"
The next time I run the same exe, it doesn't happen anymore.
Why does this happen? How to avoid it?
Attachments:
|
|
|
Post by sarossell on Feb 24, 2020 6:56:52 GMT -5
I recall this error being an issue in the past. It had something to do with memory. Some people found that simply recreating the TKN file fixed the problem. I don't recall hearing about a permanent fix, but I may have just missed it.
|
|
|
Post by Rod on Feb 24, 2020 8:08:54 GMT -5
You don't say which version you are running. There was a version that tried to grab too much memory. So download the latest version and see how you get on. Let us know if that fixes it.
|
|
jordi
Full Member
A simple solution is the smarter one.
Posts: 106
|
Post by jordi on Feb 24, 2020 8:19:26 GMT -5
Hi. Thanks for the replies.
It's the last one: Liberty Basic 4.5.1
I just bought it two weeks ago.
I am very happy with Liberty Basic. The error may be annoying though.
Maybe it is caused by some Windows firewall or antivirus Avast?
|
|
|
Allocate
Feb 24, 2020 8:59:41 GMT -5
via mobile
Post by Rod on Feb 24, 2020 8:59:41 GMT -5
Well virus software is a possibility. Limiting memory allocation is a safeguard. If it were a real memory allocation issue it would fail consistently. Well it used to when we had the 1gb request.
What os and virus protection are you on?
|
|
jordi
Full Member
A simple solution is the smarter one.
Posts: 106
|
Post by jordi on Feb 24, 2020 9:33:13 GMT -5
Windows 10 Home, and Avast Free antivirus and Malwarebytes Pro.
I will try with a new program and disabling those, and tell you what happens.
|
|
|
Post by Rod on Feb 24, 2020 10:06:54 GMT -5
Ok I am on Win10 but use the standard Defender virus protection (ten years without a hitch) I just tried a .exe build and no problems. Liberty is I think only asking for 256Mb so there should be no way you have less memory available than that.
So I did not find any previous mention, but this is a young forum and Sarossell has the memory of an elephant. Anyone else remember the issue? If so what antivirus.
|
|
|
Post by tsh73 on Feb 24, 2020 12:20:26 GMT -5
in release notes, it says >>-Changed memory limit to 768MB
|
|
|
Post by sarossell on Feb 24, 2020 12:28:23 GMT -5
|
|
|
Post by Carl Gundel on Feb 24, 2020 12:53:06 GMT -5
Originally LB was limited to 70MB. Even though the new limit of 256MB seems like a big deal most of the time you will not bump into it.
|
|
|
Post by Carl Gundel on Feb 24, 2020 12:55:46 GMT -5
Hello,
Every time I run for first time an exe made with Liberty Basic I get this message (attached)
"Smalltalk/V unable to allocate virtual address space"
The next time I run the same exe, it doesn't happen anymore.
Why does this happen? How to avoid it?
Sometimes if there is other software running this can interfere with LB which tries to grab 256MB when it starts. I cannot fix this since it is hard coded into the virtual machine that LB runs on top of, and I do not have the source code for that VM. Liberty BASIC 5 will not have this problem. You can even help testing with LB5 if you like. See here. libertybasiccom.proboards.com/thread/690/build-ready-windows-linux-raspberry
|
|
|
Allocate
Feb 24, 2020 13:51:17 GMT -5
via mobile
Post by Rod on Feb 24, 2020 13:51:17 GMT -5
My money is on the virus detection programs.
|
|
|
Post by Rod on Feb 24, 2020 14:26:11 GMT -5
Yes that's true, I think the release notes are wrong and need amended.
256Mb is a lot of memory. You can still use it up with badly coded graphics drawing. But most times it is way more than anyone needs. Particularly as we all typically have terabytes of file space!
|
|
jordi
Full Member
A simple solution is the smarter one.
Posts: 106
|
Post by jordi on Feb 24, 2020 15:20:00 GMT -5
I will need to try with the next program. I think it's the antivirus, that is a bit paranoid. With the exes it recognizes, it doesn't happen again.
Thank you all for your help and to Carl for developing this great language and the book.
|
|
jordi
Full Member
A simple solution is the smarter one.
Posts: 106
|
Post by jordi on Feb 26, 2020 14:06:42 GMT -5
It seems is Avast antivirus. It doesn't tell much to the user, to not annoy us. But it makes this problem.
If I disable it, it doesn't happen.
|
|