Critical errors when generating accountsservice documentation
When running
valadoc --target-glib 2.98 --driver "0.44" --importdir girs --doclet "." -o "tmp/accountsservice" "girs/vala/vapi/accountsservice.vapi" --vapidir "girs/vala/vapi" --girdir "girs/gir-1.0" --use-svg-images --importdir "girs/gir-1.0" --import AccountsService-1.0 --metadatadir documentation/accountsservice --wiki documentation/accountsservice/wiki
I end-up with a lot of:
** (valadoc:12232): CRITICAL **: 12:39:43.284: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `source-position' in `class'
** (valadoc:12232): CRITICAL **: 12:39:43.285: vala_source_reference_construct: assertion '_file != NULL' failed
error: expected end element of `method'
** (valadoc:12232): CRITICAL **: 12:39:43.285: vala_source_reference_construct: assertion '_file != NULL' failed
error: expected end element of `class'
** (valadoc:12232): CRITICAL **: 12:39:43.285: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `return-value' in `namespace'
** (valadoc:12232): CRITICAL **: 12:39:43.285: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `parameters' in `namespace'
** (valadoc:12232): CRITICAL **: 12:39:43.285: vala_source_reference_construct: assertion '_file != NULL' failed
error: expected end element of `namespace'
** (valadoc:12232): CRITICAL **: 12:39:43.285: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `method' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.285: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `method' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.285: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `method' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.285: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `method' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.285: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `method' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.285: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `method' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.285: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `method' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.285: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `method' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.285: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `method' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.285: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `method' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.285: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `method' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.285: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `method' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.285: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `method' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.285: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `method' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.285: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `method' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.285: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `method' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.285: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `method' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.285: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `method' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.285: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `method' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.285: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `method' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.285: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `method' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.285: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `method' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.285: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `method' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.285: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `method' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.286: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `method' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.286: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `method' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.286: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `method' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.286: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `method' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.286: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `method' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.286: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `method' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.286: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `method' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.286: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `method' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.286: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `method' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.286: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `method' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.286: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `method' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.286: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `method' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.286: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `method' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.286: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `method' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.286: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `method' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.286: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `method' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.286: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `method' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.286: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `method' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.286: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `method' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.286: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `method' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.286: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `method' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.286: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `method' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.286: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `method' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.286: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `property' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.286: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `property' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.286: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `property' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.286: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `property' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.286: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `property' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.286: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `property' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.286: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `property' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.287: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `property' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.287: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `property' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.287: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `property' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.287: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `property' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.287: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `property' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.287: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `property' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.287: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `property' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.287: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `property' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.287: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `property' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.287: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `property' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.287: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `property' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.287: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `property' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.287: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `property' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.287: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `property' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.287: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `property' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.287: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `glib:signal' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.287: vala_source_reference_construct: assertion '_file != NULL' failed
error: unknown child element `glib:signal' in `repository'
** (valadoc:12232): CRITICAL **: 12:39:43.287: vala_source_reference_construct: assertion '_file != NULL' failed
error: expected end element of `repository'
From GDB:
** (valadoc:20331): CRITICAL **: 12:40:08.112: vala_source_reference_construct: assertion '_file != NULL' failed
Program received signal SIGTRAP, Trace/breakpoint trap.
_g_log_abort (breakpoint=breakpoint@entry=1) at ../../../../glib/gmessages.c:583
583 ../../../../glib/gmessages.c: Aucun fichier ou dossier de ce type.
(gdb) bt
#0 0x00007ffff6f26e11 in _g_log_abort (breakpoint=breakpoint@entry=1) at ../../../../glib/gmessages.c:583
#1 0x00007ffff6f2815b in g_logv (log_domain=0x0, log_level=G_LOG_LEVEL_CRITICAL, format=<optimized out>, args=args@entry=0x7fffffffd670) at ../../../../glib/gmessages.c:1391
#2 0x00007ffff6f282af in g_log (log_domain=<optimized out>, log_level=<optimized out>, format=<optimized out>) at ../../../../glib/gmessages.c:1432
#3 0x00007ffff785caef in vala_source_reference_construct () at /usr/lib/x86_64-linux-gnu/libvala-0.44.so.0
#4 0x00007ffff7b3fe47 in valadoc_importer_gir_documentation_importer_error (self=self@entry=0x5555559ba130 [ValadocImporterGirDocumentationImporter], message=message@entry=0x5555573abeb0 "unknown child element `source-position' in `class'") at importer/girdocumentationimporter.c:602
#5 0x00007ffff7b427b0 in valadoc_importer_gir_documentation_importer_parse_class (self=0x5555559ba130 [ValadocImporterGirDocumentationImporter]) at importer/girdocumentationimporter.c:1761
#6 0x00007ffff7b427b0 in valadoc_importer_gir_documentation_importer_parse_namespace (self=0x5555559ba130 [ValadocImporterGirDocumentationImporter]) at importer/girdocumentationimporter.c:933
#7 0x00007ffff7b427b0 in valadoc_importer_gir_documentation_importer_parse_repository (self=0x5555559ba130 [ValadocImporterGirDocumentationImporter]) at importer/girdocumentationimporter.c:746
#8 0x00007ffff7b427b0 in valadoc_importer_gir_documentation_importer_real_process (base=0x5555559ba130 [ValadocImporterGirDocumentationImporter], source_file=<optimized out>)
at importer/girdocumentationimporter.c:262
#9 0x00007ffff7b58f6d in valadoc_api_tree_import_comments (self=0x555555781300 [ValadocApiTree], importers=0x5555573af0a0, importers_length1=2, packages=<optimized out>, packages_length1=<optimized out>, import_directories=0x5555557858d0, import_directories_length1=2) at api/tree.c:1228
#10 0x000055555555f38f in main ()
So according to me, this patch is required: 0001-valadoc-include-Vala.SourceFile-in-the-GIR-documenta.patch