Page 1 of 1

[Done] PB6.20B4 WebViewGadget long init time

Posted: Thu Jan 30, 2025 5:01 pm
by dige
I use several web gadgets and a WebView gadget in a larger project. Initializing the WebViewGadget there takes about 15 seconds.

I have extracted the code. But in this case, it gets stuck there completely.

Windows 11, PB 6.20B4 x86/x64

Code: Select all

time = ElapsedMilliseconds()

If OpenWindow(0, 0, 0, 800, 600, "PanelGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
    PanelGadget     (0, 10, 10, 780, 580)
      AddGadgetItem (0, -1, "Panel 1")
      WebGadget(1, 0, 0, GetGadgetAttribute(0, #PB_Panel_ItemWidth), GetGadgetAttribute(0, #PB_Panel_ItemHeight), "", #PB_Web_Edge)
      Debug ElapsedMilliseconds() - time
      
      AddGadgetItem (0, -1,"Panel 2")
      WebGadget(2, 0, 0, GetGadgetAttribute(0, #PB_Panel_ItemWidth), GetGadgetAttribute(0, #PB_Panel_ItemHeight), "", #PB_Web_Edge)
      Debug ElapsedMilliseconds() - time
        
      AddGadgetItem (0, -1,"Panel 3")
      WebViewGadget(3, 0, 0, GetGadgetAttribute(0, #PB_Panel_ItemWidth), GetGadgetAttribute(0, #PB_Panel_ItemHeight))
      Debug ElapsedMilliseconds() - time
      CloseGadgetList()
        
      MessageRequester("all done", Str(ElapsedMilliseconds() - time) + "ms")
        
    Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
  EndIf

// Moved from "Bugs - Windows" to "General Discussion" (Kiffi)

Re: PB6.20B4 WebViewGadget long init time

Posted: Thu Jan 30, 2025 5:30 pm
by Fred
Seems to work here, can anybody else confirm ?

Re: PB6.20B4 WebViewGadget long init time

Posted: Thu Jan 30, 2025 5:34 pm
by Caronte3D
Works here too!
between 350-500ms

Re: PB6.20B4 WebViewGadget long init time

Posted: Thu Jan 30, 2025 5:55 pm
by Quin
On Windows 11 IoT 24H2 with PB 6.20 beta 4, I get anywhere from 1090 MS to 1939 MS.

Re: PB6.20B4 WebViewGadget long init time

Posted: Thu Jan 30, 2025 7:54 pm
by HeX0R
it hangs completely in PB6.12 at the WebViewGadget() command, but runs flawlessly in PB6.20B4 (321ms altogether)

Re: PB6.20B4 WebViewGadget long init time

Posted: Fri Jan 31, 2025 9:52 am
by dige
I have reinstalled Beta4. Now it works as it should. 👍

Re: [Done] PB6.20B4 WebViewGadget long init time

Posted: Wed Feb 05, 2025 2:57 pm
by SPH
519
581
W11, PB6.12 :!: