B4J Question Problem with internal designer

vfafou

Well-Known Member
Licensed User
Longtime User
Hello!

I have a problem with the internal designer. Eight of ten times I open the internal designer from any project, it crashes with an invisible "Notification Window" I can see only at Task Manager window as you can see in attached image. "Unfortunately" my main computer is a Mac and I have B4X installed to a Windows 11 Parallels VM.

Is there any suggestion/workaround on how to solve this problem?

Thank you in advance!
 

Attachments

  • Screenshot 2022-04-15 233752.png
    Screenshot 2022-04-15 233752.png
    258.3 KB · Views: 139

MicroDrie

Well-Known Member
Licensed User
Longtime User
I would start by uninstalling first and after a reboot of the VM and then reinstall B4J, OpenJDK 11 + OpenJFX 11 according to the instructions.
 
Upvote 0

vfafou

Well-Known Member
Licensed User
Longtime User
I would start by uninstalling first and after a reboot of the VM and then reinstall B4J, OpenJDK 11 + OpenJFX 11 according to the instructions.
Hello MicroDrie,
Thank you for your response! My installation is a totally fresh one on a totally new computer, received 8 days ago, so this isn't caused by an "old and tired" installation! As well as, the VM is a totally fresh installation of Windows 11.
 
Upvote 0

vfafou

Well-Known Member
Licensed User
Longtime User
Hello Erel!
Thank you for your response. According to the log:
B4X:
System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
   at System.Windows.Media.Composition.DUCE.Channel.SyncFlush()
   at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, Nullable`1 channelSet)
   at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam)
   at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
but the Windows 11 VM has 8GB memory and the 4GB are shared for graphics memory, according to the graphics adapter info (attached image).
Is there any action I could do to solve the problem?
 

Attachments

  • Screenshot 2022-04-18 094238.png
    Screenshot 2022-04-18 094238.png
    66.7 KB · Views: 119
Upvote 0

vfafou

Well-Known Member
Licensed User
Longtime User
Hello Erel! Thank you for your response!
The Win 11 installation already has latest .net version. I also installed v3.5 and now the IDE is hanging with the same error every time I open it, even if I don't open the designer!
I don't know what to do!
 
Upvote 0

MicroDrie

Well-Known Member
Licensed User
Longtime User
For the sake of convenience, we assume that your B4J application is consuming too much memory, but is it so? You could first check the memory usage in the task manager before you start B4J IDE and then when your B4J IDE has started. Perhaps there is something that creates a swap file in memory, for example.
If that doesn't work, MYSTERY MEMORY LEAK: WHERE DID MY MEMORY GO?! might be able to help you.
Because it is a new installation, it may also be the case that if your anti-virus program has a program that crosses over with programs unknown to it that have not yet been scanned.
 
Upvote 0

MicroDrie

Well-Known Member
Licensed User
Longtime User
I took a closer look at your VM specifications:
but the Windows 11 VM has 8GB memory and the 4GB are shared for graphics memory
However, it is not 8 Gb, but you only have 4 Gb of shared system RAM which is the very, very smallest memory in which Windows can boot. The advice is 8 Gb is the minimum recommended size. However, I still want to be able to get around a bit, so I follow Erel's advice.
Try to increase the memory.
Increased it to a least 8 Gb and better make 16 Gb available to the VM as shared (work) memory.
 
Upvote 0

vfafou

Well-Known Member
Licensed User
Longtime User
Hello!
I have increased the memory to 16GB and still the same problem! 8 out of 10 times I open the IDE, it freezes with the same "Notification Window"! The memory usage of B4J at this moment is not bigger than 150MB.
 
Upvote 0

vfafou

Well-Known Member
Licensed User
Longtime User
I will install the system OS in a simple and less cumbersome way

Install VirtualBox on Mac OS host​

Then in VirtualBox, install win7/win10...I would suggest win7...

VirtualBox .I have been using it for many years.. on win. I believe mac. It should be possible. If not, get a win PC​

The plan is more suitable. After all, we are really hard to resist when it comes to unpopular things...(Windows 11 Parallels VM)
Hello ezpos! Thank you for your response. VirtualBox does not work under Mac M1. The reason I purchase Macs during the last decade is that I don't want to have a windows machine for many reasons!
 
Upvote 0

MicroDrie

Well-Known Member
Licensed User
Longtime User
And of course you can also put the B4J software in a previous Windows version mode by starting the compliance troubleshooting mode.

did you try to follow the advices in MYSTERY MEMORY LEAK: WHERE DID MY MEMORY GO?!

Maybe is the first 64 bits B4J v9.5 BETA version the solution if you VM version has trouble with the current 32 bits B4J versions?

Also worth a try, do download software with a 64 bit browser as some sites are so "intelligent" to think that a 32 bit browser automatically means you also have a 32 bit Windows OS and then you download a 32 bit software package.
 
Upvote 0
Top