mgoeppner / evemon

A lightweight, easy-to-use standalone Windows application designed to assist you in keeping track of your EVE Online character progression.
https://mgoeppner.github.io/evemon/
GNU General Public License v2.0
155 stars 22 forks source link

Native linux fixes #41

Closed mgoeppner closed 2 months ago

mgoeppner commented 2 years ago

Had a day off today, attempted to get EVEMon working ish under linux.

There are still some issues loading and saving data, but I think that relates to some other threading issues.

cc @njfox

mgoeppner commented 2 years ago

This should /mostly/ work. Some win32 stuff might still be broken, but the core functionality seems to be there now.

njfox commented 2 years ago

Awesome, thanks a lot for digging into it! I can do some testing with this branch and let you know how it goes

mgoeppner commented 2 years ago

If it looks good, I'll do some cleanup on this branch-- the dispatcher is a bit of a hodgepodge in this PR, and it would be good to have a mono-specific variant of it, so win32 can work as it always has.

mgoeppner commented 2 years ago

Known issues:

ol97 commented 2 years ago

https://pastebin.com/CS05PANg

UselessRedDot from reddit here.

Arch linux 5.15 LTS, I3 WM, mono 6.12, open-xdg 1.1.3+.

njfox commented 2 years ago

https://pastebin.com/CS05PANg

UselessRedDot from reddit here.

Arch linux 5.15 LTS, I3 WM, mono 6.12, open-xdg 1.1.3+.

I was about to say this is weird because it's running fine for me, but then I remembered I'm running it with Wine :/ I'll try with mono directly later on

njfox commented 2 years ago

Running with mono directly, I did get a crash when adding a character, but it actually seems to have added it OK after relaunching. Error for reference:

[ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object
  at System.Windows.Forms.XplatUIX11.DestroyOffscreenDrawable (System.Object offscreen_drawable) [0x00000] in <1a0d003b39984d2dbc938f20c1eecbd4>:0 
  at System.Windows.Forms.XplatUI.DestroyOffscreenDrawable (System.Object offscreen_drawable) [0x00000] in <1a0d003b39984d2dbc938f20c1eecbd4>:0 
  at System.Windows.Forms.Control+DoubleBuffer.Dispose () [0x00016] in <1a0d003b39984d2dbc938f20c1eecbd4>:0 
  at System.Windows.Forms.Control.DisposeBackBuffer () [0x00008] in <1a0d003b39984d2dbc938f20c1eecbd4>:0 
  at System.Windows.Forms.Control.Dispose (System.Boolean disposing) [0x00024] in <1a0d003b39984d2dbc938f20c1eecbd4>:0 
  at System.ComponentModel.Component.Dispose () [0x00000] in <88f781f3d8d64093b6f7b401d80f1dcf>:0 
  at (wrapper remoting-invoke-with-check) System.ComponentModel.Component.Dispose()
  at System.Windows.Forms.ToolStripControlHost.Dispose (System.Boolean disposing) [0x00021] in <1a0d003b39984d2dbc938f20c1eecbd4>:0 
  at System.ComponentModel.Component.Finalize () [0x00000] in <88f781f3d8d64093b6f7b401d80f1dcf>:0

This same crash also occurs when clicking the "Manage Characters" button, so maybe it's related to that? Either way it does actually work in wine

rafaga commented 2 years ago

MacOSX 12.3.1

Error while starting up application

WARNING: The Carbon driver has not been ported to 64bits, and very few parts of Windows.Forms will work properly, or at all

Fontconfig warning: ignoring UTF-8: not a valid region tag
Fontconfig warning: ignoring UTF-8: not a valid region tag

=================================================================
    Native Crash Reporting
=================================================================
Got a segv while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

=================================================================
    Native stacktrace:
=================================================================
    0x10e51e5c9 - /Library/Frameworks/Mono.framework/Versions/6.12.0/bin/mono-sgen64 : mono_dump_native_crash_info
    0x10e4b637e - /Library/Frameworks/Mono.framework/Versions/6.12.0/bin/mono-sgen64 : mono_handle_native_crash
    0x10e518746 - /Library/Frameworks/Mono.framework/Versions/6.12.0/bin/mono-sgen64 : altstack_handle_and_restore
    0x7ff823a01c31 - /System/Library/PrivateFrameworks/SkyLight.framework/Versions/A/SkyLight : SLDisplayBounds
    0x1152a7b48 - Unknown
    0x10ea7a6b6 - Unknown
    0x10e413562 - /Library/Frameworks/Mono.framework/Versions/6.12.0/bin/mono-sgen64 : mono_jit_runtime_invoke
    0x10e624872 - /Library/Frameworks/Mono.framework/Versions/6.12.0/bin/mono-sgen64 : mono_runtime_try_invoke
    0x10e623498 - /Library/Frameworks/Mono.framework/Versions/6.12.0/bin/mono-sgen64 : mono_runtime_class_init_full
    0x10e40af6c - /Library/Frameworks/Mono.framework/Versions/6.12.0/bin/mono-sgen64 : mono_jit_compile_method_inner
    0x10e40eaba - /Library/Frameworks/Mono.framework/Versions/6.12.0/bin/mono-sgen64 : mono_jit_compile_method_with_opt
    0x10e4b8e9e - /Library/Frameworks/Mono.framework/Versions/6.12.0/bin/mono-sgen64 : common_call_trampoline
    0x10e4b88e0 - /Library/Frameworks/Mono.framework/Versions/6.12.0/bin/mono-sgen64 : mono_magic_trampoline
    0x10e9f6393 - Unknown
    0x1121e514b - Unknown
    0x1151dc193 - Unknown
    0x1151d814b - Unknown
    0x11211c09b - Unknown
    0x11211bf2b - Unknown
    0x10ea777b3 - Unknown
    0x10ea75303 - Unknown
    0x10e413562 - /Library/Frameworks/Mono.framework/Versions/6.12.0/bin/mono-sgen64 : mono_jit_runtime_invoke
    0x10e622e97 - /Library/Frameworks/Mono.framework/Versions/6.12.0/bin/mono-sgen64 : mono_runtime_invoke_checked
    0x10e62b35e - /Library/Frameworks/Mono.framework/Versions/6.12.0/bin/mono-sgen64 : do_exec_main_checked
    0x10e473a2e - /Library/Frameworks/Mono.framework/Versions/6.12.0/bin/mono-sgen64 : mono_jit_exec
    0x10e476c95 - /Library/Frameworks/Mono.framework/Versions/6.12.0/bin/mono-sgen64 : mono_main
    0x10e402d88 - /Library/Frameworks/Mono.framework/Versions/6.12.0/bin/mono-sgen64 : main
    0x11222351e - Unknown

=================================================================
    Telemetry Dumper:
=================================================================
Pkilling 0x123145533882368x from 0x4599703040x
Entering thread summarizer pause from 0x4599703040x
Finished thread summarizer pause from 0x4599703040x.
Failed to create breadcrumb file (null)/crash_hash_0xd3b3c41ff

Waiting for dumping threads to resume

=================================================================
    External Debugger Dump:
=================================================================

=================================================================
    Basic Fault Address Reporting
=================================================================
Memory around native instruction pointer (0x7ff823a01c31):0x7ff823a01c21  89 fb 48 8b 05 06 c7 ff 3a 0f 10 00 0f 10 48 10  ..H.....:.....H.
0x7ff823a01c31  0f 11 4f 10 0f 11 07 89 f7 48 89 de e8 9d 00 fb  ..O......H......
0x7ff823a01c41  ff 48 89 d8 48 83 c4 08 5b 5d c3 55 48 89 e5 53  .H..H...[].UH..S
0x7ff823a01c51  48 83 ec 28 48 8b 05 4c d9 ff 3a 48 8b 00 48 89  H..(H..L..:H..H.

=================================================================
    Managed Stacktrace:
=================================================================
      at <unknown> <0xffffffff>
      at System.Windows.Forms.XplatUICarbon:CGDisplayBounds <0x000b7>
      at System.Windows.Forms.XplatUICarbon:get_WorkingArea <0x00072>
      at System.Windows.Forms.XplatUICarbon:get_VirtualScreen <0x00043>
      at System.Windows.Forms.XplatUI:get_VirtualScreen <0x00048>
      at System.Windows.Forms.Screen:.cctor <0x0017a>
      at System.Object:runtime_invoke_void <0x000a5>
      at <unknown> <0xffffffff>
      at System.Windows.Forms.Form:get_CreateParams <0x0062a>
      at DialogForm:get_CreateParams <0x00042>
      at System.Windows.Forms.Form:SetClientSizeCore <0x001c7>
      at System.Windows.Forms.Control:set_ClientSize <0x00048>
      at System.Windows.Forms.Form:set_ClientSize <0x00052>
      at System.Windows.Forms.Form:set_ClientSize <0x000d2>
      at System.Windows.Forms.FileDialog:.ctor <0x02662>
      at System.Windows.Forms.SaveFileDialog:.ctor <0x0003a>
      at System.Windows.Forms.SaveFileDialog:.ctor <0x0006a>
      at EVEMon.MainWindow:InitializeComponent <0x008aa>
      at EVEMon.MainWindow:.ctor <0x0010a>
      at EVEMon.MainWindow:.ctor <0x0006a>
      at <StartupAsync>d__4:MoveNext <0x00392>
      at System.Runtime.CompilerServices.AsyncTaskMethodBuilder:Start <0x000e2>
      at EVEMon.Program:StartupAsync <0x000a2>
      at EVEMon.Program:Main <0x00032>
      at System.Object:runtime_invoke_void <0x000a5>
=================================================================
[1]    2691 abort      mono EVEMon.exe
mgoeppner commented 2 years ago

@rafaga Thanks a bunch for testing it on OSX! Does running in wine help with the crashes at all?

https://www.mono-project.com/docs/about-mono/supported-platforms/macos/#windowsforms I did not realize that winforms is native 32bit only, which creates a massive catch-22 😢 I'll look some more into this and see if there is anything I can do to try to grease it. Unfortunately, I don't have a mac so testing this is hard -- is it okay if I ping you to check things?

mgoeppner commented 2 years ago

@ol97 you should be able to execute EVEMon.exe directly after chmodding it -- can you confirm if that helps? You should also run it from the same directory it is in, that may be why it cannot find the other assemblies.

mgoeppner commented 2 years ago

@njfox which version of mono were you using? It looks like that may be another libgdiplus headache with rendering which is causing that crash.

njfox commented 2 years ago
$ mono --version                                                                                                                                                         255 
Mono JIT compiler version 6.13.0 (main/4b5e2591eb2 Thu Mar 24 06:58:41 PM UTC 2022)
Copyright (C) Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
        TLS:           __thread
        SIGSEGV:       altstack
        Notifications: epoll
        Architecture:  amd64
        Disabled:      none
        Misc:          softdebug 
        Interpreter:   yes
        LLVM:          supported, not enabled.
        Suspend:       hybrid
        GC:            sgen (concurrent by default)
mgoeppner commented 2 years ago

Thanks, I'll try to dig a bit more into that -- some more of the custom rendering stuff evemon uses may just need to be gated behind a platform check, and use the default instead of the custom one on non-windows.

rafaga commented 2 years ago

@rafaga Thanks a bunch for testing it on OSX! Does running in wine help with the crashes at all?

https://www.mono-project.com/docs/about-mono/supported-platforms/macos/#windowsforms I did not realize that winforms is native 32bit only, which creates a massive catch-22 😢 I'll look some more into this and see if there is anything I can do to try to grease it. Unfortunately, I don't have a mac so testing this is hard -- is it okay if I ping you to check things?

I have no problem at all ... just ping and I will test it

ol97 commented 2 years ago

@ol97 you should be able to execute EVEMon.exe directly after chmodding it -- can you confirm if that helps? You should also run it from the same directory it is in, that may be why it cannot find the other assemblies.

I did chmod according to guide before that attempt. Seems like file names were the issue. After removing "EVEMon\" from the beginning of all file names it started (well tried to) and crashed right away.

EVEMon Version: 4.2.0.5040 .NET Runtime Version: 4.0.30319.42000 Operating System: Unix 5.15.34.1 Executable Path: /home/lukasz/EVEMon-binaries-4.2.0/EVEMon.exe System.AggregateException: One or more errors occurred. (/home/lukasz/EVEMon-binaries-4.2.0/Resources/eve-properties-en-US.xml.gzip not found!) ---> System.IO.FileNotFoundException: /home/lukasz/EVEMon-binaries-4.2.0/Resources/eve-properties-en-US.xml.gzip not found! at EVEMon.Common.Data.Datafile.GetFullPath (System.String filename) [0x0006f] in :0 at EVEMon.Common.Data.Datafile..ctor (System.String filename) [0x00014] in :0 at EVEMon.Common.Collections.Global.GlobalDatafileCollection..ctor () [0x000cb] in :0 at EVEMon.Common.EveMonClient.Initialize () [0x00055] in :0 at EVEMon.Program.StartupAsync () [0x00091] in :0 --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional (System.Boolean includeTaskCanceledExceptions) [0x00011] in <62b430b945fa49a19a75382ef03e7bed>:0 at System.Threading.Tasks.Task.Wait (System.Int32 millisecondsTimeout, System.Threading.CancellationToken cancellationToken) [0x00043] in <62b430b945fa49a19a75382ef03e7bed>:0 at System.Threading.Tasks.Task.Wait () [0x00000] in <62b430b945fa49a19a75382ef03e7bed>:0 at EVEMon.Program.Main () [0x00005] in :0 ---> (Inner Exception #0) System.IO.FileNotFoundException: /home/lukasz/EVEMon-binaries-4.2.0/Resources/eve-properties-en-US.xml.gzip not found! at EVEMon.Common.Data.Datafile.GetFullPath (System.String filename) [0x0006f] in :0 at EVEMon.Common.Data.Datafile..ctor (System.String filename) [0x00014] in :0 at EVEMon.Common.Collections.Global.GlobalDatafileCollection..ctor () [0x000cb] in :0 at EVEMon.Common.EveMonClient.Initialize () [0x00055] in :0 at EVEMon.Program.StartupAsync () [0x00091] in :0 <---

System.IO.FileNotFoundException: /home/lukasz/EVEMon-binaries-4.2.0/Resources/eve-properties-en-US.xml.gzip not found! at EVEMon.Common.Data.Datafile.GetFullPath (System.String filename) [0x0006f] in :0 at EVEMon.Common.Data.Datafile..ctor (System.String filename) [0x00014] in :0 at EVEMon.Common.Collections.Global.GlobalDatafileCollection..ctor () [0x000cb] in :0 at EVEMon.Common.EveMonClient.Initialize () [0x00055] in :0 at EVEMon.Program.StartupAsync () [0x00091] in :0

Datafile report:

Diagnostic Log: 0d 0h 00m 00s > Starting up 0d 0h 00m 00s > EveMonClient.Initialize - begin 0d 0h 00m 00s > GlobalDatafileCollection..ctor - Couldn't compute datafiles checksums. FIPS was enforced, the datafiles were missing, or we couldn't copy to %APPDATA%.

0d 0h 00m 00s > ExceptionHandler.LogException - Exception caught and rethrown System.IO.FileNotFoundException: /home/lukasz/EVEMon-binaries-4.2.0/Resources/eve-properties-en-US.xml.gzip not found! at EVEMon.Common.Data.Datafile.GetFullPath (System.String filename) [0x0006f] in :0 at EVEMon.Common.Data.Datafile..ctor (System.String filename) [0x00014] in :0 at EVEMon.Common.Collections.Global.GlobalDatafileCollection..ctor () [0x0001c] in :0

https://prnt.sc/1M0eqDJwgaEb

So to me it seems like directory structure is a bit "flattened" and all of "Resources\..." stuff will need to be renamed and moved to correct directories.

I will try to rename everything and move to correct directories tomorrow since it's getting late today.

idooo commented 2 years ago

Have similar Mac OSX issue as @rafaga Feel free to ping me too if you need more testers

willismonroe commented 2 years ago

@ol97

This script (python3) will fix the directory structure:

import os
from pathlib import Path

for file in os.listdir():
    if file.startswith('EVEMon'):
        dirs = file.split('\\')[:-1]
        file_name = file.split('\\')[-1]
        Path('/'.join(dirs)).mkdir(parents=True, exist_ok=True)
        os.rename(file, '/'.join(dirs) + '/' + file_name)
EntropicEffect commented 2 years ago

@njfox do you have .net framework installed on your wine prefix? (version?)

EntropicEffect commented 2 years ago

Here's a rebuild of the binaries as the original artifact is no longer available

EVEmon_Binaries

Mathew-D commented 1 year ago

Can someone post the binaries again please

mgoeppner commented 1 year ago

@Mathew-D you can download the artifacts with linux support from the CI run I just did here:

https://app.circleci.com/pipelines/github/mgoeppner/evemon/44/workflows/8e8f1fda-b5a4-47aa-ab30-8865b105af72/jobs/41/artifacts

dCosminn commented 1 year ago

It's crashing here when adding a character, the moment i click to import ESI key. The import works but it's really limited, only the skillplan is added, i can't add other features like industry and stuff and can't add another character.

image

Ubuntu 22.04 mono 6.12.0.182

One of the errors i get in the terminal is "libgluezilla not found. To have webbrowser support, you need libgluezilla installed" i'm using Firefox and maybe this is the issue, after google'ing a little seems to be a old bug in the mono?

Terminal:

cosmin@H-Linux:~/Downloads/EVEMon$ mono EVEMon.exe
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: cHRM chunk does not match sRGB
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: cHRM chunk does not match sRGB
libpng warning: iCCP: known incorrect sRGB profile
SendMessage (25165896, 0xb, (nil), (nil))
SendMessage (25165896, 0xb, 0x1, (nil))
SendMessage (25168690, 0x1037, (nil), (nil))
SendMessage (25168690, 0x1036, (nil), 0x18000)
SendMessage (25168704, 0x1037, (nil), (nil))
SendMessage (25168704, 0x1036, (nil), 0x18000)
SendMessage (25168710, 0x1037, (nil), (nil))
SendMessage (25168710, 0x1036, (nil), 0x18000)
libgluezilla not found. To have webbrowser support, you need libgluezilla installed
SendMessage (25168718, 0x1037, (nil), (nil))
SendMessage (25168718, 0x1036, (nil), 0x18000)
libgluezilla not found. To have webbrowser support, you need libgluezilla installed
SendMessage (25168726, 0x1037, (nil), (nil))
SendMessage (25168726, 0x1036, (nil), 0x18000)
SendMessage (25168732, 0x1037, (nil), (nil))
SendMessage (25168732, 0x1036, (nil), 0x18000)
SendMessage (25168738, 0x1037, (nil), (nil))
SendMessage (25168738, 0x1036, (nil), 0x18000)
SendMessage (25168744, 0x1037, (nil), (nil))
SendMessage (25168744, 0x1036, (nil), 0x18000)
SendMessage (25168750, 0x1037, (nil), (nil))
SendMessage (25168750, 0x1036, (nil), 0x18000)
SendMessage (25168764, 0x1037, (nil), (nil))
SendMessage (25168764, 0x1036, (nil), 0x18000)
SendMessage (25168772, 0x1037, (nil), (nil))
SendMessage (25168772, 0x1036, (nil), 0x18000)
SendMessage (25165896, 0xb, (nil), (nil))
SendMessage (25165896, 0xb, 0x1, (nil))
SendMessage (25165896, 0xb, (nil), (nil))
SendMessage (25165896, 0xb, 0x1, (nil))
SendMessage (25165896, 0xb, (nil), (nil))
SendMessage (25165896, 0xb, 0x1, (nil))
[ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object
  at System.Windows.Forms.XplatUIX11.DestroyOffscreenDrawable (System.Object offscreen_drawable) [0x00000] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.XplatUI.DestroyOffscreenDrawable (System.Object offscreen_drawable) [0x00000] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Control+DoubleBuffer.Dispose () [0x00016] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Control+DoubleBuffer.Finalize () [0x00000] in <28e46de2d20c496895000ef0abfc2106>:0 
EVEMon Version: 4.2.0.5040
.NET Runtime Version: 4.0.30319.42000
Operating System: Unix 5.15.0.53
Executable Path: /home/cosmin/Downloads/EVEMon/EVEMon.exe
System.NullReferenceException: Object reference not set to an instance of an object
  at System.Windows.Forms.WebBrowser.Refresh (System.Windows.Forms.WebBrowserRefreshOption opt) [0x00042] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.WebBrowser.Refresh () [0x00000] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Control.OnEnabledChanged (System.EventArgs e) [0x0004b] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Control.OnParentEnabledChanged (System.EventArgs e) [0x00008] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Control.OnEnabledChanged (System.EventArgs e) [0x00082] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Control.OnParentEnabledChanged (System.EventArgs e) [0x00008] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Control.OnEnabledChanged (System.EventArgs e) [0x00082] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Control.OnParentEnabledChanged (System.EventArgs e) [0x00008] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Control.OnEnabledChanged (System.EventArgs e) [0x00082] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Control.OnParentEnabledChanged (System.EventArgs e) [0x00008] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Control.OnEnabledChanged (System.EventArgs e) [0x00082] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Control.OnParentEnabledChanged (System.EventArgs e) [0x00008] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Control.OnEnabledChanged (System.EventArgs e) [0x00082] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Control.OnParentEnabledChanged (System.EventArgs e) [0x00008] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Control.OnEnabledChanged (System.EventArgs e) [0x00082] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Control.OnParentEnabledChanged (System.EventArgs e) [0x00008] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Control.OnEnabledChanged (System.EventArgs e) [0x00082] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Control.OnParentEnabledChanged (System.EventArgs e) [0x00008] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Control.OnEnabledChanged (System.EventArgs e) [0x00082] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Control.OnParentEnabledChanged (System.EventArgs e) [0x00008] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Control.OnEnabledChanged (System.EventArgs e) [0x00082] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Control.OnParentEnabledChanged (System.EventArgs e) [0x00008] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Control.OnEnabledChanged (System.EventArgs e) [0x00082] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Control.OnParentEnabledChanged (System.EventArgs e) [0x00008] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Control.OnEnabledChanged (System.EventArgs e) [0x00082] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Control.OnParentEnabledChanged (System.EventArgs e) [0x00008] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Control.OnEnabledChanged (System.EventArgs e) [0x00082] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Control.ChangeParent (System.Windows.Forms.Control new_parent) [0x00096] in <28e46de2d20c496895000ef0abfc2106>:0 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control.ChangeParent(System.Windows.Forms.Control)
  at System.Windows.Forms.Control+ControlCollection.Add (System.Windows.Forms.Control value) [0x00143] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.TabControl+ControlCollection.Add (System.Windows.Forms.Control value) [0x0002f] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.TabControl.InsertTab (System.Int32 index, System.Windows.Forms.TabPage value) [0x00014] in <28e46de2d20c496895000ef0abfc2106>:0 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.TabControl.InsertTab(int,System.Windows.Forms.TabPage)
  at System.Windows.Forms.TabControl+TabPageCollection.Insert (System.Int32 index, System.Windows.Forms.TabPage tabPage) [0x00000] in <28e46de2d20c496895000ef0abfc2106>:0 
  at EVEMon.MainWindow.LayoutTabPages () [0x00143] in <1e774a83681d46ebbc5ae8a17ca04587>:0 
  at EVEMon.MainWindow.UpdateTabs () [0x00000] in <1e774a83681d46ebbc5ae8a17ca04587>:0 
  at EVEMon.MainWindow.EveMonClient_MonitoredCharacterCollectionChanged (System.Object sender, System.EventArgs e) [0x00032] in <1e774a83681d46ebbc5ae8a17ca04587>:0 
  at EVEMon.Common.Extensions.EventHandlerExtensions.ThreadSafeInvoke (System.EventHandler eventHandler, System.Object sender, System.EventArgs e) [0x00055] in <925b90f3f3ec4cf89ed1dd2feb26cf47>:0 
  at EVEMon.Common.EveMonClient.OnMonitoredCharactersChanged () [0x0001d] in <925b90f3f3ec4cf89ed1dd2feb26cf47>:0 
  at EVEMon.Common.Collections.Global.GlobalMonitoredCharacterCollection.OnCharacterMonitoringChanged (EVEMon.Common.Models.Character character, System.Boolean value) [0x0001e] in <925b90f3f3ec4cf89ed1dd2feb26cf47>:0 
  at EVEMon.Common.Models.Character.set_Monitored (System.Boolean value) [0x00005] in <925b90f3f3ec4cf89ed1dd2feb26cf47>:0 
  at EVEMon.Common.Collections.Global.GlobalCharacterCollection.Add (EVEMon.Common.Models.Character character, System.Boolean notify, System.Boolean monitor) [0x0000f] in <925b90f3f3ec4cf89ed1dd2feb26cf47>:0 
  at EVEMon.Common.Models.ESIKey.Update (EVEMon.Common.CustomEventArgs.ESIKeyCreationEventArgs e) [0x000b6] in <925b90f3f3ec4cf89ed1dd2feb26cf47>:0 
  at EVEMon.Common.CustomEventArgs.ESIKeyCreationEventArgs.CreateOrUpdate () [0x0002f] in <925b90f3f3ec4cf89ed1dd2feb26cf47>:0 
  at EVEMon.ApiCredentialsManagement.EsiKeyUpdateOrAdditionWindow.Complete () [0x00009] in <1e774a83681d46ebbc5ae8a17ca04587>:0 
  at EVEMon.ApiCredentialsManagement.EsiKeyUpdateOrAdditionWindow.ButtonNext_Click (System.Object sender, System.EventArgs e) [0x00013] in <1e774a83681d46ebbc5ae8a17ca04587>:0 
  at System.Windows.Forms.Control.OnClick (System.EventArgs e) [0x00019] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Button.OnClick (System.EventArgs e) [0x00011] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.ButtonBase.OnMouseUp (System.Windows.Forms.MouseEventArgs mevent) [0x00069] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Button.OnMouseUp (System.Windows.Forms.MouseEventArgs mevent) [0x00000] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Control.WmLButtonUp (System.Windows.Forms.Message& m) [0x00078] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x001b4] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.ButtonBase.WndProc (System.Windows.Forms.Message& m) [0x00037] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Button.WndProc (System.Windows.Forms.Message& m) [0x00000] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x0000b] in <28e46de2d20c496895000ef0abfc2106>:0 
  at System.Windows.Forms.NativeWindow.WndProc (System.IntPtr hWnd, System.Windows.Forms.Msg msg, System.IntPtr wParam, System.IntPtr lParam) [0x00085] in <28e46de2d20c496895000ef0abfc2106>:0 

Datafile report:
  eve-masteries-en-US.xml.gzip (21KiB - 3668b50996fc40a0c0853fec427b5712)
  eve-skills-en-US.xml.gzip (26KiB - 0a84e91dcbece4b0d8d1e56f2619f5c5)
  eve-geography-en-US.xml.gzip (1011KiB - 957829e60281e4d412a0eef3020aeef9)
  eve-properties-en-US.xml.gzip (57KiB - 2b61fbc476da11385fc1ab2f058d91e8)
  eve-blueprints-en-US.xml.gzip (239KiB - 410280ee6121f561ac7f09354972ce38)
  eve-certificates-en-US.xml.gzip (45KiB - 540000f7c111354769a54fa31e57d411)
  eve-reprocessing-en-US.xml.gzip (112KiB - 8d9835c8b474942685888927396f4b7a)
  eve-items-en-US.xml.gzip (3870KiB - a551e809290c88c634953b1c713daa1b)

Diagnostic Log:
0d 0h 00m 00s > Starting up
0d 0h 00m 01s > EveMonClient.Initialize - begin
0d 0h 00m 01s > EveMonClient.Initialize - done
0d 0h 00m 01s > Settings.Import - begin
0d 0h 00m 01s > EveMonClient.OnSchedulerChanged
0d 0h 00m 01s > Settings.Import - done
0d 0h 00m 01s > EveMonClient.OnSettingsChanged
0d 0h 00m 01s > Main loop - start
0d 0h 00m 03s > EveMonClient.Run
0d 0h 00m 03s > TimeCheck.ScheduleCheck - in 00:00:01
0d 0h 00m 03s > UpdateManager.ScheduleCheck - in 00:00:10
0d 0h 00m 03s > Main window - loaded
0d 0h 00m 03s > Datafiles.Load - begin
0d 0h 00m 04s > EveMonClient.OnServerStatusUpdated

0d 0h 00m 08s > ExceptionHandler.LogException - Handled exception
    System.EntryPointNotFoundException: LoadCursorFromFile assembly:<unknown assembly> type:<unknown type> member:(null)
  at (wrapper managed-to-native) EVEMon.Common.Controls.NativeMethods.LoadCursorFromFile(string)
  at EVEMon.Common.Controls.CustomCursors.GetCursorFromResource (System.Byte[] resource) [0x00036] in <925b90f3f3ec4cf89ed1dd2feb26cf47>:0 

0d 0h 00m 23s > Datafiles.Load - done
0d 0h 00m 23s > Settings.ImportData - begin
0d 0h 00m 23s > EveMonClient.OnCharacterCollectionChanged
0d 0h 00m 23s > EveMonClient.OnESIKeyCollectionChanged
0d 0h 00m 23s > EveMonClient.OnMonitoredCharactersChanged
0d 0h 00m 23s > Settings.ImportData - done
0d 0h 00m 23s > EveMonClient.OnSettingsChanged
0d 0h 00m 45s > EveMonClient.OnMonitoredCharactersChanged
mgoeppner commented 1 year ago

Yes, that sounds like it could be a mono issue -- does adding a character normally through file -> add character work?

dCosminn commented 1 year ago

Yes, still crashing when trying to import a character.xml
The errors i get, left is through api, right is through importing a character.xml:
https://www.diffchecker.com/GvHa9LwC/

I also removed mono completely and installed the preview version but no luck. If i have time I'm gonna try a older mono version. Tried with different browser, Chrome and still didn't work.

abnotus commented 11 months ago

Not sure if this is still being worked on - I tried with both 4.2.0 binaries and 4.2.2 ones

On Wine: `EVEMon Version: 4.2.0.5032 .NET Runtime Version: 4.0.30319.42000 Operating System: Microsoft Windows NT 10.0.7601.65536 Executable Path: Z:\home\abnotus\stuff\EVEMon-binaries-4.2.0\EVEMon\EVEMon.exe System.ArgumentException: A null reference or invalid value was found [GDI+ status: InvalidParameter] at System.Drawing.GDIPlus.CheckStatus (System.Drawing.Status status) [0x00098] in :0 at System.Drawing.Bitmap.FromHicon (System.IntPtr hicon) [0x00008] in :0 at System.Drawing.Icon..ctor (System.IntPtr handle) [0x00018] in :0 at (wrapper remoting-invoke-with-check) System.Drawing.Icon..ctor(intptr) at System.Drawing.Icon.FromHandle (System.IntPtr handle) [0x00018] in :0 at System.Windows.Forms.Cursor.get_HotSpot () [0x00015] in :0 at System.Windows.Forms.ToolStrip.UpdateToolTip (System.Windows.Forms.ToolStripItem item) [0x0009b] in :0 at (wrapper remoting-invoke-with-check) System.Windows.Forms.ToolStrip.UpdateToolTip(System.Windows.Forms.ToolStripItem) at System.Windows.Forms.ToolStripItem.OnMouseHover (System.EventArgs e) [0x00025] in :0 at System.Windows.Forms.ToolStripItem.HandleMouseHover (System.EventArgs e) [0x00001] in :0 at System.Windows.Forms.ToolStripItem.FireEventInteractive (System.EventArgs e, System.Windows.Forms.ToolStripItemEventType met) [0x00049] in :0 at System.Windows.Forms.ToolStripItem.FireEvent (System.EventArgs e, System.Windows.Forms.ToolStripItemEventType met) [0x00086] in :0 at (wrapper remoting-invoke-with-check) System.Windows.Forms.ToolStripItem.FireEvent(System.EventArgs,System.Windows.Forms.ToolStripItemEventType) at System.Windows.Forms.MouseHoverTimer.OnTick (System.Object sender, System.EventArgs e) [0x0002c] in :0 at System.Windows.Forms.Timer.OnTick (System.EventArgs e) [0x0000a] in :0 at System.Windows.Forms.Timer+TimerNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x0002c] in :0 at System.Windows.Forms.NativeWindow.Callback (System.Windows.Forms.Message& m) [0x00025] in :0

Datafile report: eve-blueprints-en-US.xml.gzip (241KiB - 881582dbbf90e4ceeb68a3a92ad5fb05) eve-certificates-en-US.xml.gzip (45KiB - 540000f7c111354769a54fa31e57d411) eve-geography-en-US.xml.gzip (1012KiB - bf28397b579b77afad83da9c748d5694) eve-items-en-US.xml.gzip (4239KiB - 85b31b43771fb593979ef09b864e7fba) eve-masteries-en-US.xml.gzip (21KiB - 3668b50996fc40a0c0853fec427b5712) eve-properties-en-US.xml.gzip (58KiB - 63e778ccf4c7ca639f9587ca913476d8) eve-reprocessing-en-US.xml.gzip (113KiB - 8559d3f1a0e013f880655e4c4c4646fe) eve-skills-en-US.xml.gzip (26KiB - bfe90ea8fcb5ba855e872f375ea1bf2b)

Diagnostic Log: 0d 0h 00m 00s > Starting up 0d 0h 00m 00s > EveMonClient.Initialize - begin 0d 0h 00m 00s > EveMonClient.Initialize - done 0d 0h 00m 00s > Settings.TryDeserializeFromFile - begin 0d 0h 00m 00s > Settings.TryDeserializeFromFile - done 0d 0h 00m 00s > Settings.Import - begin 0d 0h 00m 00s > EveMonClient.OnSchedulerChanged 0d 0h 00m 00s > Settings.Import - done 0d 0h 00m 00s > EveMonClient.OnSettingsChanged 0d 0h 00m 00s > Main loop - start 0d 0h 00m 01s > EveMonClient.Run 0d 0h 00m 01s > TimeCheck.ScheduleCheck - in 00:00:01 0d 0h 00m 01s > UpdateManager.ScheduleCheck - in 00:00:10 0d 0h 00m 01s > Main window - loaded 0d 0h 00m 01s > Datafiles.Load - begin 0d 0h 00m 02s > TimeCheck.BeginCheckAsync 0d 0h 00m 02s > TimeCheck.OnCheckCompleted - Synchronised 0d 0h 00m 02s > TimeCheck.ScheduleCheck - in 1.00:00:00 0d 0h 00m 02s > EveMonClient.OnServerStatusUpdated 0d 0h 00m 05s > Datafiles.Load - done 0d 0h 00m 05s > Settings.ImportData - begin 0d 0h 00m 05s > EveMonClient.OnCharacterCollectionChanged 0d 0h 00m 05s > EveMonClient.OnESIKeyCollectionChanged 0d 0h 00m 05s > EveMonClient.OnMonitoredCharactersChanged 0d 0h 00m 05s > Settings.ImportData - done 0d 0h 00m 05s > EveMonClient.OnSettingsChanged `

and on mono:

`EVEMon Version: 4.2.0.5032 .NET Runtime Version: 4.0.30319.42000 Operating System: Unix 6.5.9.2 Executable Path: /home/abnotus/stuff/EVEMon-binaries-4.2.0/EVEMon/EVEMon.exe System.EntryPointNotFoundException: GetScrollInfo assembly: type: member:(null) at (wrapper managed-to-native) EVEMon.Common.Controls.NativeMethods.GetScrollInfo(intptr,int,EVEMon.Common.Controls.NativeMethods/Scrollinfo&) at EVEMon.Common.Controls.NativeMethods.GetVerticalScrollBarPosition (System.Windows.Forms.Control control) [0x00030] in <8379b0648d954a339502bcabd4b22c0f>:0 at EVEMon.ApiCredentialsManagement.EsiKeysManagementWindow.UpdateCharactersListContent () [0x00000] in <7f942678d4824c0dbfcec052be4a99fb>:0 at EVEMon.ApiCredentialsManagement.EsiKeysManagementWindow.UpdateCharactersList () [0x00017] in <7f942678d4824c0dbfcec052be4a99fb>:0 at EVEMon.ApiCredentialsManagement.EsiKeysManagementWindow.OnLoad (System.EventArgs e) [0x00088] in <7f942678d4824c0dbfcec052be4a99fb>:0 at System.Windows.Forms.Form.OnLoadInternal (System.EventArgs e) [0x00023] in <95d2b0fe71cd43ad8f3dadc76ea9ef47>:0

Datafile report: eve-properties-en-US.xml.gzip (60KiB - b2c03b45f8475be109cd48c84268a5f4) eve-items-en-US.xml.gzip (2103KiB - 17c5a379215eb882c6b31bf44264ce80) eve-skills-en-US.xml.gzip (23KiB - c08881d6d8e749885f18630573679524) eve-certificates-en-US.xml.gzip (45KiB - 540000f7c111354769a54fa31e57d411) eve-masteries-en-US.xml.gzip (21KiB - 3668b50996fc40a0c0853fec427b5712) eve-blueprints-en-US.xml.gzip (201KiB - 219eb76e35e9c1df32d2b7f21268582c) eve-geography-en-US.xml.gzip (531KiB - 20e2c8177ddb8432f5922ef86466077f) eve-reprocessing-en-US.xml.gzip (106KiB - 0b9a9421778342be01db456a0fd34b5a)

Diagnostic Log: 0d 0h 00m 00s > Starting up 0d 0h 00m 00s > EveMonClient.Initialize - begin 0d 0h 00m 00s > EveMonClient.Initialize - done 0d 0h 00m 00s > Settings.TryDeserializeFromFile - begin 0d 0h 00m 02s > Settings.TryDeserializeFromFile - done 0d 0h 00m 02s > Settings.Import - begin 0d 0h 00m 02s > EveMonClient.OnSchedulerChanged 0d 0h 00m 02s > Settings.Import - done 0d 0h 00m 02s > EveMonClient.OnSettingsChanged 0d 0h 00m 02s > Main loop - start 0d 0h 00m 02s > EveMonClient.Run 0d 0h 00m 02s > TimeCheck.ScheduleCheck - in 00:00:01 0d 0h 00m 02s > UpdateManager.ScheduleCheck - in 00:00:10 0d 0h 00m 02s > Main window - loaded 0d 0h 00m 02s > Datafiles.Load - begin

0d 0h 00m 03s > ExceptionHandler.LogException - Handled exception System.EntryPointNotFoundException: LoadCursorFromFile assembly: type: member:(null) at (wrapper managed-to-native) EVEMon.Common.Controls.NativeMethods.LoadCursorFromFile(string) at EVEMon.Common.Controls.CustomCursors.GetCursorFromResource (System.Byte[] resource) [0x00036] in <8379b0648d954a339502bcabd4b22c0f>:0 `

Both happen when trying to add characters

mgoeppner commented 11 months ago

Not sure if this is still being worked on - I tried with both 4.2.0 binaries and 4.2.2 ones

On Wine: `EVEMon Version: 4.2.0.5032 .NET Runtime Version: 4.0.30319.42000 Operating System: Microsoft Windows NT 10.0.7601.65536 Executable Path: Z:\home\abnotus\stuff\EVEMon-binaries-4.2.0\EVEMon\EVEMon.exe System.ArgumentException: A null reference or invalid value was found [GDI+ status: InvalidParameter] at System.Drawing.GDIPlus.CheckStatus (System.Drawing.Status status) [0x00098] in :0 at System.Drawing.Bitmap.FromHicon (System.IntPtr hicon) [0x00008] in :0 at System.Drawing.Icon..ctor (System.IntPtr handle) [0x00018] in :0 at (wrapper remoting-invoke-with-check) System.Drawing.Icon..ctor(intptr) at System.Drawing.Icon.FromHandle (System.IntPtr handle) [0x00018] in :0 at System.Windows.Forms.Cursor.get_HotSpot () [0x00015] in :0 at System.Windows.Forms.ToolStrip.UpdateToolTip (System.Windows.Forms.ToolStripItem item) [0x0009b] in :0 at (wrapper remoting-invoke-with-check) System.Windows.Forms.ToolStrip.UpdateToolTip(System.Windows.Forms.ToolStripItem) at System.Windows.Forms.ToolStripItem.OnMouseHover (System.EventArgs e) [0x00025] in :0 at System.Windows.Forms.ToolStripItem.HandleMouseHover (System.EventArgs e) [0x00001] in :0 at System.Windows.Forms.ToolStripItem.FireEventInteractive (System.EventArgs e, System.Windows.Forms.ToolStripItemEventType met) [0x00049] in :0 at System.Windows.Forms.ToolStripItem.FireEvent (System.EventArgs e, System.Windows.Forms.ToolStripItemEventType met) [0x00086] in :0 at (wrapper remoting-invoke-with-check) System.Windows.Forms.ToolStripItem.FireEvent(System.EventArgs,System.Windows.Forms.ToolStripItemEventType) at System.Windows.Forms.MouseHoverTimer.OnTick (System.Object sender, System.EventArgs e) [0x0002c] in :0 at System.Windows.Forms.Timer.OnTick (System.EventArgs e) [0x0000a] in :0 at System.Windows.Forms.Timer+TimerNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x0002c] in :0 at System.Windows.Forms.NativeWindow.Callback (System.Windows.Forms.Message& m) [0x00025] in :0

Datafile report: eve-blueprints-en-US.xml.gzip (241KiB - 881582dbbf90e4ceeb68a3a92ad5fb05) eve-certificates-en-US.xml.gzip (45KiB - 540000f7c111354769a54fa31e57d411) eve-geography-en-US.xml.gzip (1012KiB - bf28397b579b77afad83da9c748d5694) eve-items-en-US.xml.gzip (4239KiB - 85b31b43771fb593979ef09b864e7fba) eve-masteries-en-US.xml.gzip (21KiB - 3668b50996fc40a0c0853fec427b5712) eve-properties-en-US.xml.gzip (58KiB - 63e778ccf4c7ca639f9587ca913476d8) eve-reprocessing-en-US.xml.gzip (113KiB - 8559d3f1a0e013f880655e4c4c4646fe) eve-skills-en-US.xml.gzip (26KiB - bfe90ea8fcb5ba855e872f375ea1bf2b)

Diagnostic Log: 0d 0h 00m 00s > Starting up 0d 0h 00m 00s > EveMonClient.Initialize - begin 0d 0h 00m 00s > EveMonClient.Initialize - done 0d 0h 00m 00s > Settings.TryDeserializeFromFile - begin 0d 0h 00m 00s > Settings.TryDeserializeFromFile - done 0d 0h 00m 00s > Settings.Import - begin 0d 0h 00m 00s > EveMonClient.OnSchedulerChanged 0d 0h 00m 00s > Settings.Import - done 0d 0h 00m 00s > EveMonClient.OnSettingsChanged 0d 0h 00m 00s > Main loop - start 0d 0h 00m 01s > EveMonClient.Run 0d 0h 00m 01s > TimeCheck.ScheduleCheck - in 00:00:01 0d 0h 00m 01s > UpdateManager.ScheduleCheck - in 00:00:10 0d 0h 00m 01s > Main window - loaded 0d 0h 00m 01s > Datafiles.Load - begin 0d 0h 00m 02s > TimeCheck.BeginCheckAsync 0d 0h 00m 02s > TimeCheck.OnCheckCompleted - Synchronised 0d 0h 00m 02s > TimeCheck.ScheduleCheck - in 1.00:00:00 0d 0h 00m 02s > EveMonClient.OnServerStatusUpdated 0d 0h 00m 05s > Datafiles.Load - done 0d 0h 00m 05s > Settings.ImportData - begin 0d 0h 00m 05s > EveMonClient.OnCharacterCollectionChanged 0d 0h 00m 05s > EveMonClient.OnESIKeyCollectionChanged 0d 0h 00m 05s > EveMonClient.OnMonitoredCharactersChanged 0d 0h 00m 05s > Settings.ImportData - done 0d 0h 00m 05s > EveMonClient.OnSettingsChanged `

and on mono:

`EVEMon Version: 4.2.0.5032 .NET Runtime Version: 4.0.30319.42000 Operating System: Unix 6.5.9.2 Executable Path: /home/abnotus/stuff/EVEMon-binaries-4.2.0/EVEMon/EVEMon.exe System.EntryPointNotFoundException: GetScrollInfo assembly: type: member:(null) at (wrapper managed-to-native) EVEMon.Common.Controls.NativeMethods.GetScrollInfo(intptr,int,EVEMon.Common.Controls.NativeMethods/Scrollinfo&) at EVEMon.Common.Controls.NativeMethods.GetVerticalScrollBarPosition (System.Windows.Forms.Control control) [0x00030] in <8379b0648d954a339502bcabd4b22c0f>:0 at EVEMon.ApiCredentialsManagement.EsiKeysManagementWindow.UpdateCharactersListContent () [0x00000] in <7f942678d4824c0dbfcec052be4a99fb>:0 at EVEMon.ApiCredentialsManagement.EsiKeysManagementWindow.UpdateCharactersList () [0x00017] in <7f942678d4824c0dbfcec052be4a99fb>:0 at EVEMon.ApiCredentialsManagement.EsiKeysManagementWindow.OnLoad (System.EventArgs e) [0x00088] in <7f942678d4824c0dbfcec052be4a99fb>:0 at System.Windows.Forms.Form.OnLoadInternal (System.EventArgs e) [0x00023] in <95d2b0fe71cd43ad8f3dadc76ea9ef47>:0

Datafile report: eve-properties-en-US.xml.gzip (60KiB - b2c03b45f8475be109cd48c84268a5f4) eve-items-en-US.xml.gzip (2103KiB - 17c5a379215eb882c6b31bf44264ce80) eve-skills-en-US.xml.gzip (23KiB - c08881d6d8e749885f18630573679524) eve-certificates-en-US.xml.gzip (45KiB - 540000f7c111354769a54fa31e57d411) eve-masteries-en-US.xml.gzip (21KiB - 3668b50996fc40a0c0853fec427b5712) eve-blueprints-en-US.xml.gzip (201KiB - 219eb76e35e9c1df32d2b7f21268582c) eve-geography-en-US.xml.gzip (531KiB - 20e2c8177ddb8432f5922ef86466077f) eve-reprocessing-en-US.xml.gzip (106KiB - 0b9a9421778342be01db456a0fd34b5a)

Diagnostic Log: 0d 0h 00m 00s > Starting up 0d 0h 00m 00s > EveMonClient.Initialize - begin 0d 0h 00m 00s > EveMonClient.Initialize - done 0d 0h 00m 00s > Settings.TryDeserializeFromFile - begin 0d 0h 00m 02s > Settings.TryDeserializeFromFile - done 0d 0h 00m 02s > Settings.Import - begin 0d 0h 00m 02s > EveMonClient.OnSchedulerChanged 0d 0h 00m 02s > Settings.Import - done 0d 0h 00m 02s > EveMonClient.OnSettingsChanged 0d 0h 00m 02s > Main loop - start 0d 0h 00m 02s > EveMonClient.Run 0d 0h 00m 02s > TimeCheck.ScheduleCheck - in 00:00:01 0d 0h 00m 02s > UpdateManager.ScheduleCheck - in 00:00:10 0d 0h 00m 02s > Main window - loaded 0d 0h 00m 02s > Datafiles.Load - begin

0d 0h 00m 03s > ExceptionHandler.LogException - Handled exception System.EntryPointNotFoundException: LoadCursorFromFile assembly: type: member:(null) at (wrapper managed-to-native) EVEMon.Common.Controls.NativeMethods.LoadCursorFromFile(string) at EVEMon.Common.Controls.CustomCursors.GetCursorFromResource (System.Byte[] resource) [0x00036] in <8379b0648d954a339502bcabd4b22c0f>:0 `

Both happen when trying to add characters

Hi -- Are you using a build from this branch? The release page builds do not include the fixes in this branch.

abnotus commented 11 months ago

Not sure if this is still being worked on - I tried with both 4.2.0 binaries and 4.2.2 ones On Wine: EVEMon Version: 4.2.0.5032 .NET Runtime Version: 4.0.30319.42000 Operating System: Microsoft Windows NT 10.0.7601.65536 Executable Path: Z:\home\abnotus\stuff\EVEMon-binaries-4.2.0\EVEMon\EVEMon.exe System.ArgumentException: A null reference or invalid value was found [GDI+ status: InvalidParameter] at System.Drawing.GDIPlus.CheckStatus (System.Drawing.Status status) [0x00098] in :0 at System.Drawing.Bitmap.FromHicon (System.IntPtr hicon) [0x00008] in :0 at System.Drawing.Icon..ctor (System.IntPtr handle) [0x00018] in :0 at (wrapper remoting-invoke-with-check) System.Drawing.Icon..ctor(intptr) at System.Drawing.Icon.FromHandle (System.IntPtr handle) [0x00018] in :0 at System.Windows.Forms.Cursor.get_HotSpot () [0x00015] in :0 at System.Windows.Forms.ToolStrip.UpdateToolTip (System.Windows.Forms.ToolStripItem item) [0x0009b] in :0 at (wrapper remoting-invoke-with-check) System.Windows.Forms.ToolStrip.UpdateToolTip(System.Windows.Forms.ToolStripItem) at System.Windows.Forms.ToolStripItem.OnMouseHover (System.EventArgs e) [0x00025] in :0 at System.Windows.Forms.ToolStripItem.HandleMouseHover (System.EventArgs e) [0x00001] in :0 at System.Windows.Forms.ToolStripItem.FireEventInteractive (System.EventArgs e, System.Windows.Forms.ToolStripItemEventType met) [0x00049] in :0 at System.Windows.Forms.ToolStripItem.FireEvent (System.EventArgs e, System.Windows.Forms.ToolStripItemEventType met) [0x00086] in :0 at (wrapper remoting-invoke-with-check) System.Windows.Forms.ToolStripItem.FireEvent(System.EventArgs,System.Windows.Forms.ToolStripItemEventType) at System.Windows.Forms.MouseHoverTimer.OnTick (System.Object sender, System.EventArgs e) [0x0002c] in :0 at System.Windows.Forms.Timer.OnTick (System.EventArgs e) [0x0000a] in :0 at System.Windows.Forms.Timer+TimerNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x0002c] in :0 at System.Windows.Forms.NativeWindow.Callback (System.Windows.Forms.Message& m) [0x00025] in :0 Datafile report: eve-blueprints-en-US.xml.gzip (241KiB - 881582dbbf90e4ceeb68a3a92ad5fb05) eve-certificates-en-US.xml.gzip (45KiB - 540000f7c111354769a54fa31e57d411) eve-geography-en-US.xml.gzip (1012KiB - bf28397b579b77afad83da9c748d5694) eve-items-en-US.xml.gzip (4239KiB - 85b31b43771fb593979ef09b864e7fba) eve-masteries-en-US.xml.gzip (21KiB - 3668b50996fc40a0c0853fec427b5712) eve-properties-en-US.xml.gzip (58KiB - 63e778ccf4c7ca639f9587ca913476d8) eve-reprocessing-en-US.xml.gzip (113KiB - 8559d3f1a0e013f880655e4c4c4646fe) eve-skills-en-US.xml.gzip (26KiB - bfe90ea8fcb5ba855e872f375ea1bf2b) Diagnostic Log: 0d 0h 00m 00s > Starting up 0d 0h 00m 00s > EveMonClient.Initialize - begin 0d 0h 00m 00s > EveMonClient.Initialize - done 0d 0h 00m 00s > Settings.TryDeserializeFromFile - begin 0d 0h 00m 00s > Settings.TryDeserializeFromFile - done 0d 0h 00m 00s > Settings.Import - begin 0d 0h 00m 00s > EveMonClient.OnSchedulerChanged 0d 0h 00m 00s > Settings.Import - done 0d 0h 00m 00s > EveMonClient.OnSettingsChanged 0d 0h 00m 00s > Main loop - start 0d 0h 00m 01s > EveMonClient.Run 0d 0h 00m 01s > TimeCheck.ScheduleCheck - in 00:00:01 0d 0h 00m 01s > UpdateManager.ScheduleCheck - in 00:00:10 0d 0h 00m 01s > Main window - loaded 0d 0h 00m 01s > Datafiles.Load - begin 0d 0h 00m 02s > TimeCheck.BeginCheckAsync 0d 0h 00m 02s > TimeCheck.OnCheckCompleted - Synchronised 0d 0h 00m 02s > TimeCheck.ScheduleCheck - in 1.00:00:00 0d 0h 00m 02s > EveMonClient.OnServerStatusUpdated 0d 0h 00m 05s > Datafiles.Load - done 0d 0h 00m 05s > Settings.ImportData - begin 0d 0h 00m 05s > EveMonClient.OnCharacterCollectionChanged 0d 0h 00m 05s > EveMonClient.OnESIKeyCollectionChanged 0d 0h 00m 05s > EveMonClient.OnMonitoredCharactersChanged 0d 0h 00m 05s > Settings.ImportData - done 0d 0h 00m 05s > EveMonClient.OnSettingsChanged and on mono: EVEMon Version: 4.2.0.5032 .NET Runtime Version: 4.0.30319.42000 Operating System: Unix 6.5.9.2 Executable Path: /home/abnotus/stuff/EVEMon-binaries-4.2.0/EVEMon/EVEMon.exe System.EntryPointNotFoundException: GetScrollInfo assembly: type: member:(null) at (wrapper managed-to-native) EVEMon.Common.Controls.NativeMethods.GetScrollInfo(intptr,int,EVEMon.Common.Controls.NativeMethods/Scrollinfo&) at EVEMon.Common.Controls.NativeMethods.GetVerticalScrollBarPosition (System.Windows.Forms.Control control) [0x00030] in <8379b0648d954a339502bcabd4b22c0f>:0 at EVEMon.ApiCredentialsManagement.EsiKeysManagementWindow.UpdateCharactersListContent () [0x00000] in <7f942678d4824c0dbfcec052be4a99fb>:0 at EVEMon.ApiCredentialsManagement.EsiKeysManagementWindow.UpdateCharactersList () [0x00017] in <7f942678d4824c0dbfcec052be4a99fb>:0 at EVEMon.ApiCredentialsManagement.EsiKeysManagementWindow.OnLoad (System.EventArgs e) [0x00088] in <7f942678d4824c0dbfcec052be4a99fb>:0 at System.Windows.Forms.Form.OnLoadInternal (System.EventArgs e) [0x00023] in <95d2b0fe71cd43ad8f3dadc76ea9ef47>:0 Datafile report: eve-properties-en-US.xml.gzip (60KiB - b2c03b45f8475be109cd48c84268a5f4) eve-items-en-US.xml.gzip (2103KiB - 17c5a379215eb882c6b31bf44264ce80) eve-skills-en-US.xml.gzip (23KiB - c08881d6d8e749885f18630573679524) eve-certificates-en-US.xml.gzip (45KiB - 540000f7c111354769a54fa31e57d411) eve-masteries-en-US.xml.gzip (21KiB - 3668b50996fc40a0c0853fec427b5712) eve-blueprints-en-US.xml.gzip (201KiB - 219eb76e35e9c1df32d2b7f21268582c) eve-geography-en-US.xml.gzip (531KiB - 20e2c8177ddb8432f5922ef86466077f) eve-reprocessing-en-US.xml.gzip (106KiB - 0b9a9421778342be01db456a0fd34b5a) Diagnostic Log: 0d 0h 00m 00s > Starting up 0d 0h 00m 00s > EveMonClient.Initialize - begin 0d 0h 00m 00s > EveMonClient.Initialize - done 0d 0h 00m 00s > Settings.TryDeserializeFromFile - begin 0d 0h 00m 02s > Settings.TryDeserializeFromFile - done 0d 0h 00m 02s > Settings.Import - begin 0d 0h 00m 02s > EveMonClient.OnSchedulerChanged 0d 0h 00m 02s > Settings.Import - done 0d 0h 00m 02s > EveMonClient.OnSettingsChanged 0d 0h 00m 02s > Main loop - start 0d 0h 00m 02s > EveMonClient.Run 0d 0h 00m 02s > TimeCheck.ScheduleCheck - in 00:00:01 0d 0h 00m 02s > UpdateManager.ScheduleCheck - in 00:00:10 0d 0h 00m 02s > Main window - loaded 0d 0h 00m 02s > Datafiles.Load - begin 0d 0h 00m 03s > ExceptionHandler.LogException - Handled exception System.EntryPointNotFoundException: LoadCursorFromFile assembly: type: member:(null) at (wrapper managed-to-native) EVEMon.Common.Controls.NativeMethods.LoadCursorFromFile(string) at EVEMon.Common.Controls.CustomCursors.GetCursorFromResource (System.Byte[] resource) [0x00036] in <8379b0648d954a339502bcabd4b22c0f>:0 Both happen when trying to add characters

Hi -- Are you using a build from this branch? The release page builds do not include the fixes in this branch.

Hi, I am actually not, the one link I found for that (https://output.circle-artifacts.com/output/job/2d2187a8-f717-4057-b894-f30c61e26c65/artifacts/0/Binaries/EVEMon-binaries-4.2.0.zip ) was not working so I decided to just try the 4.2.0 binaries in general - could you point me to the right direction?

mgoeppner commented 11 months ago

Fresh build here: https://app.circleci.com/pipelines/github/mgoeppner/evemon/75/workflows/a46fdb43-0279-4bc0-a777-50c17e7a2dd2/jobs/71/artifacts

CircleCI clears them out once every month or so.

abnotus commented 11 months ago

Fresh build here: https://app.circleci.com/pipelines/github/mgoeppner/evemon/75/workflows/a46fdb43-0279-4bc0-a777-50c17e7a2dd2/jobs/71/artifacts

CircleCI clears them out once every month or so.

Thanks! Can confirm that this version works just fine

mercster commented 11 months ago

Hi... sorry, just seeing if I can get this working under Linux. I have Mono installed... I'm an experienced Linux admin but have no experience with Mono, I know I'm doing something obvious wrong.

(blah blah blah)

Never mind! Only had mono-runtime, installed mono-complete and it's working. Cheers.

nethershaw commented 9 months ago

Drat. The artifacts have expired. I'd like to give this a spin, please.

mgoeppner commented 9 months ago

Rebuilt here :https://app.circleci.com/pipelines/github/mgoeppner/evemon/79/workflows/7c9463d9-eeaa-422a-9df1-6ad2842a3b42/jobs/75/artifacts

If that link is expired, these are the binaries from that run:

linux-EVEMon-binaries-4.2.2.zip

nethershaw commented 9 months ago

Thank you!

Strange: the zip archive of the artifacts uses backslashes instead of forward slashes as a path delimiter, which has the effect of clobbering the entire folder structure and naming the files with their intended paths instead.

nethershaw commented 9 months ago

Well, I can add a character now, but if I try to do anything with it (e.g., create a skill plan), it bails with a NullReferenceException.

evemon.log

The Windows build, running under Wine, throws a completely different set of exceptions. I'm just trying to find something that can do a neural remap calculation for me. I'm coming back to EVE after three years away.

Apparently absolutely nothing can do that on Linux at the moment.

Thanks anyway, but so long as you're chasing dotnet, you're never going to catch up. It's engineered to create technical debt. You should cut your losses and start from scratch if you're interested, but if it were me, I'd be too burned out to try.

mgoeppner commented 9 months ago

Thank you!

Strange: the zip archive of the artifacts uses backslashes instead of forward slashes as a path delimiter, which has the effect of clobbering the entire folder structure and naming the files with their intended paths instead.

The build is done on a circle ci windows instance so that is likely the cause.

Well, I can add a character now, but if I try to do anything with it (e.g., create a skill plan), it bails with a NullReferenceException.

Do you have mono-complete (debian variant package, package name may vary based on distro) installed?

Thanks anyway, but so long as you're chasing dotnet, you're never going to catch up. It's engineered to create technical debt. You should cut your losses and start from scratch if you're interested, but if it were me, I'd be too burned out to try.

I keep this branch updated as a service to fellow linux users, but mono and winforms will always be a can of worms, especially since evemon uses a lot of homebrewed that can play oddly with mono implementations.

The technical debt in evemon is not inherently caused by dotnet/mono -- its caused by being a nearly 20 year old project that has had dozens of contributors and a handful of maintainers. Shifting to a new stack doesn't change that, it just makes more work.

mgoeppner commented 2 months ago

Since 5.x.x is dotnet8, wine should be used instead of trying to run natively via mono.

eqvinox commented 2 months ago

for the record, 5.0.0 preview 1 fails under wine with http server issues just like before:

EVEMon Version: 5.0.0.1
.NET Runtime Version: 8.0.7
Operating System: Microsoft Windows NT 6.1.7601 Service Pack 1
Executable Path: Z:\home\equinox\eve\evemon\EVEMon\EVEMon.dll
System.Net.HttpListenerException (120): Call not implemented.
   at System.Net.HttpListener.SetUrlGroupProperty(HTTP_SERVER_PROPERTY property, Void* info, UInt32 infosize)
   at System.Net.HttpListener.SetServerTimeout(Int32[] timeouts, UInt32 minSendBytesPerSecond)
   at System.Net.HttpListenerTimeoutManager.SetTimespanTimeout(HTTP_TIMEOUT_TYPE type, TimeSpan value)
   at EVEMon.Common.Service.SSOWebServerHttpListener..ctor()
   at EVEMon.ApiCredentialsManagement.EsiKeyUpdateOrAdditionWindow..ctor()
   at EVEMon.MainWindow.addAPIKeyMenu_Click(Object sender, EventArgs e)
   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(HWND hWnd, MessageId msg, WPARAM wparam, LPARAM lparam)

Datafile report:
  eve-blueprints-en-US.xml.gzip (244KiB - 91887bdee4aa4bfcbfb256f05e1914a9)
  eve-certificates-en-US.xml.gzip (45KiB - 540000f7c111354769a54fa31e57d411)
  eve-geography-en-US.xml.gzip (1011KiB - 51d03df16792c4ba619a4931a018b439)
  eve-items-en-US.xml.gzip (4418KiB - 2dc3960bd351a56c2e03862f08d4bf4d)
  eve-masteries-en-US.xml.gzip (21KiB - 3668b50996fc40a0c0853fec427b5712)
  eve-properties-en-US.xml.gzip (59KiB - fc598b37416dbda8b6848178a79fa0ae)
  eve-reprocessing-en-US.xml.gzip (115KiB - 193ff50b0505708918f9cd22fb0e9b00)
  eve-skills-en-US.xml.gzip (27KiB - 7c6506697cd852273b72e26ecba8f6c3)

Diagnostic Log:
0d 0h 00m 00s > Starting up
0d 0h 00m 00s > EveMonClient.Initialize - begin
0d 0h 00m 00s > EveMonClient.Initialize - done
0d 0h 00m 00s > Settings.TryDeserializeFromFile - begin
0d 0h 00m 00s > Settings.TryDeserializeFromFile - done
0d 0h 00m 00s > Settings.Import - begin
0d 0h 00m 00s > EveMonClient.OnSchedulerChanged
0d 0h 00m 00s > Settings.Import - done
0d 0h 00m 00s > EveMonClient.OnSettingsChanged
0d 0h 00m 00s > Main loop - start
0d 0h 00m 01s > EveMonClient.Run
0d 0h 00m 01s > TimeCheck.ScheduleCheck - in 00:00:01
0d 0h 00m 01s > UpdateManager.ScheduleCheck - in 00:00:10
0d 0h 00m 01s > Main window - loaded
0d 0h 00m 01s > Datafiles.Load - begin
0d 0h 00m 02s > AsyncTaskMethodBuilder.Start
0d 0h 00m 02s > TimeCheck.OnCheckCompleted - Synchronised
0d 0h 00m 02s > TimeCheck.ScheduleCheck - in 1.00:00:00
0d 0h 00m 02s > EveMonClient.OnNotificationSent - Error querying the EVE server status. Check EVE server uptime on http://eve-offline.net/
0d 0h 00m 02s > EveMonClient.OnServerStatusUpdated
0d 0h 00m 07s > Datafiles.Load - done
0d 0h 00m 07s > Settings.ImportData - begin
0d 0h 00m 07s > EveMonClient.OnCharacterCollectionChanged
0d 0h 00m 07s > EveMonClient.OnESIKeyCollectionChanged
0d 0h 00m 07s > EveMonClient.OnMonitoredCharactersChanged
0d 0h 00m 07s > Settings.ImportData - done
0d 0h 00m 07s > EveMonClient.OnSettingsChanged
0d 0h 00m 11s > UpdateManager - An Exception occurred.
0d 0h 00m 11s > UpdateManager.ScheduleCheck - in 00:01:00

wine says:

027c:fixme:http:HttpSetUrlGroupProperty Unhandled property 3.
mgoeppner commented 2 months ago

@eqvinox I just rewrote that area of the code to use kestrel instead -- HttpListener is very legacy at this point and its probably best to send it the way of the dodo.

https://github.com/mgoeppner/evemon/commit/d2333b1ba2d0070f62346e6c5806f60deec2a274

mgoeppner commented 2 months ago

Closing this PR now that most of these fixes are rolled into the main branch -- as a reminder, since 5.x.x is dotnet8, wine should be used instead of trying to run natively via mono.