Skip to content

Instantly share code, notes, and snippets.

@marcelkorpel
Last active February 23, 2025 19:16
Show Gist options
  • Save marcelkorpel/50b981c20ab7371cdefd207623ee0986 to your computer and use it in GitHub Desktop.
Save marcelkorpel/50b981c20ab7371cdefd207623ee0986 to your computer and use it in GitHub Desktop.
services:
mono:
container_name: mono
build:
context: .
dockerfile: Dockerfile
ports:
- 3000:3000
- 3001:3001
volumes:
- ./files:/config/files
FROM ghcr.io/linuxserver/baseimage-kasmvnc:arm64v8-alpine321
ENV TITLE=Mono
RUN \
apk add mono --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing/ \
libgdiplus --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community/ \
gtk+2.0
COPY /root /
RUN mkdir /opt/app
COPY subextractor/* /opt/app
EXPOSE 3000
VOLUME /config
Exception thrown at 02/23/2025 18:28
ole32.dll assembly:<unknown assembly> type:<unknown type> member:(null)
at (wrapper managed-to-native) System.__ComObject.CoCreateInstance(System.Guid,intptr,uint,System.Guid,intptr&)
at System.__ComObject.CreateIUnknown (System.Type t) [0x00051] in <fa2c5887c06940f2859e526f4b9ed886>:0
at Mono.Interop.ComInteropProxy.CreateProxy (System.Type t) [0x00000] in <fa2c5887c06940f2859e526f4b9ed886>:0
at System.Runtime.Remoting.RemotingServices.CreateClientProxyForComInterop (System.Type type) [0x00000] in <fa2c5887c06940f2859e526f4b9ed886>:0
at System.Runtime.Remoting.Activation.ActivationServices.CreateProxyForType (System.Type type) [0x0003b] in <fa2c5887c06940f2859e526f4b9ed886>:0
at (wrapper managed-to-native) System.Object.__icall_wrapper_ves_icall_object_new_specific(intptr)
at DvdSubExtractor.OcrBlocksStep.Initialize (DvdSubExtractor.ExtractData data) [0x002bb] in <39881213abca4d318ebcb2c27abfdb86>:0
at DvdSubExtractor.SubWizard.LoadCurrentStep () [0x000ca] in <39881213abca4d318ebcb2c27abfdb86>:0
at DvdSubExtractor.SubWizard.nextButton_Click (System.Object sender, System.EventArgs e) [0x0001a] in <39881213abca4d318ebcb2c27abfdb86>:0
at System.Windows.Forms.ToolStripItem.OnClick (System.EventArgs e) [0x00019] in <e57ab0282ed24844886e057a3274310c>:0
at System.Windows.Forms.ToolStripButton.OnClick (System.EventArgs e) [0x00017] in <e57ab0282ed24844886e057a3274310c>:0
at System.Windows.Forms.ToolStripItem.HandleClick (System.Int32 mouse_clicks, System.EventArgs e) [0x00029] in <e57ab0282ed24844886e057a3274310c>:0
at System.Windows.Forms.ToolStripItem.FireEvent (System.EventArgs e, System.Windows.Forms.ToolStripItemEventType met) [0x00054] in <e57ab0282ed24844886e057a3274310c>:0
at (wrapper remoting-invoke-with-check) System.Windows.Forms.ToolStripItem.FireEvent(System.EventArgs,System.Windows.Forms.ToolStripItemEventType)
at System.Windows.Forms.ToolStrip.OnMouseUp (System.Windows.Forms.MouseEventArgs mea) [0x00048] in <e57ab0282ed24844886e057a3274310c>:0
at System.Windows.Forms.Control.WmLButtonUp (System.Windows.Forms.Message& m) [0x00078] in <e57ab0282ed24844886e057a3274310c>:0
at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x001b4] in <e57ab0282ed24844886e057a3274310c>:0
at System.Windows.Forms.ScrollableControl.WndProc (System.Windows.Forms.Message& m) [0x00000] in <e57ab0282ed24844886e057a3274310c>:0
at System.Windows.Forms.ToolStrip.WndProc (System.Windows.Forms.Message& m) [0x00000] in <e57ab0282ed24844886e057a3274310c>:0
at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <e57ab0282ed24844886e057a3274310c>:0
at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x0000b] in <e57ab0282ed24844886e057a3274310c>:0
at System.Windows.Forms.NativeWindow.WndProc (System.IntPtr hWnd, System.Windows.Forms.Msg msg, System.IntPtr wParam, System.IntPtr lParam) [0x00085] in <e57ab0282ed24844886e057a3274310c>:0

I'd like to run DvdSubExtractor in a Docker container on macOS (aarch64), but no matter on which image I try to build this container from, whether it be an Alpine Linux, Debian, or Arch Linux image (all based on LinuxServer's KasmVNC Base Images), or using the Mono image combined with X11 forwarding, I always get stuck at the same point.

I'm able to open a subtitle file (combination, .idx + .sub) and scroll through its contents, but when I try to start the OCR process nothing useful appears on screen, and the GUI seems strange, with labels like 'label7' (see screenshot). However, I still can toggle the Italic checkbox and see that Italic mode is on, so the GUI isn't completely halted.

2025-02-23 19 29 09 localhost 228cbdf91c8c

Inside the container, an ExceptionLog.txt file is written, with always the same error message (see attached file). The source code of DvdSubExtractor can be found elsewhere on GitHub.

mono /opt/app/DvdSubExtractor.exe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment