TOR Browser issue

Hello All,

Just installed www/tor-browser -
Code:
====> Compressing man pages (compress-man)
===>  Installing for tor-browser-13.5.a9_2
===>  Checking if tor-browser is already installed
===>   Registering installation for tor-browser-13.5.a9_2
Installing tor-browser-13.5.a9_2...
==> Running trigger: desktop-file-utils.ucl
Building cache database of MIME types
===>  Cleaning for tor-0.4.8.12
===>  Cleaning for obfs4proxy-tor-0.0.14_17
===>  Cleaning for tor-browser-13.5.a9_2

No errors, it starts without complaints. But browsing web results in a tiny rectangular area just in the middle of the window. Any ideas? What is this and how to fix?

Screenshot at 2024-09-07 11-04-39.png
 
Tor browser has a "letterboxing" feature. Maybe this is an issue with it. Perhaps it's interfering with the DE or WM.

Try another DE or WM. If it fails there as well, try setting the feature to "false" in about:config temporary.
This did not help. Tried both with MATE and KDE with the same results. Also disabling this letterboxing did not help. Only the small rectangle moved to the top of the page, with this enabled, the rectangle is in the center.
 
I see you've installed from ports. Did you made changes to the configuration options?

No problem here, installed from package, "latest" repository.

Dependencies version:
Code:
% pkg info -d tor-browser
tor-browser-13.5.a9_2:
    pixman-0.42.2
    libxcb-1.17.0
    libXtst-1.2.4
    libXrender-0.9.11
    libXrandr-1.5.4
    libXfixes-6.0.1
    libXext-1.3.6,1
    libXdamage-1.1.6
    libXcomposite-0.4.6_1,1
    libX11-1.8.9,1
    pango-1.52.2_1
    libXt-1.3.0,1
    gtk3-3.24.43
    fontconfig-2.15.0_3,1
    tor-0.4.8.12
    obfs4proxy-tor-0.0.14_17
    nss-3.103
    harfbuzz-9.0.0
    freetype2-2.13.2
    libvpx-1.14.1
    ffmpeg-6.1.2,1
    dav1d-1.4.3_1
    aom-3.9.1
    python311-3.11.9_1
    perl5-5.36.3_2
    webp-1.4.0_1
    png-1.6.43
    libglvnd-1.7.0
    libdrm-2.4.122,1
    jpeg-turbo-3.0.3
    graphite2-1.3.14
    gdk-pixbuf2-2.42.10_3
    cairo-1.17.4_2,3
    nspr-4.35
    libpci-3.13.0
    libffi-3.4.6
    libevent-2.1.12
    libepoll-shim-0.0.20240608
    icu-74.2_1,1
    glib-2.80.4,2
    gettext-runtime-0.22.5
    desktop-file-utils-0.27
    dbus-glib-0.112_1
    dbus-1.14.10_5,1
    at-spi2-core-2.52.0

tor-browser.png
 
I see you've installed from ports. Did you made changes to the configuration options?
No.

And it is based on Firefox, which is working perfectly, also compiled from ports.

And also the start-up view seems to be OK. Just starting to brows other websites, it turns to this small rectangle/

Screenshot at 2024-09-07 20-00-13.png
 

Attachments

  • Screenshot at 2024-09-07 20-00-13.png
    Screenshot at 2024-09-07 20-00-13.png
    92.6 KB · Views: 33
Last edited:
1726190342751.pngSimilarly broken for me. Please make a bug report.

