Re: gtk webview wrong rendering on load and small artifact
Hi On Fri, Aug 5, 2022 at 9:08 AM Michael Nazzareno Trimarchi wrote: > > Hi > > On Fri, Aug 5, 2022 at 9:01 AM Kjell Ahlstedt wrote: > > > > Den 2022-08-04 kl. 22:47, skrev Michael Nazzareno Trimarchi: > > > > Did you get this strange resize effect? Seems the window is resized > > and the webview part resizes later, so it's totally not fluent. Anyway > > the idea behind the project > > is to create a way to interact with alexa stack using webkit and gtkmm > > and websocket. > > > > Michael > > > > > > Yes, I can see that the bbbc2f4dd0a9586f053308ab9a1a.png figure is > > clipped on its sides until the window is resized. I haven't yet been able > > to find out which part of the program draws this figure. I suspect that > > it's the main.bundle.js Javascript. If this can be a bug in a Javascript, I > > can't help you. > > > > Yes this is rendered by webkit, that loads the index.html that renders > the picture. For the resizing problem I noticed that wayland does not > white blink the background during resizing but yes > xorg. I suspend some double buffering problem > There are few problems still but they are on top of webkit and gtk mostly. I have compiled badwolf browser and resizing give the same problem: - slow resize - flashing during resize https://hacktivis.me/git/badwolf/ The GtkWebView is in hbox under a ScrollWindow Michael > Michael > > > Kjell > > > > -- > Michael Nazzareno Trimarchi > Co-Founder & Chief Executive Officer > M. +39 347 913 2170 > mich...@amarulasolutions.com > __ > > Amarula Solutions BV > Joop Geesinkweg 125, 1114 AB, Amsterdam, NL > T. +31 (0)85 111 9172 > i...@amarulasolutions.com > www.amarulasolutions.com -- Michael Nazzareno Trimarchi Co-Founder & Chief Executive Officer M. +39 347 913 2170 mich...@amarulasolutions.com __ Amarula Solutions BV Joop Geesinkweg 125, 1114 AB, Amsterdam, NL T. +31 (0)85 111 9172 i...@amarulasolutions.com www.amarulasolutions.com ___ gtkmm-list mailing list gtkmm-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtkmm-list
Re: gtk webview wrong rendering on load and small artifact
Hi On Fri, Aug 5, 2022 at 9:01 AM Kjell Ahlstedt wrote: > > Den 2022-08-04 kl. 22:47, skrev Michael Nazzareno Trimarchi: > > Did you get this strange resize effect? Seems the window is resized > and the webview part resizes later, so it's totally not fluent. Anyway > the idea behind the project > is to create a way to interact with alexa stack using webkit and gtkmm > and websocket. > > Michael > > > Yes, I can see that the bbbc2f4dd0a9586f053308ab9a1a.png figure is > clipped on its sides until the window is resized. I haven't yet been able to > find out which part of the program draws this figure. I suspect that it's the > main.bundle.js Javascript. If this can be a bug in a Javascript, I can't help > you. > Yes this is rendered by webkit, that loads the index.html that renders the picture. For the resizing problem I noticed that wayland does not white blink the background during resizing but yes xorg. I suspend some double buffering problem Michael > Kjell -- Michael Nazzareno Trimarchi Co-Founder & Chief Executive Officer M. +39 347 913 2170 mich...@amarulasolutions.com __ Amarula Solutions BV Joop Geesinkweg 125, 1114 AB, Amsterdam, NL T. +31 (0)85 111 9172 i...@amarulasolutions.com www.amarulasolutions.com ___ gtkmm-list mailing list gtkmm-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtkmm-list
Re: gtk webview wrong rendering on load and small artifact
Den 2022-08-04 kl. 22:47, skrev Michael Nazzareno Trimarchi: Did you get this strange resize effect? Seems the window is resized and the webview part resizes later, so it's totally not fluent. Anyway the idea behind the project is to create a way to interact with alexa stack using webkit and gtkmm and websocket. Michael Yes, I can see that the bbbc2f4dd0a9586f053308ab9a1a.png figure is clipped on its sides until the window is resized. I haven't yet been able to find out which part of the program draws this figure. I suspect that it's the main.bundle.js Javascript. If this can be a bug in a Javascript, I can't help you. Kjell ___ gtkmm-list mailing list gtkmm-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtkmm-list
Re: gtk webview wrong rendering on load and small artifact
Hi On Thu, Aug 4, 2022 at 10:47 PM Michael Nazzareno Trimarchi wrote: > > Hi Kjell > > On Thu, Aug 4, 2022 at 5:40 PM Michael Nazzareno Trimarchi > wrote: > > > > Hi > > > > On Thu, Aug 4, 2022 at 5:21 PM Kjell Ahlstedt > > wrote: > > > > > > Den 2022-08-04 kl. 16:13, skrev Michael Nazzareno Trimarchi: > > > > > > Are you building with gnome-builder? > > > > > > Michael > > > > > > No, I'm building as described in README.md. But I had defined the > > > environment variable GSETTINGS_SCHEMA_DIR. It's needed be other programs > > > that I run now and then. In this case, it was a mistake. When I unset > > > GSETTINGS_SCHEMA_DIR, ./src/alexa started. > > > > > > Now the output is > > > > > > Connection from WebPage > > > Connect to Alexa > > > Error: The server did not accept the WebSocket handshake. > > > > > > I don't get the warning about called gtk_widget_queue_resize() during > > > size_allocate() when I resize the window. Nothing seems to disappear from > > > the window. What's the artifact you're talking about? Is it the blue > > > circle before the text "amazon alexa"? > > > > > > > Alexa image is cut on the side. When you resize it does not have a > > problem during resize? I sent a picture already that you can see. The > > blue on left and the A of the right of Alexa is cut. > > If the window is resize or redraw then is ok. During resize you have > > some artifacts > > > > GTK_DEBUG=geometry ./alexa > > > > Did you get this strange resize effect? Seems the window is resized > and the webview part resizes later, so it's totally not fluent. Anyway > the idea behind the project > is to create a way to interact with alexa stack using webkit and gtkmm > and websocket. I have compiled https://github.com/lglearn/WebKit-tutorials-examples and they have exactly the same problem. I need to dig on it Michael > > Michael > > > > Michael > > > > > > > > > > > -- > > Michael Nazzareno Trimarchi > > Co-Founder & Chief Executive Officer > > M. +39 347 913 2170 > > mich...@amarulasolutions.com > > __ > > > > Amarula Solutions BV > > Joop Geesinkweg 125, 1114 AB, Amsterdam, NL > > T. +31 (0)85 111 9172 > > i...@amarulasolutions.com > > www.amarulasolutions.com > > > > -- > Michael Nazzareno Trimarchi > Co-Founder & Chief Executive Officer > M. +39 347 913 2170 > mich...@amarulasolutions.com > __ > > Amarula Solutions BV > Joop Geesinkweg 125, 1114 AB, Amsterdam, NL > T. +31 (0)85 111 9172 > i...@amarulasolutions.com > www.amarulasolutions.com -- Michael Nazzareno Trimarchi Co-Founder & Chief Executive Officer M. +39 347 913 2170 mich...@amarulasolutions.com __ Amarula Solutions BV Joop Geesinkweg 125, 1114 AB, Amsterdam, NL T. +31 (0)85 111 9172 i...@amarulasolutions.com www.amarulasolutions.com ___ gtkmm-list mailing list gtkmm-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtkmm-list
Re: gtk webview wrong rendering on load and small artifact
Hi Kjell On Thu, Aug 4, 2022 at 5:40 PM Michael Nazzareno Trimarchi wrote: > > Hi > > On Thu, Aug 4, 2022 at 5:21 PM Kjell Ahlstedt wrote: > > > > Den 2022-08-04 kl. 16:13, skrev Michael Nazzareno Trimarchi: > > > > Are you building with gnome-builder? > > > > Michael > > > > No, I'm building as described in README.md. But I had defined the > > environment variable GSETTINGS_SCHEMA_DIR. It's needed be other programs > > that I run now and then. In this case, it was a mistake. When I unset > > GSETTINGS_SCHEMA_DIR, ./src/alexa started. > > > > Now the output is > > > > Connection from WebPage > > Connect to Alexa > > Error: The server did not accept the WebSocket handshake. > > > > I don't get the warning about called gtk_widget_queue_resize() during > > size_allocate() when I resize the window. Nothing seems to disappear from > > the window. What's the artifact you're talking about? Is it the blue circle > > before the text "amazon alexa"? > > > > Alexa image is cut on the side. When you resize it does not have a > problem during resize? I sent a picture already that you can see. The > blue on left and the A of the right of Alexa is cut. > If the window is resize or redraw then is ok. During resize you have > some artifacts > > GTK_DEBUG=geometry ./alexa > Did you get this strange resize effect? Seems the window is resized and the webview part resizes later, so it's totally not fluent. Anyway the idea behind the project is to create a way to interact with alexa stack using webkit and gtkmm and websocket. Michael > Michael > > > > > > -- > Michael Nazzareno Trimarchi > Co-Founder & Chief Executive Officer > M. +39 347 913 2170 > mich...@amarulasolutions.com > __ > > Amarula Solutions BV > Joop Geesinkweg 125, 1114 AB, Amsterdam, NL > T. +31 (0)85 111 9172 > i...@amarulasolutions.com > www.amarulasolutions.com -- Michael Nazzareno Trimarchi Co-Founder & Chief Executive Officer M. +39 347 913 2170 mich...@amarulasolutions.com __ Amarula Solutions BV Joop Geesinkweg 125, 1114 AB, Amsterdam, NL T. +31 (0)85 111 9172 i...@amarulasolutions.com www.amarulasolutions.com ___ gtkmm-list mailing list gtkmm-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtkmm-list
Re: gtk webview wrong rendering on load and small artifact
Hi On Thu, Aug 4, 2022 at 5:21 PM Kjell Ahlstedt wrote: > > Den 2022-08-04 kl. 16:13, skrev Michael Nazzareno Trimarchi: > > Are you building with gnome-builder? > > Michael > > No, I'm building as described in README.md. But I had defined the environment > variable GSETTINGS_SCHEMA_DIR. It's needed be other programs that I run now > and then. In this case, it was a mistake. When I unset GSETTINGS_SCHEMA_DIR, > ./src/alexa started. > > Now the output is > > Connection from WebPage > Connect to Alexa > Error: The server did not accept the WebSocket handshake. > > I don't get the warning about called gtk_widget_queue_resize() during > size_allocate() when I resize the window. Nothing seems to disappear from the > window. What's the artifact you're talking about? Is it the blue circle > before the text "amazon alexa"? > Alexa image is cut on the side. When you resize it does not have a problem during resize? I sent a picture already that you can see. The blue on left and the A of the right of Alexa is cut. If the window is resize or redraw then is ok. During resize you have some artifacts GTK_DEBUG=geometry ./alexa Michael > -- Michael Nazzareno Trimarchi Co-Founder & Chief Executive Officer M. +39 347 913 2170 mich...@amarulasolutions.com __ Amarula Solutions BV Joop Geesinkweg 125, 1114 AB, Amsterdam, NL T. +31 (0)85 111 9172 i...@amarulasolutions.com www.amarulasolutions.com ___ gtkmm-list mailing list gtkmm-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtkmm-list
Re: gtk webview wrong rendering on load and small artifact
Den 2022-08-04 kl. 16:13, skrev Michael Nazzareno Trimarchi: Are you building with gnome-builder? Michael No, I'm building as described in README.md. But I had defined the environment variable GSETTINGS_SCHEMA_DIR. It's needed be other programs that I run now and then. In this case, it was a mistake. When I unset GSETTINGS_SCHEMA_DIR, ./src/alexa started. Now the output is Connection from WebPage Connect to Alexa Error: The server did not accept the WebSocket handshake. I don't get the warning about /called gtk_widget_queue_resize() during size_allocate()/ when I resize the window. Nothing seems to disappear from the window. What's the artifact you're talking about? Is it the blue circle before the text "amazon alexa"? ___ gtkmm-list mailing list gtkmm-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtkmm-list
Re: gtk webview wrong rendering on load and small artifact
Hi mkdir build cd build cmake ../ make -j10 cd build/src/ ./alexa The schema should be in generated data. This problem I have only if I run from gnome-builder. I need to check if I have some installation by mistake before and still able to find it in the general schema Michael On Thu, Aug 4, 2022 at 4:13 PM Michael Nazzareno Trimarchi wrote: > > Hi Kjell > > On Thu, Aug 4, 2022 at 3:57 PM Kjell Ahlstedt wrote: > > > > Den 2022-08-03 kl. 12:07, skrev Michael Nazzareno Trimarchi via gtkmm-list: > > > Hi > > > > > > On Wed, Aug 3, 2022 at 11:55 AM Michael Nazzareno Trimarchi > > > wrote: > > > > > > Hi > > > > > > I have created a simple example using gtkmm and webkit here: > > > > > > https://github.com/panicking/gtkmm_alexa > > > > > I downloaded your example and managed to build it. When I execute it, I > > get the error > > > > (alexa:7545): GLib-GIO-ERROR **: 15:36:51.296: Settings schema > > 'org.amarula.alexa' is not installed > > > > How do I install the schema? I'm not very familiar with CMake. > > > > > > Are you building with gnome-builder? > > Michael > > -- > Michael Nazzareno Trimarchi > Co-Founder & Chief Executive Officer > M. +39 347 913 2170 > mich...@amarulasolutions.com > __ > > Amarula Solutions BV > Joop Geesinkweg 125, 1114 AB, Amsterdam, NL > T. +31 (0)85 111 9172 > i...@amarulasolutions.com > www.amarulasolutions.com -- Michael Nazzareno Trimarchi Co-Founder & Chief Executive Officer M. +39 347 913 2170 mich...@amarulasolutions.com __ Amarula Solutions BV Joop Geesinkweg 125, 1114 AB, Amsterdam, NL T. +31 (0)85 111 9172 i...@amarulasolutions.com www.amarulasolutions.com ___ gtkmm-list mailing list gtkmm-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtkmm-list
Re: gtk webview wrong rendering on load and small artifact
Hi Kjell On Thu, Aug 4, 2022 at 3:57 PM Kjell Ahlstedt wrote: > > Den 2022-08-03 kl. 12:07, skrev Michael Nazzareno Trimarchi via gtkmm-list: > > Hi > > > > On Wed, Aug 3, 2022 at 11:55 AM Michael Nazzareno Trimarchi > > wrote: > > > > Hi > > > > I have created a simple example using gtkmm and webkit here: > > > > https://github.com/panicking/gtkmm_alexa > > > I downloaded your example and managed to build it. When I execute it, I > get the error > > (alexa:7545): GLib-GIO-ERROR **: 15:36:51.296: Settings schema > 'org.amarula.alexa' is not installed > > How do I install the schema? I'm not very familiar with CMake. > > Are you building with gnome-builder? Michael -- Michael Nazzareno Trimarchi Co-Founder & Chief Executive Officer M. +39 347 913 2170 mich...@amarulasolutions.com __ Amarula Solutions BV Joop Geesinkweg 125, 1114 AB, Amsterdam, NL T. +31 (0)85 111 9172 i...@amarulasolutions.com www.amarulasolutions.com ___ gtkmm-list mailing list gtkmm-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtkmm-list
Re: gtk webview wrong rendering on load and small artifact
Den 2022-08-03 kl. 12:07, skrev Michael Nazzareno Trimarchi via gtkmm-list: Hi On Wed, Aug 3, 2022 at 11:55 AM Michael Nazzareno Trimarchi wrote: Hi I have created a simple example using gtkmm and webkit here: https://github.com/panicking/gtkmm_alexa I downloaded your example and managed to build it. When I execute it, I get the error (alexa:7545): GLib-GIO-ERROR **: 15:36:51.296: Settings schema 'org.amarula.alexa' is not installed How do I install the schema? I'm not very familiar with CMake. ___ gtkmm-list mailing list gtkmm-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtkmm-list
Re: gtk webview wrong rendering on load and small artifact
Hi On Wed, Aug 3, 2022 at 11:55 AM Michael Nazzareno Trimarchi wrote: > > Hi > > I have created a simple example using gtkmm and webkit here: > > https://github.com/panicking/gtkmm_alexa > > I restart to work on it in my spare time but I found a rendering > problem on the first load of the page. If I resize it the artifact > disappears. Another problem is that resizing > is presenting some white background glitch. There is some dependencies > with newer version of the library but I have no idea how can I debug For the white flickering maybe can be connected to this warning (alexa:569443): Gtk-WARNING **: 12:04:15.960: gtkmm__GtkScrolledWindow 0x561dba7fc3b0 or a child called gtk_widget_queue_resize() during size_allocate(). GTK_DEBUG=geometry > it > > Michael ___ gtkmm-list mailing list gtkmm-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtkmm-list
gtk webview wrong rendering on load and small artifact
Hi I have created a simple example using gtkmm and webkit here: https://github.com/panicking/gtkmm_alexa I restart to work on it in my spare time but I found a rendering problem on the first load of the page. If I resize it the artifact disappears. Another problem is that resizing is presenting some white background glitch. There is some dependencies with newer version of the library but I have no idea how can I debug it Michael ___ gtkmm-list mailing list gtkmm-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtkmm-list