TTMSFNCWebBrowser Crashes RadStudio

Dropping a TTMSFNCWebBrowser component on either a VCL or FMX form causes Rad Studio Delphi to crash.  This occurs with both VCL and FMX applications.


Windows 10 (Version 109.0, Build 18362, 64 bit Edition)
RAD Studio 10.3 Version 26.0.34749.6593 - Update 2
TMS FNC Core 2.1.0.2 3/24/2020
TMS FNC UI Pack 3.0.1.2 3/24/2020
Edge Version 83.0.474.0 (Official build) canary (64-bit)

Steps to recreate:  Create a new VCL or FMX application.  Drop a TTMSFNCWebBrowser on the form.  The wheel spins and after about 30 seconds, Rad Studio closes.

I already had the latest FNC products before installing Edge.  After Edge was installed, I copied the 
DLL files from their TMS locations to the system folders.  For some reason WebView2Loader_x64.dll was in the syswow64 folder before I copied anything.

c:\windows\system32\WebView2Loader_x64.dll 420,728
c:\windows\syswow64\WebView2Loader_x86.dll 321,400

I rebooted the computer and the issue remains.
Here is additional information on the crash:

ERROR
Faulting application name: bds.exe, version: 26.0.34749.6593, time stamp: 0x5d224e21
Faulting module name: clr.dll, version: 4.8.4150.0, time stamp: 0x5e176ddd
Exception code: 0xc00000fd

INFORMATION
Fault bucket 1790548308624864088, type 1
Event Name: APPCRASH
Response: Not available
Cab Id: 0

Problem signature:
P1: bds.exe
P2: 26.0.34749.6593
P3: 5d224e21
P4: clr.dll
P5: 4.8.4150.0
P6: 5e176ddd
P7: c00000fd
P8: 004d4c2a
P9: 
P10: 

Attached files:
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER98D5.tmp.dmp
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERC237.tmp.WERInternalMetadata.xml
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERC248.tmp.xml
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERC258.tmp.csv
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERC278.tmp.txt

These files may be available here:
\\?\C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_bds.exe_96deb9ad5d6cce1f49b7c4f438a37a83be93cd8_b3ed827a_40e7ded5-d7d8-4617-852a-b2192d08838b

Analysis symbol: 
Rechecking for solution: 0
Report Id: 41f14ac8-a85e-4eac-ba39-8c700aa224b4
Report Status: 268435456
Hashed bucket: 0987aa2f2e191ec448d94e3330c2f358
Cab Guid: 0

I was able to resolve the crash issue by making sure both the SYSTEM32 and SYSWOW64 folders had copies of each DLL.  However, the component does not behave as expected.  I will post a separate message after investigating further.

Although I resolved the crash at startup, using the TMSFNCWebBrowser continued to crash Delphi.  Initially, the crashes occurred when I clicked off of the browser component.  Within 20 seconds, Delphi would crash.  I changed the default browser from Chrome to Edge Canary and rebooted.  I still had issues with either Delphi or the application crashing and there were no messages.  But I found that if I left Edge running, I could get the application to run and Delphi would not crash.


The component started working as shown in the tmssoftware demo.  I added additional functionality to the application and found it worked well.  At some point, it seemed having Edge open was no longer necessary.  At that time, I decided to reboot and attempt to recreate the crashes.

But after rebooting, the browser application would no longer work.  It loaded into the IDE but the live browser view was no longer present.  When the application was run, it failed to appear on the screen even though it was shown in the task list and on the task bar. It was necessary to use task manager to kill the process.  Delphi also behaved strangely and occasionally displayed exceptions.  Most of the time Delphi had to be killed.

There are no issues when working with other Delphi applications.  The version of Edge displayed when the browser component was working is 83.0.477.0.  It is unclear if the problem is with the component or with Edge.

I installed the latest FNC packages and the program now compiles and Delphi no longer crashes.  The version of FNC Core is now 2.2.0.0.  I copied the latest DLL's from the edge support folder to the windows system directories.


When the application executes an information dialog displays the message "Could not initialize Edge Chromium! Please check Edge Chromium installation and verify the correct version number."   The browser is then displayed but is non-functional.

The Edge version is the latest Canary release of 83.0.478.1.  Please advise.

You need Edge Chromium DEV release 
Microsoft broke the latest canary yesterday

Microsoft Edge Dev version 83.0.474.0 works correctly. Thanks.

Hi,

I'm a little confused over using the new browser in Windows. I undersatend that I need to distribute your dll's but do my users also have to have the Edge Dev version installed?

Thanks,

Ken

Yes, Edge Dev needs to be installed

I'm having issues with 

Version 83.0.478.5 (Official build) dev (64-bit) of Edge - is this a known problem? I just get "Could not initialize Edge Chromium" on VCL or FMX versions .

Thanks,

Rhett Price

Do you use the Canary build?

https://www.tmssoftware.com/site/edgechromium.asp

I used the Dev but can try Canary.


- Rhett

Please use canary v84

Hi, for future updates we aim specifically for v84.0.488.0 as a minimum version.

1 Like