Hard crash on URLConnection

Debian 12 and Xojo 2025R2. Seems to only be on Linux console apps. Works fine on Linux desktop. All I’m doing is a SendSync to load https://google.com

./libmodman/module_manager.hpp:58: std::vector<T*> libmodman::module_manager::get_extensions() const [with T = libproxy::network_extension]: Assertion `obj != NULL' failed.
Aborted

I can’t deploy my web app due to this. Anyone seen this before?

I’ve tracked it down to an incompatibility with recent Xojo versions and the networkmanager plugin for libproxy.

sudo apt remove libproxy1-plugin-networkmanager

fixes the crash.

Going back to Xojo 2024R1 also works but I need the newer framework.

@Tim_Parnell sorry to ping you but I know you use Debian 12 and recommend it.
Are you using 2025r2 and seeing this problem?
Looks like another user is having the same problem:

I haven’t seen this, but none of my usage involves libproxy.

1 Like

FWIW, this crash happened on a brand new, stock installation of Debian 12.11 running in Hyper-V.

The only code in the Xojo app is:

Function Run(args() as String) Handles Run as Integer
  Try
    var u as new URLConnection
    var s as string = u.SendSync("GET", "https://google.com", 10)
    Stdout.WriteLine s
  Catch e as RuntimeException
    System.DebugLog "exception: " + e.Message
    Stdout.WriteLine "exception: " + e.Message
  end try
End Function

The crash is in the framework so your Try block doesn’t even have the opportunity to catch it.

I ended up switching to Ubuntu and that issue and a few of my others magically went away too.

Given that it was a stock Debian 12.11 install I’m surprised there aren’t more reports of this. But in case anyone else encounters it, using the aforementioned command will resolve it, so long as you don’t actually need the libproxy1-plugin-networkmanager for something else.