GeezerVison is showing github.com — System.TermInfoReader cannot handle new NCurses 6 TermInfo files · Issue #6752 · mono/mono
System.TermInfoReader cannot handle new NCurses 6 TermInfo files #6752DescriptionSteps to Reproduce
- Install NCurses 6.1 (e.g. on Arch)
- Try to do anything, e.g. make runtime
Current Behavior
Crashes
On which platforms did you notice this
[ ] macOS
[X] Linux
[ ] Windows
Version Used:
Any
Stacktrace
System.TypeInitializationException: The type initializer for 'System.Console' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.ConsoleDriver' threw an exception. ---> System.Exception: Magic number is wrong: 542
at System.TermInfoReader.ReadHeader (System.Byte[] buffer, System.Int32& position) [0x00028] in <10f1e38af51947f98c2267bd20fa8c60>:0
at System.TermInfoReader..ctor (System.String term, System.String filename) [0x0005f] in <10f1e38af51947f98c2267bd20fa8c60>:0
at System.TermInfoDriver..ctor (System.String term) [0x00055] in <10f1e38af51947f98c2267bd20fa8c60>:0
at System.ConsoleDriver.CreateTermInfoDriver (System.String term) [0x00000] in <10f1e38af51947f98c2267bd20fa8c60>:0
at System.ConsoleDriver..cctor () [0x0004d] in <10f1e38af51947f98c2267bd20fa8c60>:0
--- End of inner exception stack trace ---
at System.Console.SetupStreams (System.Text.Encoding inputEncoding, System.Text.Encoding outputEncoding) [0x00007] in <10f1e38af51947f98c2267bd20fa8c60>:0
at System.Console..cctor () [0x0008e] in <10f1e38af51947f98c2267bd20fa8c60>:0
--- End of inner exception stack trace ---
at Microsoft.CodeAnalysis.CommandLine.BuildClient.RunCompilation (System.Collections.Generic.IEnumerable`1[T] originalArguments, Microsoft.CodeAnalysis.BuildPaths buildPaths, System.IO.TextWriter textWriter) [0x00005] in <0d46d413edc9411fa4eb1c4cbce40409>:0
at Microsoft.CodeAnalysis.CommandLine.DesktopBuildClient.Run (System.Collections.Generic.IEnumerable`1[T] arguments, Microsoft.CodeAnalysis.CommandLine.RequestLanguage language, Microsoft.CodeAnalysis.CommandLine.CompileFunc compileFunc, Microsoft.CodeAnalysis.IAnalyzerAssemblyLoader analyzerAssemblyLoader) [0x00037] in <0d46d413edc9411fa4eb1c4cbce40409>:0
at Microsoft.CodeAnalysis.CSharp.CommandLine.Program.MainCore (System.String[] args) [0x00017] in <0d46d413edc9411fa4eb1c4cbce40409>:0
at Microsoft.CodeAnalysis.CSharp.CommandLine.Program.Main (System.String[] args) [0x00000] in <0d46d413edc9411fa4eb1c4cbce40409>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'System.Console' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.ConsoleDriver' threw an exception. ---> System.Exception: Magic number is wrong: 542
at System.TermInfoReader.ReadHeader (System.Byte[] buffer, System.Int32& position) [0x00028] in <10f1e38af51947f98c2267bd20fa8c60>:0
at System.TermInfoReader..ctor (System.String term, System.String filename) [0x0005f] in <10f1e38af51947f98c2267bd20fa8c60>:0
at System.TermInfoDriver..ctor (System.String term) [0x00055] in <10f1e38af51947f98c2267bd20fa8c60>:0
at System.ConsoleDriver.CreateTermInfoDriver (System.String term) [0x00000] in <10f1e38af51947f98c2267bd20fa8c60>:0
at System.ConsoleDriver..cctor () [0x0004d] in <10f1e38af51947f98c2267bd20fa8c60>:0
--- End of inner exception stack trace ---
at System.Console.SetupStreams (System.Text.Encoding inputEncoding, System.Text.Encoding outputEncoding) [0x00007] in <10f1e38af51947f98c2267bd20fa8c60>:0
at System.Console..cctor () [0x0008e] in <10f1e38af51947f98c2267bd20fa8c60>:0
--- End of inner exception stack trace ---
at Microsoft.CodeAnalysis.CommandLine.BuildClient.RunCompilation (System.Collections.Generic.IEnumerable`1[T] originalArguments, Microsoft.CodeAnalysis.BuildPaths buildPaths, System.IO.TextWriter textWriter) [0x00005] in <0d46d413edc9411fa4eb1c4cbce40409>:0
at Microsoft.CodeAnalysis.CommandLine.DesktopBuildClient.Run (System.Collections.Generic.IEnumerable`1[T] arguments, Microsoft.CodeAnalysis.CommandLine.RequestLanguage language, Microsoft.CodeAnalysis.CommandLine.CompileFunc compileFunc, Microsoft.CodeAnalysis.IAnalyzerAssemblyLoader analyzerAssemblyLoader) [0x00037] in <0d46d413edc9411fa4eb1c4cbce40409>:0
at Microsoft.CodeAnalysis.CSharp.CommandLine.Program.MainCore (System.String[] args) [0x00017] in <0d46d413edc9411fa4eb1c4cbce40409>:0
at Microsoft.CodeAnalysis.CSharp.CommandLine.Program.Main (System.String[] args) [0x00000] in <0d46d413edc9411fa4eb1c4cbce40409>:0
Relevant, is file's support for recognising the new files: file/file@8f8d2c0#diff-fe71ced20976bbadd001fc32fbea03a7
I'm not sure how much deeper the changes go Reacted by Harry, Matti Andreas Nielsen, Gereon Fox, Nathan Lowe, Ludvig, Paul Julien, puffybsd, hr567, Daniel, Bertrand Bonnefoy-Claudet and 1 more Activitydirecthex commented on Feb 1, 2018 ContributorAuthor More actions gfhcs commented on Feb 8, 2018 Same problem on OpenSUSE Tumbleweed. gfhcs commented on Feb 8, 2018 Workaround: On OpenSUSE Tumbleweed I was able to downgrade the packages "terminfo" and "terminfo-base" from 6.1 to 5.9 without breaking any (encoded) dependencies. Now terminal output with mono works again.
I just hope that I didn't break anything with this downgrade, 'cause I have no clue what terminfo is used for... Reacted by Gankov Andrey and zaqwer101 migueldeicaza commented on Feb 13, 2018 Slang added support for this recently: hankem/S-Lang@6dd5ade
Looks like the format change is fairly simple, introduced new magic value, and now entries use ints instead of shorts. lewurm commented on Feb 13, 2018 fix is in progress. A simple workaround is to set TERM=xterm for example, that is, some terminfo file that is in the old file format. Reacted by Роман Корцаков, Thibault Saunier, wtfblub, christiansk, Adriano Costa, joejoepie, Alexander Kapshuna, Joel Purra, Jirka Daněk, Dimiter 'malkia' Stanev and 10 more Reacted by Matyas Albert Nagy, Adrià Arrufat, dionisos, relte, Adam R. Nelson, Starbeamrainbowlabs, Dmitry Dubina, Francisco Breno, Simão Gomes Viana, Роман Корцаков and 5 more Reacted by Gereon Fox, Miguel de Icaza, Matyas Albert Nagy, Jonas Jensen, Dmitry Dubina, wtfblub, christiansk, franeklubi, Yog Sottot, joejoepie and 5 more sbrl commented on Feb 27, 2018 Any timeline on when this will be included in a release? (and if so, which release(s)?) lewurm commented on Feb 27, 2018 @marek-safar should we backport this change to release branches? I'm not sure about it, given there is a fairly simple workaround for it. directhex commented on Apr 19, 2018 ContributorAuthor More actions The fix for this was backported to Mono 5.10.x, and is in 5.10.1.45 as a minimum, which is in the mono-project.com preview and stable release branches (it is not yet included in a vs branch package) ht990332 commented on Apr 19, 2018 On Wed, 2018-04-18 at 21:03 -0700, Panos V. wrote:
I'm still dealing with the exact same issue. (in Arch Linux)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
If you can, rebuild the arch linux package after editing the PKGBUILD
and changing the _gitcommit variable to
b4e428d
stehgold commented on Jul 12, 2018 Does anyone know why Fedora comes with 4.8. If this was fixes in 5.10 when will this arrive in Fedora, F30 ? Oh, TERM=xterm does not work here. Reacted by Venelin Stoykov, Alexander Lipatov and Robert Hailey HinTak commented on Jul 12, 2018 I can think of one reason - mono 5 has many incompatible(?) changes / additions, including a new c# compiler contributed by Microsoft. In fact I am not upgrading until one (the ability to build ironpython correctly) is fixed.
But the ncurse issue in the subject is already backported to 4.8 (at least as distributed by fedora) and fixed.
On Thursday, 12 July 2018, 20:00:50 GMT+8, Stephan Goldenberg < [email protected]> wrote:
Does anyone know why Fedora comes with 4.8. If this was fixes in 5.10 when will this arrive in Fedora, F30 ?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|