monodoc docbrowser is broken on modern distros

Created on 10 May 2018  路  4Comments  路  Source: mono/mono

Steps to Reproduce

  1. Install monodoc package from stable Ubuntu 18.04 repo
  2. Run monodoc (docbrowser)

Current Behavior

Monodoc docbrowser crashes and outputs a stack trace to the terminal.

Expected Behavior

A functioning documentation browser.

This is because there is effectively no HTML engine packaged by modern distros for GTK2. I have a WIP PR to port Monodoc to GTK3 so it can use WebKit 2 in mono/mono-tools#50.

On which platforms did you notice this

[ ] macOS
[X] Linux
[ ] Windows

Version Used:

$ monodoc --about
Mono Documentation Browser
4.2.0.0
$ mono --version
Mono JIT compiler version 5.12.0.226 (tarball Thu May  3 09:42:09 UTC 2018)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
    TLS:           __thread
    SIGSEGV:       altstack
    Notifications: epoll
    Architecture:  amd64
    Disabled:      none
    Misc:          softdebug 
    Interpreter:   yes
    LLVM:          supported, not enabled.
    GC:            sgen (concurrent by default)

Stacktrace

$ monodoc
Gtk-Message: 13:32:13.210: Failed to load module "canberra-gtk-module"
libgluezilla not found. To have webbrowser support, you need libgluezilla installed
libgluezilla not found. To have webbrowser support, you need libgluezilla installed

Unhandled Exception:
System.Exception: Couldn't find html renderer!
  at Monodoc.Tab..ctor (Monodoc.Browser br) [0x000b8] in <b4da4098e0624d6597039c51bfefde8c>:0 
  at Monodoc.Browser.AddTab () [0x00001] in <b4da4098e0624d6597039c51bfefde8c>:0 
  at Monodoc.Browser..ctor (System.String basedir, System.Collections.Generic.IEnumerable`1[T] sources, System.String engine) [0x001fa] in <b4da4098e0624d6597039c51bfefde8c>:0 
  at Monodoc.Driver.Main (System.String[] args) [0x0029f] in <b4da4098e0624d6597039c51bfefde8c>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.Exception: Couldn't find html renderer!
  at Monodoc.Tab..ctor (Monodoc.Browser br) [0x000b8] in <b4da4098e0624d6597039c51bfefde8c>:0 
  at Monodoc.Browser.AddTab () [0x00001] in <b4da4098e0624d6597039c51bfefde8c>:0 
  at Monodoc.Browser..ctor (System.String basedir, System.Collections.Generic.IEnumerable`1[T] sources, System.String engine) [0x001fa] in <b4da4098e0624d6597039c51bfefde8c>:0 
  at Monodoc.Driver.Main (System.String[] args) [0x0029f] in <b4da4098e0624d6597039c51bfefde8c>:0 
area-Packaging os-linux

Most helpful comment

see: mono/mono-tools#50

All 4 comments

@directhex does this look familiar?

Pretty much expected. There are no HTML renderers for Gtk+2 in any recent distributions

Am a bit surprised it looks for gluezilla though - though it would look for webkit-sharp (still outdated, I know..) at least. Gluezilla is very old...

see: mono/mono-tools#50

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zulhfreelancer picture zulhfreelancer  路  4Comments

EgorBo picture EgorBo  路  3Comments

alxchk picture alxchk  路  4Comments

triztian picture triztian  路  4Comments

callmekohei picture callmekohei  路  3Comments