UncleGoogle / galaxy-integration-humblebundle

Humble Bundle integration for GOG Galaxy 2.0
GNU General Public License v3.0
184 stars 19 forks source link

Humble Bundle plugin doesn't work anymore #166

Closed hightower5 closed 2 years ago

hightower5 commented 2 years ago

The old version humblebundle_0.5.1 doesn't list any games anymore, and the new version humblebundle_0.9.5 crashes on login.

plugin-humble.log

UncleGoogle commented 2 years ago

@hightower5 can you create separate issue for crashes with relevant logs? From the current one I see the 0.5.1 stuff only. Currently I have no easy access to Windows OS to check myself.

hightower5 commented 2 years ago

The humble log-file of humblebundle_0.9.5 is empty. Here is a part of GalaxyClient.log GalaxyClient.log

UncleGoogle commented 2 years ago

@hightower5 could you follow this instruction to gather some clues? https://github.com/UncleGoogle/galaxy-integration-humblebundle/issues/155#issuecomment-800666512

hightower5 commented 2 years ago

I don't understand what I'm doing, but please.

C:\Users\hightower\AppData\Local\GOG.com\Galaxy\plugins\installed\humblebundle_0.9.5>"C:\Program Files (x86)\GOG Galaxy\python\python.exe" -c "import sys; sys.path.append('.'); import plugin; plugin.main()"

Unbehandelte Ausnahme: System.IO.FileLoadException: Die Datei oder Assembly "file:///C:\Users\hightower\AppData\Local\GOG.com\Galaxy\plugins\installed\humblebundle_0.9.5\modules\Python.Runtime.dll" oder eine Abhängigkeit davon wurde nicht gefunden. Der Vorgang wird nicht unterstützt. (Ausnahme von HRESULT: 0x80131515) ---> System.NotSupportedException: Es wurde versucht, eine Assembly von einer Netzwerkadresse zu laden, was in früheren Versionen von .NET Framework zum Ausführen der Assembly als Sandkastenassembly geführt hätte. In dieser Version von .NET Framework wird die CAS-Richtlinie standardmäßig nicht aktiviert, dieser Ladevorgang kann daher gefährlich sein. Wenn Sie nicht beabsichtigen, durch diesen Ladevorgang eine Sandkastenassembly zu erstellen, aktivieren Sie den loadFromRemoteSources-Schalter. Weitere Informationen finden Sie unter "http://go.microsoft.com/fwlink/?LinkId=155569".
   --- Ende der internen Ausnahmestapelüberwachung ---
   bei System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   bei System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   bei System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   bei System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark)
   bei System.Reflection.Assembly.LoadFrom(String assemblyFile)
   bei clrModule.PyInit_clr()
UncleGoogle commented 2 years ago

@hightower5 thanks. Looks like the issue is a duplicate of #155

I have no idea why for some people it happen when Galaxy downloads the release archive from github, but looks like the issue caused by Windows security settings when ZIP containing dll is downloaded: https://stackoverflow.com/questions/34400546/could-not-load-file-or-assembly-operation-is-not-supported-exception-from-hres

Try:

  1. remove plugin; download from Galaxy (in case you've downloaded it from github)
  2. use this workaround https://github.com/UncleGoogle/galaxy-integration-humblebundle/issues/155#issuecomment-803114839

If you could test it on the newest release that would be awesome. I'm asking becasue I'm afraid the plugin can fail on the same reason as is in logs from 0.5.1 version.

hightower5 commented 2 years ago

Hi unclegoogle,

the workaround helps.

Thank you and best regards

tom

UncleGoogle commented 2 years ago

@hightower5 could you check which .NET versions you have installed? https://www.windowscentral.com/how-quickly-check-net-framework-version-windows-10#dotnet_version_filexplorer

hightower5 commented 2 years ago

Tomorrow, I've shutdown my PC.😉

hightower5 commented 2 years ago

.NET Framework ver. 4.8.04084

UncleGoogle commented 2 years ago

Thanks, that may help in reproduction.