gtk3.webview problem

Post

Posted
Rating:
#26
Regular
rj71 is in the usergroup ‘Regular’

gbWilly said

Seems like all NON iMacs play well with Gambas webview, just not the iMacs.

I have no clue what might be causing it as on your last system there is no xapp-gtk3-module like on the Toshiba (or my system), but it seems to work. So that is apparently not related to your Webview problem. I'm clueless.

One thing, just out of curiosity, what happens if you use qt5 webview on the iMacs? Do you still get a black screen?

I did a quick internet search and found libxapp-gtk3-module. I installed that on the iMac and did another sys info from Gambas. I don't see any difference. Maybe not the right thing. You might be right about old Apples. I have several old iMacs, mac minis and a couple macbooks. They do seem to have their quirks when Linux is installed and are often a pain in the neck. But they're so shiny and pretty  :lol:

Yes, like I mentioned in my OP, QT does the same black screen for webview.

I'll keep working on this and report back anything I might discover. Maybe what I find might be useful for your GambOS project for guys like me that love old Apple stuff.


Code (gambas)

  1. Gambas=3.20.4 ab0099a (master)
  2. OperatingSystem=Linux
  3. Distribution=Debian GNU/Linux 12 (bookworm)
  4. Kernel=6.1.0-35-amd64
  5. Architecture=x86_64
  6. Cores=2
  7. Memory=3912M
  8. Language=en_US.UTF-8
  9. Platform=x11
  10. Desktop=LXQT
  11. DesktopResolution=96
  12. DesktopScale=7
  13. WidgetTheme=adwaita
  14. Font=Sans,10
  15. DarkTheme=False
  16. [Programs]
  17. dpkg=Debian 'dpkg' package management program version 1.21.22 (amd64).
  18. gcc=gcc (Debian 12.2.0-14+deb12u1) 12.2.0
  19. git=git version 2.39.5
  20. msgmerge=msgmerge (GNU gettext-tools) 0.21
  21. rpmbuild=RPM version 4.18.0
  22. [Libraries]
  23. Cairo=libcairo.so.2.11600.0
  24. Curl=libcurl.so.4.8.0
  25. DBus=libdbus-1.so.3.32.4
  26. GDK2=libgdk-x11-2.0.so.0.2400.33
  27. GDK3=libgdk-3.so.0.2406.32
  28. GStreamer=libgstreamer-1.0.so.0.2200.0
  29. GTK+2=libgtk-x11-2.0.so.0.2400.33
  30. GTK+3=libgtk-3.so.0.2406.32
  31. OpenGL=libGL.so.1.7.0
  32. Poppler=libpoppler.so.126.0.0
  33. QT5=libQt5Core.so.5.15.8
  34. QT6=libQt6Core.so.6.4.2
  35. RSvg=librsvg-2.so.2.48.0
  36. SDL=libSDL2-2.0.so.0.2600.5
  37. SQLite3=libsqlite3.so.0.8.6
  38. [Environment]
  39. BROWSER=firefox
  40. DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
  41. DESKTOP_SESSION=lxqt
  42. DISPLAY=:0
  43. GB_GUI=gb.gtk3
  44. GDMSESSION=lxqt
  45. GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
  46. GTK_CSD=0
  47. GTK_MODULES=gail:atk-bridge
  48. GTK_OVERLAY_SCROLLING=0
  49. HOME=<home>
  50. LANG=en_US.UTF-8
  51. LANGUAGE=en_US.UTF-8
  52. LOGNAME=<user>
  53. LXQT_SESSION_CONFIG=session
  54. PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
  55. PWD=<home>
  56. QT_ACCESSIBILITY=1
  57. QT_LOGGING_RULES=*.debug=false
  58. QT_PLATFORM_PLUGIN=lxqt
  59. QT_QPA_PLATFORMTHEME=lxqt
  60. SHELL=/bin/bash
  61. SSH_AGENT_PID=6074
  62. SSH_AUTH_SOCK=/tmp/ssh-ub0GkmhQHQU2/agent.6001
  63. TERM=qterminal
  64. TZ=:/etc/localtime
  65. USER=<user>
  66. XAUTHORITY=<home>/.Xauthority
  67. XDG_CACHE_HOME=<home>/.cache
  68. XDG_CONFIG_DIRS=/etc:/etc/xdg:/usr/share
  69. XDG_CONFIG_HOME=<home>/.config
  70. XDG_CURRENT_DESKTOP=LXQt
  71. XDG_DATA_DIRS=<home>/.local/share:/usr/local/share:/usr/share
  72. XDG_DATA_HOME=<home>/.local/share
  73. XDG_GREETER_DATA_DIR=/var/lib/lightdm/data/<user>
  74. XDG_MENU_PREFIX=lxqt-
  75. XDG_RUNTIME_DIR=/run/user/1000
  76. XDG_SEAT=seat0
  77. XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
  78. XDG_SESSION_CLASS=user
  79. XDG_SESSION_DESKTOP=lxqt
  80. XDG_SESSION_ID=2
  81. XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
  82. XDG_SESSION_TYPE=x11
  83. XDG_VTNR=7
  84.  