Code:
% pkg iinfo www/tor
tor-browser-13.5.a9_2
% freebsd-version -kru ; uname -aKU ; pkg -vv | grep -B 1 -e url -e priority
15.0-CURRENT
15.0-CURRENT
15.0-CURRENT
FreeBSD mowa219-gjp4-zbook-freebsd 15.0-CURRENT FreeBSD 15.0-CURRENT main-n272200-299175f2e52e GENERIC-NODEBUG amd64 1500023 1500023
  FreeBSD-ports: {
    url             : "pkg+https://pkg.freebsd.org/FreeBSD:15:amd64/latest",
    enabled         : yes,
    priority        : 2,
--
  FreeBSD-base: {
    url             : "pkg+https://pkg.freebsd.org/FreeBSD:15:amd64/base_latest",
    enabled         : yes,
    priority        : 0,
--
  aninstaller: {
    url             : "file:////media/aninstaller/packages/FreeBSD:14:amd64",
    enabled         : no,
    priority        : 0
--
  local-poudriere: {
    url             : "file:///usr/local/poudriere/data/packages/main-default",
    enabled         : yes,
    priority        : 3
%

Code:
% pkg info -A www/tor-browser
tor-browser-13.5.a9_2:
        FreeBSD_version: 1500023
        build_timestamp: 2024-08-28T23:32:27+0000
        built_by       : poudriere-git-3.4.2
        cpe            : cpe:2.3:a:mozilla:tor-browser:13.5.a9:::::freebsd15:x64:2
        no_provide_shlib: yes
        port_checkout_unclean: no
        port_git_hash  : 7a55f954253
        ports_top_checkout_unclean: no
        ports_top_git_hash: 15d22e1c70d
        repo_type      : binary
        repository     : FreeBSD-ports
%

Code:
% pkg info -d tor-browser
tor-browser-13.5.a9_2:
        pixman-0.42.2
        libxcb-1.17.0
        libXtst-1.2.4
        libXrender-0.9.11
        libXrandr-1.5.4
        libXfixes-6.0.1
        libXext-1.3.6,1
        libXdamage-1.1.6
        libXcomposite-0.4.6_1,1
        libX11-1.8.9,1
        pango-1.52.2_1
        libXt-1.3.0,1
        gtk3-3.24.43
        fontconfig-2.15.0_3,1
        tor-0.4.8.12
        obfs4proxy-tor-0.0.14_17
        nss-3.103
        harfbuzz-9.0.0
        freetype2-2.13.2
        libvpx-1.14.1
        ffmpeg-6.1.2,1
        dav1d-1.4.3_1
        aom-3.10.0
        python311-3.11.9_1
        perl5-5.36.3_2
        webp-1.4.0_1
        png-1.6.43
        libglvnd-1.7.0
        libdrm-2.4.123,1
        jpeg-turbo-3.0.3
        graphite2-1.3.14
        gdk-pixbuf2-2.42.10_3
        cairo-1.17.4_2,3
        nspr-4.35
        libpci-3.13.0
        libffi-3.4.6
        libevent-2.1.12
        libepoll-shim-0.0.20240608
        icu-74.2_1,1
        glib-2.80.5,2
        gettext-runtime-0.22.5
        desktop-file-utils-0.27
        dbus-glib-0.112_1
        dbus-1.14.10_5,1
        at-spi2-core-2.52.0
%
 
Argentum: latest is inferred from 13.5.a9_2.

Troubleshooting mode is not a workaround.

Code:
% tor-browser --safe-mode https://www.freebsd.org/
Gtk-Message: 01:33:57.497: Failed to load module "appmenu-gtk-module": 'gtk_module_display_init': Undefined symbol "gtk_module_display_init"
%

… No problem here, installed from package, "latest" repository. …

1726191490385.pngWhich version of FreeBSD, exactly?

freebsd-version -kru ; uname -aKU

Argentum: the same question.
 
Which version of FreeBSD, exactly?

freebsd-version -kru ; uname -aKU
Code:
root@Testsystem ~# freebsd-version -kru ; uname -aKU
14.1-RELEASE-p3
14.1-RELEASE-p3
14.1-RELEASE-p3
FreeBSD Testsystem 14.1-RELEASE-p3 FreeBSD 14.1-RELEASE-p3 1a207e5cd RHODIUM3 amd64 1401000 1401000

I think this does not help here. Also, I did recursive recompile of the whole thing with its dependencies. It is still the same - little rectangle in the middle of the screen. At the same time www/firefox builds and works without problems.
 
Same problem here. It started when the port went to 13.5.0. I suspect it has something to do with the FF-ESR version it uses. The current port uses FF-ESR 115 so that's is kinda old.
Best is probably wait for an upgrade first.
 
Same problem here. It started when the port went to 13.5.0. I suspect it has something to do with the FF-ESR version it uses. The current port uses FF-ESR 115 so that's is kinda old.
Best is probably wait for an upgrade first.
It seems that other users (You) are experiencing the same issue with Tor-Browser, which suggests that this is likely an upstream bug. I have installed the latest version from source, tor-browser-13.5.a9_3, but the issue persists. Probably this is a good time to file a bug report.
 
I wonder if Wayland or Xorg is involved? If Wayland, it could be Firefox defaulting to it vs Tor not, or Tor not working with it properly. There's an env for Firefox I imagine would work for Tor too.

Maybe something with WebRenderer too and/or the graphics driver? I'd check about:support on both Firefox and Tor under the graphics sections.

Another idea is system-wide DPI; on Xfce Xorg it was like 96 global, but I unchecked it and fonts everywhere changed a bit; maybe Tor is reacting to hard-coded DPI
 
I've seen the same issue but figured I modified a configuration. I tried moving my old config aside without change but wasn't sure I had done it correctly. I didn't keep good notes of when it was working vs broke. My box is even less useful as it displays scroll bars within it; I like scroll bars but in this one case I don't have the screen space to waste on them.

As a heads up, my install of tor-browser hasn't ever included addons as originally setup for other operating systems; this can impact threat exposure (malicious scripts have been found on pages and would have been blocked by default, though that is true on the rest of the web) and addon differences further change fingerprinting (I'd recommend a machine or VM with Linux or Windows to run tor browser if that is a concern). I know it increases fingerprinting but I usually replace noscript script blocking with ublock origin + advanced user setting.
 
And also the star-up view seems to be OK. Just starting to brows other websites, it turns to this small rectangle/
The start-up page is the built-in Tor browser homepage, not actually duckduckgo's homepage (note, there is no URL in the address bar).

Which version of FreeBSD, exactly?
Same as Argentum, 14.1-RELEASE-p3.

I suspected a regression in one of the dependencies. That's why I put them in post # 4. A diff shows these dependencies between post # 4 and # 6.
Rich (BB code):
24c24
<     aom-3.10.0
---
>     aom-3.9.1
30c30
<     libdrm-2.4.123,1
---
>     libdrm-2.4.122,1
41c41
<     glib-2.80.5,2
---
>     glib-2.80.4,2

Unfortunately an upgrade of them doesn't change the outcome. I am unable to reproduce the issue, tor-browser still works fine on my system.
 
I upgraded a new boot environment to 13.5.a9_3 (lang/rust: Bump revisions after 1.81.0).

Tested (below) without booting the environment, no improvement. I'll boot the environment then retry.

Code:
% pkg iinfo tor-browser
tor-browser-13.5.a9_2
% sudo bectl mount 1500023-065-base-ports
grahamperrin's password:
/tmp/be_mount.U6Sq
% chroot /tmp/be_mount.U6Sq pkg iinfo tor-browser
chroot: /tmp/be_mount.U6Sq: Operation not permitted
% su -
Password:
root@mowa219-gjp4-zbook-freebsd:~ # chroot /tmp/be_mount.U6Sq pkg iinfo tor-browser
tor-browser-13.5.a9_3
root@mowa219-gjp4-zbook-freebsd:~ # exit
logout
% which tor-browser
/usr/local/bin/tor-browser
% /tmp/be_mount.U6Sq/usr/local/bin/tor-browser
Gtk-Message: 16:14:08.235: Failed to load module "appmenu-gtk-module": 'gtk_module_display_init': Undefined symbol "gtk_module_display_init"
% sudo bectl umount 1500023-065-base-ports
% bectl list -c creation | tail -n 6
1500023-060-base          -      -          2.79G 2024-09-12 07:22
1500023-061-base          -      -          40.7M 2024-09-12 17:44
1500023-062-ports         -      -          87.9M 2024-09-12 18:17
1500023-063-base          -      -          2.79G 2024-09-13 05:14
1500023-064-base          NR     /          365G  2024-09-13 18:19
1500023-065-base-ports    T      -          4.70G 2024-09-14 12:46
% exit
 
I upgraded a new boot environment to 13.5.a9_3 (lang/rust: Bump revisions after 1.81.0).

Tested (below) without booting the environment, no improvement. I'll boot the environment then retry.
Trying to compile on another independent machine. If it still has the same issue, then creating a bug report is a good idea.
 
I'll boot the environment then retry.

No improvement. The same issue with 13.5.a9_3.

First and second runs:

Code:
% tor-browser https://www.freebsd.org/
Gtk-Message: 16:47:29.567: Failed to load module "appmenu-gtk-module": 'gtk_module_display_init': Undefined symbol "gtk_module_display_init"
Crash Annotation GraphicsCriticalError: |[0][GFX1-]: ManageChildProcess(glxtest): poll failed: No error: 0
 (t=9.77905) [GFX1-]: ManageChildProcess(glxtest): poll failed: No error: 0

Crash Annotation GraphicsCriticalError: |[0][GFX1-]: ManageChildProcess(glxtest): poll failed: No error: 0
 (t=9.77905) |[1][GFX1-]: glxtest: ManageChildProcess failed
 (t=9.77918) [GFX1-]: glxtest: ManageChildProcess failed

Crash Annotation GraphicsCriticalError: |[0][GFX1-]: ManageChildProcess(glxtest): poll failed: No error: 0
 (t=9.77905) |[1][GFX1-]: glxtest: ManageChildProcess failed
 (t=9.77918) |[2][GFX1-]: No GPUs detected via PCI
 (t=9.77922) [GFX1-]: No GPUs detected via PCI

% pkg iinfo tor-browser
tor-browser-13.5.a9_3
% tor-browser https://www.freebsd.org/
Gtk-Message: 16:49:34.141: Failed to load module "appmenu-gtk-module": 'gtk_module_display_init': Undefined symbol "gtk_module_display_init"
% uname -aKU
FreeBSD mowa219-gjp4-zbook-freebsd 15.0-CURRENT FreeBSD 15.0-CURRENT main-n272228-afd096326aad GENERIC-NODEBUG amd64 1500023 1500023
%
 
Thanks. Please change the summary line to:

www/tor-browser: output in small rectangle only

(A suitable prefix, which you'll get automatically if reporting via FreshPorts, will automatically request feedback from the maintainer.)
 

I assume that you use packages from latest.

I can't guess which version of FreeBSD you use.

I see that you used AMD64 in 2018.

If you now use FreeBSD 14 or 15 on AMD64, with latest, try this downgrade to Tor Browser from quarterly:

pkg delete -y tor-browser && env ABI=freebsd:14:amd64 IGNORE_OSVERSION=yes pkg add https://pkg.freebsd.org/FreeBSD:14:amd64/quarterly/All/tor-browser-13.5.a9_1.pkg

If there's a recommendation to run pkg bootstrap -f: ignore the recommendation.
 
I'm using ports on 13.4-STABLE.
But as I said the current port is older and uses an older version of FF-ESR.
The port of Tor-browser should be updated first to see if the problem still exists.
 
Users of 13.3 and 13.4 who have a non-working installation from latest can try:

env ABI=freebsd:14:amd64 IGNORE_OSVERSION=yes pkg add --force https://pkg.freebsd.org/FreeBSD:14:amd64/quarterly/All/tor-browser-13.5.a9_1.pkg
 
Last edited:
Back
Top