GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Draft: Windowsxwtgtk3: Do not merge by MakiWolf · Pull Request #154 · dotdevelop/dotdevelop

Conversation

@MakiWolf

@MakiWolf MakiWolf commented Feb 13, 2024

Copy link
Copy Markdown

Played here also with gtk3, but at least it did not start.

I have installed gtksharp using this guide:

https://github.com/GtkSharp/GtkSharp/wiki/Installing-Gtk-on-Windows

I also tried starting it with msys2

INFO [2024-02-13 23:18:49Z]: Starting MonoDevelop 8.6 Preview (8.6 build 1295)
INFO [2024-02-13 23:18:49Z]: Build Information
86738549e095c384e2435d38c2eb695f59be7c95

INFO [2024-02-13 23:18:49Z]: Running on Microsoft .NET 4.0.30319.42000
INFO [2024-02-13 23:18:49Z]: Operating System: Windows 10.0.22631.0 (64-bit)
INFO [2024-02-13 23:18:49Z]: Found GTK# version 2.12.45
FATAL ERROR [2024-02-13 23:18:49Z]: MonoDevelop failed to start. Some of the assemblies required to run MonoDevelop (for example gtk-sharp)may not be properly installed in the GAC.
System.TypeInitializationException: Der Typeninitialisierer für "Gtk.Settings" hat eine Ausnahme verursacht. ---> System.DllNotFoundException: Gtk: libgtk-3-0.dll, libgtk-3.so.0, libgtk-3.0.dylib, gtk-3.dll
   bei GLibrary.Load(Library library)
   bei Gtk.Settings..cctor()
   --- Ende der internen Ausnahmestapelüberwachung ---
   bei Gtk.Settings.get_Default()
   bei MonoDevelop.Components.IdeTheme.InitializeGtk(String progname, String[]& args) in C:\msys64\home\Marku\windowsxwtgtk3\main\src\core\MonoDevelop.Ide\MonoDevelop.Components\IdeTheme.cs:Zeile 77.
   bei MonoDevelop.Ide.IdeStartup.Run(MonoDevelopOptions options) in C:\msys64\home\Marku\windowsxwtgtk3\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide\IdeStartup.cs:Zeile 130.
   bei MonoDevelop.Ide.IdeStartup.Main(String[] args, IdeCustomizer customizer) in C:\msys64\home\Marku\windowsxwtgtk3\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide\IdeStartup.cs:Zeile 755.

I also installed then
https://github.com/tschoonj/GTK-for-Windows-Runtime-Environment-Installer

but this did not solve the error

I think it uses gtksharp2 installation from this line:

https://github.com/MakiWolf/dotdevelop/blob/7dc1f75236d71b4a995caed84fee7b192be126b9/main/src/core/MonoDevelop.Core/MonoDevelop.Core/Platform.cs#L102

I also don't know if gtksharp have a registry path to replace gtk2 here?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
MakiWolf and others added 30 commits December 25, 2023 17:59
@MakiWolf
update
2e2670c
@MakiWolf
update
8fe8797
@MakiWolf
update
d330325
@MakiWolf
older version
528a10e
@MakiWolf
comment out
d884937
@MakiWolf
comment out
b572709
@MakiWolf
fix startup
f383041
@MakiWolf
move references
530a73c
@MakiWolf
delete crash
949ddc3
@MakiWolf
fix reference
a236687
@MakiWolf
update references
ae129a3
@MakiWolf
update references
a2276de
@MakiWolf
update
57dfa6e
@MakiWolf
update
cdbf07a
@MakiWolf
update
9960af8
@MakiWolf
comment out
9b07120
@MakiWolf
add dll
d90e234
@MakiWolf
add reference
04dcf83
@MakiWolf
Mono.Addins.Setup.HttpClientProvider enable it again after changing s…
0e8e366
…ubmodule
@MakiWolf
update to own fork
8aa9bfe
@MakiWolf
update xwt with latest changes from master
517be14
@MakiWolf
update xwt
e648feb
@MakiWolf
change to dotdevelop
23f9764
@MakiWolf
update submodule
b24e007
@MakiWolf
if else statements
8018a8c
@MakiWolf
fix reference and remove gtk3 from github actions
53ade7b
@MakiWolf
change submodule to fork
9320fe7
@MakiWolf
update submodule
a81ae55
@MakiWolf
enable again
e76acc4
@MakiWolf
enable again
0b10a96
MakiWolf added 2 commits April 6, 2024 18:28
@MakiWolf
update
4445e9a
@MakiWolf
update
75b9d12
@badcel

badcel commented Apr 6, 2024

Copy link
Copy Markdown

Also tried to use original gtksharp from mono on windows and it also does not start. The problem seems to be in the xwt backend, also in the original one from mono.

I used this .msi installer under https://github.com/mono/gtk-sharp/releases/tag/2.99.3

INFO [2024-03-18 11:17:26Z]: Starting MonoDevelop 8.6 Preview (8.6 build 1384)
INFO [2024-03-18 11:17:26Z]: Build Information
7dd1edbdc098a414c77e408b537901d481a07cf4

INFO [2024-03-18 11:17:26Z]: Running on Microsoft .NET 4.0.30319.42000
INFO [2024-03-18 11:17:26Z]: Operating System: Windows 10.0.22631.0 (64-bit)
INFO [2024-03-18 11:17:26Z]: Found GTK# version 2.12.45
INFO [2024-03-18 11:17:26Z]: Using GTK+ 3
FATAL ERROR [2024-03-18 11:17:26Z]: MonoDevelop failed to start. Some of the assemblies required to run MonoDevelop (for example gtk-sharp)may not be properly installed in the GAC.
System.Exception: Toolkit could not be loaded ---> System.BadImageFormatException: Es wurde versucht, eine Datei mit einem falschen Format zu laden. (Ausnahme von HRESULT: 0x8007000B)
   bei Gtk.Application.gtk_init(Int32& argc, IntPtr& argv)
   bei Gtk.Application.Init()
   bei Xwt.GtkBackend.GtkEngine.InitializeApplication() in C:\msys64\home\Marku\hackweek2nugetgtkxwtgtk3\main\external\xwt3\Xwt.Gtk\Xwt.GtkBackend\GtkEngine.cs:Zeile 45.
   bei Xwt.Backends.ToolkitEngineBackend.Initialize(Toolkit toolkit, Boolean isGuest, Boolean initializeToolkit) in C:\msys64\home\Marku\hackweek2nugetgtkxwtgtk3\main\external\xwt3\Xwt\Xwt.Backends\ToolkitEngineBackend.cs:Zeile 61.
   bei Xwt.Toolkit.Initialize(Boolean isGuest, Boolean initializeToolkit) in C:\msys64\home\Marku\hackweek2nugetgtkxwtgtk3\main\external\xwt3\Xwt\Xwt\Toolkit.cs:Zeile 306.
   bei Xwt.Toolkit.LoadBackend(String type, Boolean isGuest, Boolean initializeToolkit, Boolean throwIfFails) in C:\msys64\home\Marku\hackweek2nugetgtkxwtgtk3\main\external\xwt3\Xwt\Xwt\Toolkit.cs:Zeile 289.
   --- Ende der internen Ausnahmestapel▒berwachung ---
   bei Xwt.Toolkit.LoadBackend(String type, Boolean isGuest, Boolean initializeToolkit, Boolean throwIfFails) in C:\msys64\home\Marku\hackweek2nugetgtkxwtgtk3\main\external\xwt3\Xwt\Xwt\Toolkit.cs:Zeile 296.
   bei Xwt.Toolkit.Load(String fullTypeName, Boolean isGuest, Boolean initializeToolkit) in C:\msys64\home\Marku\hackweek2nugetgtkxwtgtk3\main\external\xwt3\Xwt\Xwt\Toolkit.cs:Zeile 207.
   bei Xwt.Application.Initialize(String backendType, Boolean initializeToolkit) in C:\msys64\home\Marku\hackweek2nugetgtkxwtgtk3\main\external\xwt3\Xwt\Xwt\Application.cs:Zeile 116.
   bei Xwt.Application.Initialize(ToolkitType type) in C:\msys64\home\Marku\hackweek2nugetgtkxwtgtk3\main\external\xwt3\Xwt\Xwt\Application.cs:Zeile 93.
   bei Xwt.Application.InitializeAsGuest(ToolkitType type) in C:\msys64\home\Marku\hackweek2nugetgtkxwtgtk3\main\external\xwt3\Xwt\Xwt\Application.cs:Zeile 132.
   bei MonoDevelop.Ide.IdeStartup.Run(MonoDevelopOptions options) in C:\msys64\home\Marku\hackweek2nugetgtkxwtgtk3\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide\IdeStartup.cs:Zeile 163.
   bei MonoDevelop.Ide.IdeStartup.Main(String[] args, IdeCustomizer customizer) in C:\msys64\home\Marku\hackweek2nugetgtkxwtgtk3\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide\IdeStartup.cs:Zeile 755.

Test branch: https://github.com/MakiWolf/dotdevelop/tree/hackweek2nugetgtkxwtgtk3

I assume the problem here is that you installed the 32 bit version of the libraries but are executing a 64 bit application?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

MakiWolf added 3 commits April 6, 2024 19:32
@MakiWolf
update
74dfcb0
@MakiWolf
update
8654051
@MakiWolf
update
c2136f6
@MakiWolf

MakiWolf commented Apr 6, 2024

Copy link
Copy Markdown
Author

I assume the problem here is that you installed the 32 bit version of the libraries but are executing a 64 bit application?

The original mono gtk3 installer have only a 32 bit version. And using the new nuget package and the libraries from msys2 also have not worked.

https://github.com/GtkSharp/GtkSharp/wiki/Installing-Gtk-on-Windows

But on GTK2 under this branch the 32bit installation of the libraries worked: https://github.com/MakiWolf/dotdevelop/tree/windowslinuxbuild

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

MakiWolf and others added 18 commits April 6, 2024 22:00
@MakiWolf
update
1c10fb9
@MakiWolf
update
28d895f
@MakiWolf
update
6d28d10
@MakiWolf
update
50b05da
@MakiWolf
update
61d04a6
@MakiWolf
update
c87d14d
@MakiWolf
update
90d2cbe
@MakiWolf
update
898d128
@MakiWolf
update
6ce8929
@MakiWolf
update
206cee9
@MakiWolf
update
e9894cb
@MakiWolf
update
0c0d6dd
@MakiWolf
update
87a70b8
@MakiWolf
update
3051659
@MakiWolf
update
3854013
@MakiWolf
update
776eb49
@MakiWolf
update
d417741
@MakiWolf
update
96af35c
@MakiWolf

MakiWolf commented Apr 19, 2024

Copy link
Copy Markdown
Author

Another strange thing when I use this working gtk2 branch under https://github.com/MakiWolf/dotdevelop/tree/windowslinuxbuild
And make in this line a Console Output with WriteLine

https://github.com/easysimplified/xwt/blob/042a2c85edb02447f45a65aa1a46fd9cbbcf6dbf/Xwt.Gtk/Xwt.GtkBackend/GtkEngine.cs#L135

Console.WriteLine("loc:"+loc);

It outputs:

loc:C:\msys64\home\Marku\windowslinuxbuild\main\build\bin\Xwt.Gtk.Windows.dll

strange when I look with a file manager here there is no file Xwt.Gtk.Windows.dll only a file without windows in the name!?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

MakiWolf and others added 4 commits April 20, 2024 00:00
@MakiWolf
update
65942d4
@MakiWolf
update
6253db5
@MakiWolf
update
8d47739
@MakiWolf
Merge branch 'hackweek2nugetgtk' of https://github.com/MakiWolf/dotde…
5a0b20e
…velop into windowsxwtgtk3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@MakiWolf @lytico @knocte @badcel
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.