Forums - Gtk Exception in ubuntu

3 posts / 0 new
Last post
Gtk Exception in ubuntu
Join Date: 13 Feb 23
Posts: 1
Posted: Wed, 2023-02-15 22:39

When I start profiler by run script ./ in ubuntu 20.04

the profiler window will show, when start a session and connect Andoid devices, it print:

Exception in Gtk# callback delegate
  Note: Applications can use GLib.ExceptionManager.UnhandledException to handle the exception.
System.MissingMethodException: Method not found: bool Gtk.TreeIter.Equals(Gtk.TreeIter)
  at Gtk.Application+InvokeCB.Invoke () [0x00000] in <91487213bf394f4aaf87012594abed2f>:0
  at GLib.Timeout+TimeoutProxy.Handler (System.IntPtr data) [0x0003c] in <918680a31aa84cb89cfa7cab56ea29b8>:0
  at GLib.ExceptionManager.RaiseUnhandledException (System.Exception e, System.Boolean is_terminal) [0x00000] in <918680a31aa84cb89cfa7cab56ea29b8>:0
  at GLib.Timeout+TimeoutProxy.Handler (System.IntPtr data) [0x00000] in <918680a31aa84cb89cfa7cab56ea29b8>:0
  at Gtk.Application.gtk_main () [0x00000] in <91487213bf394f4aaf87012594abed2f>:0
  at Gtk.Application.Run () [0x00000] in <91487213bf394f4aaf87012594abed2f>:0
  at Sdp.MainClass.Main (System.String[] args) [0x00000] in <bbf0a6a698f94d70963f8451769f5203>:0

in the terminal. And a few seconds later, ubuntu show "SnapdragonProfiler" is not responding.

  • Up0
  • Down0
Join Date: 7 Nov 22
Posts: 1
Posted: Tue, 2023-03-07 07:37

Hi @yulisuo1990

I had the same issue when trying to run SnapdragonProfiler. What solved it for me was installing the correct version of GTK by installing it after Mono. ie. after following the setup commands in the README execute

sudo apt install mono-devel
sudo apt install gtk-sharp2

This worked for me on both Ubuntu 22.04 and 18.04 but I did not try for 20.04. Hope that helps.

  • Up0
  • Down0
Join Date: 12 Mar 23
Posts: 2
Posted: Sun, 2023-03-12 09:51

I encountered the same error after installing "mono-devel". But I got it fixed by re-install "mono-complete"

sudo apt install mono-complete
  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.