Error running VCL webassembly sample project

delphi
island
(Konstantinos On) #1

I download Elements Oxygen and i’m trying to run this sample webassembly project from https://github.com/remobjects/ElementsSamples/tree/master/Oxygene/Island/Delphi%20VCL/Sample-Wasm
it runs but after seconds shows this exception and nothing loads in chrome

~> Process Sample started
http://127.0.0.1:54595/index.html:12 WebAssembly file Sample.wasm has been loaded.
http://127.0.0.1:54595/wasm/RemObjectsElements.js:277 Fatal exception in WebAssembly!
http://127.0.0.1:54595/wasm/RemObjectsElements.js:277 Exception: RemObjects.Elements.System.Exception: Can not get TLabel type
!> Exception of type RuntimeError on thread 0001
!> Message: RuntimeError: unreachable
!> at ElementsRaiseException (wasm-function[56]:74)
!> at .Lms_t3d_RemObjects_d_Elements_d_RTL_d_Delphi_d_VCL_d_ComponentsHelperf_CreateComponentnt24_RemObjects_d_Elements_d_RTL_d_Stringnt37_RemObjects_d_Elements_d_RTL_d_Delphi_d_VCL_d_TComponent (wasm-function[1791]:377)
!> at .Lmi_t34_RemObjects_d_Elements_d_RTL_d_Delphi_d_VCL_d_TReaderd_ReadComponentnt37_RemObjects_d_Elements_d_RTL_d_Delphi_d_VCL_d_TComponent (wasm-function[1776]:186)
!> at .Lmi_t34_RemObjects_d_Elements_d_RTL_d_Delphi_d_VCL_d_TReader11_ReadComponentDatant37_RemObjects_d_Elements_d_RTL_d_Delphi_d_VCL_d_TComponent (wasm-function[1772]:259)
!> at .Lmi_t34_RemObjects_d_Elements_d_RTL_d_Delphi_d_VCL_d_TReader11_ReadRootComponentnt37_RemObjects_d_Elements_d_RTL_d_Delphi_d_VCL_d_TComponent (wasm-function[1809]:273)
!> at .Lmi_t38_RemObjects_d_Elements_d_RTL_d_Delphi_d_VCL_d_TCustomForm3__d_nt37_RemObjects_d_Elements_d_RTL_d_Delphi_d_VCL_d_TComponent (wasm-function[2124]:470)
!> at .Lmi_t32_RemObjects_d_Elements_d_RTL_d_Delphi_d_VCL_d_TForm3__d_nt37_RemObjects_d_Elements_d_RTL_d_Delphi_d_VCL_d_TComponent (wasm-function[2131]:11)
!> at .Lmi_tf_Sample_d_TForm23__d_nt37_RemObjects_d_Elements_d_RTL_d_Delphi_d_VCL_d_TComponent (wasm-function[8840]:62)
!> at .Lmi_t39_RemObjects_d_Elements_d_RTL_d_Delphi_d_VCL_d_TApplicationa_CreateFormnt7__1sTypen_r_m_v_o (wasm-function[1723]:1430)
!> at mi_t10_Sample_d_Program4_Main (wasm-function[8833]:250)
Detached

#> (edb)

may i didn’t setup something correctly?

thank you!

0 Likes

(Diego Navarro) #2

Hi Konstantinos,
sorry but there is an issue on WebAssembly platform about run time type information, it’s logged and compiler team is working on fixing it.
I will reply when it’s fixed to let you know.

Thanks for your report.

0 Likes