Thanks to visit codestin.com
Credit goes to github.com

Skip to content

monodoc docbrowser is broken on modern distros #8659

@NattyNarwhal

Description

@NattyNarwhal

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 

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions