question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Debian issues, Unhandled exception

See original GitHub issue

Hi All,

i have a console Application which is running fine on windows. Now i built it for linux-x64 and wanted it to run on my debian 10 machine. I get the following error and have no clue where to look for issues.

Unhandled exception. System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. (Parameter 'Value is beyond the supplementary range!') at System.Rune..ctor(UInt32 rune) at System.Rune.op_Implicit(UInt32 value) at Terminal.Gui.CursesDriver.Init(Action terminalResized) at Terminal.Gui.Application.Init(Func1 topLevelFactory, ConsoleDriver driver, IMainLoopDriver mainLoopDriver) at Terminal.Gui.Application.Run[T]() at my.Program.Main() Aborted

Sorry in advance if this is a easy fix but i couldnt find anything related yet.

KR Pete

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:17

github_iconTop GitHub Comments

1reaction
peterbaumertcommented, Jan 10, 2021

On WSL (Debian and Ubuntu) I am getting the same error. Will try another distro soon too. I am still using Terminal gui 0.9 can that be an issue?

I really don’t know as I’m using the latest master version. Please try with this version and then say anything.

I tried all and didnt work. I ended up copying all my code to a new solution… this worked… i dunno what fucked up my old one.

Sorry for all the inconveniences and thank you for your help!

KR Pete

1reaction
peterbaumertcommented, Jan 6, 2021
using Terminal.Gui;

namespace hzauto
{
    static class Program
    {
        static void Main()
        {
            Application.Run<HzAuto>();
        }
    }
}

< Program.cs

partial class HzAuto : Window
    {
        public HzAuto()
        {
            _leftPane = new FrameView("Main")
            {
                X = 0,
                Y = 1, // for menu
                Width = 25,
                Height = Dim.Fill(1),
                CanFocus = false
            };
            _leftPane.Title = $"{_leftPane.Title}";

            _rightPane = new FrameView("hzAuto")
            {
                X = 25,
                Y = 1, // for menu
                Width = Dim.Fill(),
                Height = Dim.Fill(1),
                CanFocus = true
            };
            _rightPane.Title = $"{_rightPane.Title}";

            _capslock = new StatusItem(Key.CharMask, "Caps", null);
            _numlock = new StatusItem(Key.CharMask, "Num", null);
            _scrolllock = new StatusItem(Key.CharMask, "Scroll", null);

            _statusBar = new StatusBar()
            {
                Visible = true,
            };
            _statusBar.Items = new StatusItem[] {
                _capslock,
                _numlock,
                _scrolllock,
                new StatusItem(Key.F10, "~F10~ Hide/Show Status Bar", () => {
                    _statusBar.Visible = !_statusBar.Visible;
                    _leftPane.Height = Dim.Fill(_statusBar.Visible ? 1 : 0);
                    _rightPane.Height = Dim.Fill(_statusBar.Visible ? 1 : 0);
                    this.LayoutSubviews();
                }),
            };

            this.KeyDown += KeyDownHandler;
            this.Add(_leftPane);
            this.Add(_rightPane);
            this.Add(_statusBar);


        }
}

< hzauto.cs

This is what i have and if i try to run this remote via ssh on my server i get the error from up. Cant get the Code formatting here right somehow, sorry for that.

KR and thanks for the help!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unhandled exception [HELP]
I am completely new to Linux I have a server running on it but after hours I get this, can someone tell me...
Read more >
Debian Bug report logs: Bugs in package pinta in unstable
it keeps saying: Unhandled exception: Exception has been thrown by the target of an invocation.
Read more >
Debugging hangs on Linux, Unhandled exception. System. ...
Debugging fails to launch, on Linux only, Unhandled exception. System.IO.FileNotFoundException: Could not load file or assembly.
Read more >
Problem installing on Linux Mint: Unhandled exception
I am using Linux Mint 21.1. When I try to install using the downloaded installer, I get the following error after agreeing to...
Read more >
Got unhandled exception of type 'Success'
I got this amusing "error" message from something a few days ago, saved the msg in a file and forget whence it came:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found