Online now: No Back to the top

Post

Posted
Rating:
#27
Regular
rj71 is in the usergroup ‘Regular’
 I have a 2nd Mac Mini that is a little newer and also running the movies/streaming app with the webview. Booting up now I'll report back with more info.
Online now: No Back to the top

Post

Posted
Rating:
#28
Regular
rj71 is in the usergroup ‘Regular’

rj71 said

I have a 2nd Mac Mini that is a little newer and also running the movies/streaming app with the webview. Booting up now I'll report back with more info.

I was starting to wonder if it's happening on only Apple machines…nope! This 2nd Mac mini has no black screen….webview works just fine.
This mac mini is a little newer…late 2014.
4 core i5
4 gig RAM
i did upgrade to gambas 3.20.4

I have no idea other than it's happening on Apple's with core duo processors. Maybe it's some other piece of hardware…I dunno. I really want to use the first gen mac mini…it's just been collecting dust for years before this I started this project. Maybe I need to look for some kind of work around for webview…*shrugs*
Online now: No Back to the top

Post

Posted
Rating:
#29
Avatar
Administrator
sholzy is in the usergroup ‘unknown’

rj71 said

I'll keep working on this and report back anything I might discover. Maybe what I find might be useful for your GambOS project for guys like me that love old Apple stuff.

That would be awesome if I could get GambOS running on my old Apple //e!   :lol:

sholzy
Gambas One Site Director

To report bugs in the Gambas IDE:
Official Gambas Bug Tracker
Online now: No Back to the top

Post

Posted
Rating:
#30
Regular
rj71 is in the usergroup ‘Regular’
I just now noticed this…the url loaded as the links appear to be clickable when I move the mouse over it. Strange.
Image

(Click to enlarge)

Online now: No Back to the top

Post

Posted
Rating:
#31
Regular
rj71 is in the usergroup ‘Regular’

sholzy said

rj71 said

I'll keep working on this and report back anything I might discover. Maybe what I find might be useful for your GambOS project for guys like me that love old Apple stuff.

That would be awesome if I could get GambOS running on my old Apple //e!   :lol:

 I have 2 really old G5 Power Macs….the ones with big gorgeous aluminum case. One is still sitting back in the server room, the other got disected for a frankenstein project that I mated with a very old IBM Thinkpad  :lol:  The only thing I could get to run on either was the Debian 7 ppc version. Some day I'm going to gut the other one and try to replace it with something modern that I can cram inside of it.
Online now: No Back to the top

Post

Posted
Rating:
#32
Avatar
Administrator
gbWilly is in the usergroup ‘unknown’
gbWilly leads the usergroup ‘GambOS Contributor’
gbWilly is in the usergroup ‘Blogger’
Neither gtk3 nor qt5 seem to be the problem, as both don't work.

I was wondering if gtk3.webview/qt5.webview isn't working, would qt5.webkit maybe work for showing web content?
The component will not be on Debian 13 as underlying libraries are no longer in Debian testing.

I made same application but now with qt5 webkit.
Attachment
Wanna try it?

gbWilly
- Gambas Dutch translator
- Gambas wiki content contributor
- Gambas debian/ubuntu package recipe contributor
- GambOS, a distro for learning Gambas and more…
- Gambas3 Debian/Ubuntu repositories


… there is always a Catch if things go wrong!
Online now: Yes Back to the top

Post

Posted
Rating:
#33
Avatar
Administrator
gbWilly is in the usergroup ‘unknown’
gbWilly leads the usergroup ‘GambOS Contributor’
gbWilly is in the usergroup ‘Blogger’

rj71 said

I just now noticed this…the url loaded as the links appear to be clickable when I move the mouse over it. Strange.
That is because all is working as should, except for the visibilty  ;)

gbWilly
- Gambas Dutch translator
- Gambas wiki content contributor
- Gambas debian/ubuntu package recipe contributor
- GambOS, a distro for learning Gambas and more…
- Gambas3 Debian/Ubuntu repositories


