From renari at arimil.com Thu Mar 20 20:44:04 2025 From: renari at arimil.com (Arimil) Date: Thu, 20 Mar 2025 16:44:04 -0400 Subject: Looking for some advice on building a flatpak Message-ID: I'm trying to create an addon flatpak for the obs teleport plugin, after reading through docs and trying various things I've gotten this far. id: com.obsproject.Studio.Plugin.Teleport branch: stable runtime: com.obsproject.Studio runtime-version: stable sdk: org.freedesktop.Sdk//24.08 sdk-extensions: - org.freedesktop.Sdk.Extension.golang build-extension: true separate-locales: false appstream-compose: false build-options: prefix: /app/plugins/Teleport libdir: lib/obs-plugins append-path: /usr/lib/sdk/golang/bin modules: - name: obs-teleport buildsystem: simple build-options: build-args: - --share=network env: - GOBIN=/app/bin - GOPATH=/run/build/obs-teleport/go build-commands: - go mod vendor - go build -mod=vendor -ldflags "-compressdwarf=false -linkmode external -X main.version=0.7.4" -v -o "${FLATPAK_DEST}/lib/obs-plugins/obs-teleport.so" . sources: - type: git url: https://github.com/fzwoch/obs-teleport.git tag: 0.7.4 commit: 3e012bdcde3c8609cc89f1ede6225e30c89451ab x-checker-data: type: git tag-pattern: ^([\d.]+) - type: file path: com.obsproject.Studio.Plugin.Teleport.metainfo.xml This is good enough to get the build started but I have some concerns, I notice that every other OBS plugin is using sdk org.kde.Sdk//6.6 (which is the same SDK the OBS main package uses). I switched this over to org.freedesktop.Sdk//24.08 because the plugin is written in go and freedesktop ships a golang extension. Are there any problems with doing this? I've also hit a snag after that and I'm not sure why, but currently the project fails to build due to the obs headers missing, but I don't see anything in any other OBS plugin doing something special to obtain these, I originally thought that's what setting the runtime was doing, however that appears to not be the case. -------------- next part -------------- An HTML attachment was scrubbed... URL: From csh at bluehome.net Sun Mar 23 20:07:26 2025 From: csh at bluehome.net (Caleb Herbert) Date: Sun, 23 Mar 2025 15:07:26 -0500 Subject: X Window System error on Trisquel (Ubuntu 22.04 LTS) Message-ID: Hi Flatpak, I'm having trouble running some Flatpak apps on Trisquel 11 (Ubuntu 22.04 LTS) and have not been able to find a solution by searching online for the error message. The error: caleb at hermes:~$ flatpak run org.gnome.Builder (gnome-builder:2): Gdk-WARNING **: 14:59:14.270: The program 'gnome-builder' received an X Window System error. This probably reflects a bug in the program. The error was 'BadRegion (invalid Region parameter)'. (Details: serial 915 error_code 140 request_code 138 (XFIXES) minor_code 11) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the GDK_SYNCHRONIZE environment variable to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.) caleb at hermes:~$ Apps that run fine: * Signal * Zoom * Dino * Impression * Popsicle * FreeTube -- Caleb Herbert https://calebh.top/ From mike at mterry.name Mon Mar 24 11:50:50 2025 From: mike at mterry.name (Michael Terry) Date: Mon, 24 Mar 2025 07:50:50 -0400 Subject: X Window System error on Trisquel (Ubuntu 22.04 LTS) In-Reply-To: References: Message-ID: <242edcc9-6c6b-4242-8466-1684b71a13f9@app.fastmail.com> I was just looking into this error too (on Fedora 41 for me). It goes away if I used GSK_RENDERER=ngl instead of vulkan, or I rebuild my GNOME app with org.gnome.Sdk//47 instead of 48, or just switch to Wayland. Some bug in gtk 4.18 maybe? On Sun, Mar 23, 2025, at 16:07, Caleb Herbert wrote: > Hi Flatpak, > > I'm having trouble running some Flatpak apps on Trisquel 11 (Ubuntu > 22.04 LTS) and have not been able to find a solution by searching online > for the error message. > > The error: > > caleb at hermes:~$ flatpak run org.gnome.Builder > > (gnome-builder:2): Gdk-WARNING **: 14:59:14.270: The program > 'gnome-builder' received an X Window System error. > This probably reflects a bug in the program. > The error was 'BadRegion (invalid Region parameter)'. > (Details: serial 915 error_code 140 request_code 138 (XFIXES) > minor_code 11) > (Note to programmers: normally, X errors are reported asynchronously; > that is, you will receive the error a while after causing it. > To debug your program, run it with the GDK_SYNCHRONIZE environment > variable to change this behavior. You can then get a meaningful > backtrace from your debugger if you break on the gdk_x_error() > function.) > caleb at hermes:~$ > > Apps that run fine: > > * Signal > * Zoom > * Dino > * Impression > * Popsicle > * FreeTube > > -- > Caleb Herbert > https://calebh.top/ From christian at hergert.me Mon Mar 24 17:18:07 2025 From: christian at hergert.me (Christian Hergert) Date: Mon, 24 Mar 2025 10:18:07 -0700 Subject: X Window System error on Trisquel (Ubuntu 22.04 LTS) In-Reply-To: References: Message-ID: <4fb608ae-40d1-4049-8c74-c67cfa4ac7b7@hergert.me> On 3/23/25 13:07, Caleb Herbert wrote: > > > caleb at hermes:~$ flatpak run org.gnome.Builder > > (gnome-builder:2): Gdk-WARNING **: 14:59:14.270: The program 'gnome- > builder' received an X Window System error. > This probably reflects a bug in the program. > The error was 'BadRegion (invalid Region parameter)'. > ? (Details: serial 915 error_code 140 request_code 138 (XFIXES) > minor_code 11) > ? (Note to programmers: normally, X errors are reported asynchronously; > ?? that is, you will receive the error a while after causing it. > ?? To debug your program, run it with the GDK_SYNCHRONIZE environment > ?? variable to change this behavior. You can then get a meaningful > ?? backtrace from your debugger if you break on the gdk_x_error() > function.) Did you try running with the suggestion from GDK above? It should help you get a stack trace at the part of the GTK/GDK interans that are breaking on Xorg/X11. flatpak run --env=GDK_SYNCHRONIZE=1 --command=bash org.gnome.Builder bash$ gdb gnome-builder gdb) break gdk_x_error gdb) run .... crash gdb) thread apply all backtrace -- Christian From ebassi at gmail.com Mon Mar 24 17:36:02 2025 From: ebassi at gmail.com (Emmanuele Bassi) Date: Mon, 24 Mar 2025 17:36:02 +0000 Subject: X Window System error on Trisquel (Ubuntu 22.04 LTS) In-Reply-To: <242edcc9-6c6b-4242-8466-1684b71a13f9@app.fastmail.com> References: <242edcc9-6c6b-4242-8466-1684b71a13f9@app.fastmail.com> Message-ID: It's a bug in Mesa: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12628 GTK 4.18 switched to use Vulkan on X11. You can disable it with: flatpak run --env=GDK_DISABLE=vulkan org.gnome.Builder Ciao, Emmanuele. On Mon, 24 Mar 2025 at 12:18, Michael Terry wrote: > I was just looking into this error too (on Fedora 41 for me). > > It goes away if I used GSK_RENDERER=ngl instead of vulkan, or I rebuild my > GNOME app with org.gnome.Sdk//47 instead of 48, or just switch to Wayland. > > Some bug in gtk 4.18 maybe? > > > On Sun, Mar 23, 2025, at 16:07, Caleb Herbert wrote: > > Hi Flatpak, > > > > I'm having trouble running some Flatpak apps on Trisquel 11 (Ubuntu > > 22.04 LTS) and have not been able to find a solution by searching online > > for the error message. > > > > The error: > > > > caleb at hermes:~$ flatpak run org.gnome.Builder > > > > (gnome-builder:2): Gdk-WARNING **: 14:59:14.270: The program > > 'gnome-builder' received an X Window System error. > > This probably reflects a bug in the program. > > The error was 'BadRegion (invalid Region parameter)'. > > (Details: serial 915 error_code 140 request_code 138 (XFIXES) > > minor_code 11) > > (Note to programmers: normally, X errors are reported asynchronously; > > that is, you will receive the error a while after causing it. > > To debug your program, run it with the GDK_SYNCHRONIZE environment > > variable to change this behavior. You can then get a meaningful > > backtrace from your debugger if you break on the gdk_x_error() > > function.) > > caleb at hermes:~$ > > > > Apps that run fine: > > > > * Signal > > * Zoom > > * Dino > > * Impression > > * Popsicle > > * FreeTube > > > > -- > > Caleb Herbert > > https://calebh.top/ > -- https://www.bassi.io [@] ebassi [@gmail.com] -------------- next part -------------- An HTML attachment was scrubbed... URL: