Closed adamthat closed 1 year ago
I guess the 3D map control should be disabled under non-windows platforms, given that GLOFC uses pinvoke without checking what platform it's running on.
The 3D map works on the same system under Version 12.1.4.0, where I get a separate button for it at the top of the main menu The problem I described now occurs as soon as I start ED using version 15.1.1.500 Previously I could at least attempt to open the 3D map via the entry in the 'Click to select a pop-out panel to display' submenu, though I saw no top-level button for it. Now it doesn't even get that far The Fatal Error message appears immediately on version 15.1.1.500 application startup with the the contents:
A fatal exception was encountered while initializing EDDiscovery.
==== BEGIN ====
System.DllNotFoundException: opengl32.dll assembly:
apologies I closed the issue by mistake, have just reopened. Have tried a fresh reinstall, get 15.1.4.0 now,same exception other details as in my last comment A fatal exception was encountered while initializing EDDiscovery.
==== BEGIN ====
System.DllNotFoundException: opengl32.dll assembly:
For the exception on starting, you will likely need to reset your tabs by holding shift while starting EDDiscovery, or using the -safemode
argument when starting EDDiscovery.
The button you mentioned opened the old 3D map, it's gone now. The new map uses OpenGL and as the error states that's not found on your Linux. klightspeed is the one here who knows Linux better than anyone else, so if he says that disabling the whole map on Linux is the correct solution I guess there's no way to get it running on it.
The issue is that OFC doesn't check the current platform. https://github.com/Foundation-Classes-For-OpenTK/OFC/blob/8d20720a19fa03f9e89cd87a8179b1c38c80efd4/OFC/GL/GLStatics.cs#L31-L40
[DllImport("opengl32.dll", EntryPoint = "wglGetCurrentContext")]
extern static IntPtr wglGetCurrentContext();// DCAl
/// <summary>
/// Get the currentopenGL rendering context handle.
/// </summary>
public static IntPtr GetContext()
{
return wglGetCurrentContext();
}
I am looking to see if there is an equivalent call in OpenTK - though it's quite possible there is none.
Acknowledged. Will be fixed in next version. Thanks for the report.
Acknowledged. Will be fixed in next version. Thanks for the report.
That PR for OFC is still waiting with:
I've not forgotton about this, but I really want to make OFC tests run on Linux first, get a stable base, then look into this.
from 2 months ago.
That explains why I got confused by the other issue yesterday. I had in mind that there was already a fix for "3D map crashing EDD on Linux".
Description
Additional Information
Exception Details: