Bug? [CLOSED] B4i IDE Crash

Jmu5667

Well-Known Member
Licensed User
Longtime User
I was using the designed and the IDE crash, before the crash it had become a bit slugish with the mouse and keyboard.

<code>
Log Name: Application
Source: .NET Runtime
Date: 28/05/2020 15:52:38
Event ID: 1026
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: IS-DEV-CORE
Description:
Application: B4i.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.OutOfMemoryException
at System.String.Concat(System.String, System.String)
at ab.a(System.Object)
at System.Threading.TimerQueueTimer.CallCallbackInContext(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.TimerQueueTimer.CallCallback()
at System.Threading.TimerQueueTimer.Fire()
at System.Threading.TimerQueue.FireQueuedTimerCompletion(System.Object)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()


Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name=".NET Runtime" />
<EventID Qualifiers="0">1026</EventID>
<Level>2</Level>
<Task>0</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2020-05-28T14:52:38.377615500Z" />
<EventRecordID>1447220</EventRecordID>
<Channel>Application</Channel>
<Computer>IS-DEV-CORE</Computer>
<Security />
</System>
<EventData>
<Data>Application: B4i.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.OutOfMemoryException
at System.String.Concat(System.String, System.String)
at ab.a(System.Object)
at System.Threading.TimerQueueTimer.CallCallbackInContext(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.TimerQueueTimer.CallCallback()
at System.Threading.TimerQueueTimer.Fire()
at System.Threading.TimerQueue.FireQueuedTimerCompletion(System.Object)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

</Data>
</EventData>
</Event>
</code>

Regards

John.

P.s It's still a great product.
 

Jmu5667

Well-Known Member
Licensed User
Longtime User
It was suggested I had an old .NET framework so ...

1590679896718.png
 

agraham

Expert
Licensed User
Longtime User
That's more then enough RAM for normal operation. Perhaps a run away set of String concatentions for some reason/edge case.
B4X:
at System.String.Concat(System.String, System.String)
at ab.a(System.Object)
Erel would need to look at where this is in the IDE code.
 

Jmu5667

Well-Known Member
Licensed User
Longtime User
This is indeed a memory issue. Is this the first time you encounter such error?
Yes, I use all b4x products and this is the first time I have experienced such an issue. I also had b4a open as I am converting a b4a to b4i app. If you need anything else from me just ask.
 

Jmu5667

Well-Known Member
Licensed User
Longtime User
Btw, I was copying a B4Xfloattextfield from on bil to another when the crash happened. I had also been copying bal layouts and pasting them to bil layouts, maybe this is usefu for you.

Regards

John.
 

Biswajit

Active Member
Licensed User
Longtime User
This happened to me to. In my case, I was coping a view from b4a to b4i with the same name. Say you already have a panel1 in B4i designer and you are copying a panel from B4A designer to B4i with the same name panel1
 

Jmu5667

Well-Known Member
Licensed User
Longtime User
This happened to me to. In my case, I was coping a view from b4a to b4i with the same name. Say you already have a panel1 in B4i designer and you are copying a panel from B4A designer to B4i with the same name panel1

In my case I was creating new b4i layouts, so they were blank.
 

Peter Simpson

Expert
Licensed User
Longtime User

Only 8Gb, if I were you I would double that John. Both of my development laptops are running 16 GB (15.8 GB usable) of RAM. As we all know, with multiple programs running at the same time, Windows and running programs can soon chew through the available memory causing slow downs and crashing issues.

So the more RAM you have installed, the merrier...
 

Biswajit

Active Member
Licensed User
Longtime User
Only 8Gb, if I were you I would double that John. Both of my development laptops are running 16 GB (15.8 GB usable) of RAM. As we all know, with multiple programs running at the same time, Windows and running programs can soon chew through the available memory causing slow downs and crashing issues.

So the more RAM you have installed, the merrier...
I also have 16GB of RAM. In the previous version (can't recall the version) of B4i it crashed. Now in the current version it shows,
1590836569854.png


You can also reproduce the error.
  1. Create a panel in B4A designer name it Panel1 (P in caps)
  2. Create a panel in B4i designer name it panel1 (p in small)
  3. Now copy B4A panel to B4i
  4. Then click inside the script window.
 

Peter Simpson

Expert
Licensed User
Longtime User
I also have 16GB of RAM. In the previous version (can't recall the version) of B4i it crashed. Now in the current version it shows,
View attachment 94937

You can also reproduce the error.
  1. Create a panel in B4A designer name it Panel1 (P in caps)
  2. Create a panel in B4i designer name it panel1 (p in small)
  3. Now copy B4A panel to B4i
  4. Then click inside the script window.

John's issue was and is according to his logs clearly an out of memory issue. Your issue is most probably a .Net invocation reflection issue.

Two completely different issues.

Anyway, I just copy and paste the whole layout from one designer to another, I don't have any issues that way..
 
Last edited:

Biswajit

Active Member
Licensed User
Longtime User
John's issue was and is according to his logs clearly an out of memory issue. You issue is most probably a .Net invocation reflection issue.

Two completely different issues.

Anyway, I just copy and paste the whole layout from one designer to another, I don't have any issues that way.
You are right. I'm creating a new thread.
 

Jmu5667

Well-Known Member
Licensed User
Longtime User
Only 8Gb, if I were you I would double that John. Both of my development laptops are running 16 GB (15.8 GB usable) of RAM. As we all know, with multiple programs running at the same time, Windows and running programs can soon chew through the available memory causing slow downs and crashing issues.

So the more RAM you have installed, the merrier...

New machine required me thinks :)
 

Jmu5667

Well-Known Member
Licensed User
Longtime User
Another small memory issue appeared just now ... dont know if this is related. Restarting the IDE allowed the compile to work and install a release mode of the app successfully.

I should mention, I am running pCloud and one of the folders is monitors is my B4i, again dont know if it is relevant but thought I should mention it.

J.

1591723439243.png
 
Top