… there is always a Catch if things go wrong!
Online now: Yes Back to the top

Post

Posted
Rating:
#34
Regular
rj71 is in the usergroup ‘Regular’

gbWilly said

Neither gtk3 nor qt5 seem to be the problem, as both don't work.

I was wondering if gtk3.webview/qt5.webview isn't working, would qt5.webkit maybe work for showing web content?
The component will not be on Debian 13 as underlying libraries are no longer in Debian testing.

I made same application but now with qt5 webkit.
webkit.png
Wanna try it?

It works on the imac! But that won't be available in Debian 13??
Image

(Click to enlarge)

Online now: No Back to the top

Post

Posted
Rating:
#35
Avatar
Administrator
gbWilly is in the usergroup ‘unknown’
gbWilly leads the usergroup ‘GambOS Contributor’
gbWilly is in the usergroup ‘Blogger’

sholzy said

That would be awesome if I could get GambOS running on my old Apple //e!   :lol:
Well, better register as a contributor and get that iso downloaded and installed in an old Apple and see what happens and report on it in Contributor corner  :lol:
It might be that parts of Gambas are not 100% working (like webview) but it seems like most other stuff does, so you can give it some sort of second life.

gbWilly
- Gambas Dutch translator
- Gambas wiki content contributor
- Gambas debian/ubuntu package recipe contributor
- GambOS, a distro for learning Gambas and more…
- Gambas3 Debian/Ubuntu repositories


… there is always a Catch if things go wrong!
Online now: Yes Back to the top

Post

Posted
Rating:
#36
Avatar
Administrator
gbWilly is in the usergroup ‘unknown’
gbWilly leads the usergroup ‘GambOS Contributor’
gbWilly is in the usergroup ‘Blogger’

rj71 said

It works! But that won't be available in Debian 13??
webview is available for both gtk3 and qt

webkit is a qt only thing that has been around since qt4 and I used to do a lot with it.
It offers a lot more than webview, just compare them on wiki.

qt.webkit depends on libqt5webkit5.
As you can see here (https://packages.debian.org/bookworm/libqt5webkit5) it hasn't made it into testing, so it is impossible to even package it on Debian 13.
And if you look at the binaries list of current official debian gambas 3.20.1 in testing (https://tracker.debian.org/pkg/gambas3), at left side below, you will see NO qt5 but only qt6 and NO qt6.webkit, just qt6.webview component

Edit: There is also the gb.form.htmlview (https://gambaswiki.org/wiki/comp/gb.form.htmlview).
Never used it, but it says:
This class provides a lightweight HTML/CSS viewer
If it is just for showing content, that should do.

gbWilly
- Gambas Dutch translator
- Gambas wiki content contributor
- Gambas debian/ubuntu package recipe contributor
- GambOS, a distro for learning Gambas and more…
- Gambas3 Debian/Ubuntu repositories


… there is always a Catch if things go wrong!
Online now: Yes Back to the top

Post

Posted
Rating:
#37
Avatar
Administrator
sholzy is in the usergroup ‘unknown’

gbWilly said

sholzy said

That would be awesome if I could get GambOS running on my old Apple //e!   :lol:
Well, better register as a contributor and get that iso downloaded and installed in an old Apple and see what happens and report on it in Contributor corner  :lol:
It might be that parts of Gambas are not 100% working (like webview) but it seems like most other stuff does, so you can give it some sort of second life.

Unless you can create can create that .iso to fit on 1,600 5.25" install floppies, it's a no-go!  :lol:

sholzy
Gambas One Site Director

To report bugs in the Gambas IDE:
Official Gambas Bug Tracker
Online now: No Back to the top

Post

Posted
Rating:
#38
Regular
rj71 is in the usergroup ‘Regular’

gbWilly said

rj71 said

It works! But that won't be available in Debian 13??
webview is available for both gtk3 and qt

webkit is a qt only thing that has been around since qt4 and I used to do a lot with it.
It offers a lot more than webview, just compare them on wiki.

qt.webkit depends on libqt5webkit5.
As you can see here (https://packages.debian.org/bookworm/libqt5webkit5) it hasn't made it into testing, so it is impossible to even package it on Debian 13.
And if you look at the binaries list of current official debian gambas 3.20.1 in testing (https://tracker.debian.org/pkg/gambas3), at left side below, you will see NO qt5 but only qt6 and NO qt6.webkit, just qt6.webview component

Edit: There is also the gb.form.htmlview (https://gambaswiki.org/wiki/comp/gb.form.htmlview).
Never used it, but it says:
This class provides a lightweight HTML/CSS viewer
If it is just for showing content, that should do.

All I need is juist showing content of a URL so this would be ok. Looks like it's the same as webview: HtmlView1.URL = "url here"
I added a form to your project and add the component but I'm just getting a white screen. I'm just trying to see a forecast on openweather since they are now charging for using the api.
Image

(Click to enlarge)

Online now: No Back to the top

Post

Posted
Rating:
#39
Avatar
Administrator
gbWilly is in the usergroup ‘unknown’
gbWilly leads the usergroup ‘GambOS Contributor’
gbWilly is in the usergroup ‘Blogger’
All I need is juist showing content of a URL so this would be ok. Looks like it's the same as webview: HtmlView1.URL = "url here"
I added a form to your project and add the component but I'm just getting a white screen.
I have never used it before, so made a little test project.
The outcome is even worst on my system…
Attachment
Running Gambas 3.18.4. It seems to have a bug in form.htmlview

Project attached.

I'll test tomorrow on a vm with Gambas 3.20.3. I can't atm as I've 2 arm VM's running building the new Gambas 3.20.4. binaries.
That will take quite a while and I don't want to open an extra VM when this is ongoing, as this is enough load, 2 arm's running on amd64.

gbWilly
- Gambas Dutch translator
- Gambas wiki content contributor
- Gambas debian/ubuntu package recipe contributor
- GambOS, a distro for learning Gambas and more…
- Gambas3 Debian/Ubuntu repositories


… there is always a Catch if things go wrong!
Online now: Yes Back to the top

Post

Posted
Rating:
#40
Regular
rj71 is in the usergroup ‘Regular’

gbWilly said

All I need is juist showing content of a URL so this would be ok. Looks like it's the same as webview: HtmlView1.URL = "url here"
I added a form to your project and add the component but I'm just getting a white screen.
I have never used it before, so made a little test project.
The outcome is even worst on my system…
HtmlViewTest.png
Running Gambas 3.18.4. It seems to have a bug in form.htmlview

Project attached.

I'll test tomorrow on a vm with Gambas 3.20.3. I can't atm as I've 2 arm VM's running building the new Gambas 3.20.4. binaries.
That will take quite a while and I don't want to open an extra VM when this is ongoing, as this is enough load, 2 arm's running on amd64.

Same white screen where the HtmlView is and this is on the iMac which is now 3.20.4. Doesn't even look like the page loads. Tomorrow or in the next few days, I will just wipe the older first gen mac mini and do a fresh install of Debian 12 and then immediately use the opensuse repo to install gambas 3.20.4 and then see what happens with the webview. At this point, I'm really not expecting it to work though.
Online now: No Back to the top

Post

Posted
Rating:
#41
Avatar
Administrator
gbWilly is in the usergroup ‘unknown’
gbWilly leads the usergroup ‘GambOS Contributor’
gbWilly is in the usergroup ‘Blogger’

rj71 said

Same white screen where the HtmlView is and this is on the iMac which is now 3.20.4.
I think it's a bug. Maybe someone else could give gb.form.htmlview a try on a running Gambas 3.20.4 or master version from OSB
You can use last posted source archive from a few posts back.

gbWilly
- Gambas Dutch translator
- Gambas wiki content contributor
- Gambas debian/ubuntu package recipe contributor
- GambOS, a distro for learning Gambas and more…
- Gambas3 Debian/Ubuntu repositories


… there is always a Catch if things go wrong!
Online now: Yes Back to the top

Post

Posted
Rating:
#42
Regular
rj71 is in the usergroup ‘Regular’

gbWilly said

rj71 said

Same white screen where the HtmlView is and this is on the iMac which is now 3.20.4.
I think it's a bug. Maybe someone else could give gb.form.htmlview a try on a running Gambas 3.20.4 or master version from OSB
You can use last posted source archive from a few posts back.
I can try it on the Dell optiplex tomorrow. I'm done for the day.
Online now: No Back to the top

Post

Posted
Rating:
#43
Regular
rj71 is in the usergroup ‘Regular’

rj71 said

gbWilly said

rj71 said

Same white screen where the HtmlView is and this is on the iMac which is now 3.20.4.
I think it's a bug. Maybe someone else could give gb.form.htmlview a try on a running Gambas 3.20.4 or master version from OSB
You can use last posted source archive from a few posts back.
I can try it on the Dell optiplex tomorrow. I'm done for the day.

The 4 core i3 Dell Optiplex: white screen for the HtmlView. That Optiplex is running Gambas 3.20.4 from the opensuse repo.
Online now: No Back to the top

Post

Posted
Rating:
#44
Avatar
Administrator
gbWilly is in the usergroup ‘unknown’
gbWilly leads the usergroup ‘GambOS Contributor’
gbWilly is in the usergroup ‘Blogger’

rj71 said

The 4 core i3 Dell Optiplex: white screen for the HtmlView. That Optiplex is running Gambas 3.20.4 from the opensuse repo.
I've tried it in a VM with debian 12 mate and gambas master from 25th of April. Same here, it seems form.htmlview is not doing it's job well.
Can anyone check this on another distro maybe?

gbWilly
- Gambas Dutch translator
- Gambas wiki content contributor
- Gambas debian/ubuntu package recipe contributor
- GambOS, a distro for learning Gambas and more…
- Gambas3 Debian/Ubuntu repositories


… there is always a Catch if things go wrong!
Online now: Yes Back to the top

Post

Posted
Rating:
#45
Regular
rj71 is in the usergroup ‘Regular’

gbWilly said

rj71 said

The 4 core i3 Dell Optiplex: white screen for the HtmlView. That Optiplex is running Gambas 3.20.4 from the opensuse repo.
I've tried it in a VM with debian 12 mate and gambas master from 25th of April. Same here, it seems form.htmlview is not doing it's job well.
Can anyone check this on another distro maybe?

One of my old macbooks (2014 ish) Ubuntu 22/Gambas 3.19.5 - white screen where htmlview should be. Htmlview does appear to be broken unless we're using it the wrong way….?
Online now: No Back to the top

Post

Posted
Rating:
#46
Regular
rj71 is in the usergroup ‘Regular’
 While I have the 2014 macbook on, I tested gtk3 webview. Works fine, no black screen and I can see the web page. It's sure seems to be something about the older Apple's circa 2008 to 2010 ish. I have one more older macbook, a 2012ish I believe. It has Ubuntu 22 I think…will install gambas and see what happens with gtk3 webview. It might be a few hours before I get to it though.
Online now: No Back to the top

Post

Posted
Rating:
#47
Avatar
Administrator
gbWilly is in the usergroup ‘unknown’
gbWilly leads the usergroup ‘GambOS Contributor’
gbWilly is in the usergroup ‘Blogger’

rj71 said

Htmlview does appear to be broken unless we're using it the wrong way….?
What can go wrong?

Image

gambas wiki htmlview.url

gambas wiki htmlview.url

(Click to enlarge)


gbWilly
- Gambas Dutch translator
- Gambas wiki content contributor
- Gambas debian/ubuntu package recipe contributor
- GambOS, a distro for learning Gambas and more…
- Gambas3 Debian/Ubuntu repositories


… there is always a Catch if things go wrong!
Online now: Yes Back to the top

Post

Posted
Rating:
#48
Avatar
Administrator
gbWilly is in the usergroup ‘unknown’
gbWilly leads the usergroup ‘GambOS Contributor’
gbWilly is in the usergroup ‘Blogger’

rj71 said

While I have the 2014 macbook on, I tested gtk3 webview. Works fine, no black screen and I can see the web page. It's sure seems to be something about the older Apple's circa 2008 to 2010 ish.
It certainly seems like that.

gbWilly
- Gambas Dutch translator
- Gambas wiki content contributor
- Gambas debian/ubuntu package recipe contributor
- GambOS, a distro for learning Gambas and more…
- Gambas3 Debian/Ubuntu repositories


… there is always a Catch if things go wrong!
Online now: Yes Back to the top

Post

Posted
Rating:
#49
Regular
rj71 is in the usergroup ‘Regular’

gbWilly said

rj71 said

Htmlview does appear to be broken unless we're using it the wrong way….?
What can go wrong?

 :lol: *shrugs*
Online now: No Back to the top

Post

Posted
Rating:
#50
Regular
rj71 is in the usergroup ‘Regular’
 I'm having some issues testing the older Macbook Pro. It also has Ubuntu 22 but when I installed Gambas it gave me version 3.16. My other macbook had 3.19 but was also Ubuntu 22. I didn't use any special repo on the newer macbook that I can recall. I cannot get 3.20 installed with the opensuse repo…keep getting unmet dependencies errors. So can't test HtmlView since it's not in 3.16 but I did test gtk3 webview and it's ok as well…no black screen and I can view the web page. I actually use this old macbook for vm testing so I'm going to build an Ubuntu 24 VM and test Htmlview and webview on that. Will report back later.
Online now: No Back to the top
1 guest and 0 members have just viewed this.