Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Programm not start with plugin #316

Closed
pushkinb opened this issue Sep 2, 2024 · 27 comments
Closed

Programm not start with plugin #316

pushkinb opened this issue Sep 2, 2024 · 27 comments

Comments

@pushkinb
Copy link

pushkinb commented Sep 2, 2024

Describe the bug / Bug 描述
Describe what the bug is
简单描述一下是什么 bug

image

Error Log / 错误日志
Please paste the error log of ASFEnhance, for example
请在此粘贴 ASFEnhance 的错误日志, 示例如下

ASFenhance 遇到错误, 日志如下
==========================================
 - 原始消息: TEST
 - Access: Owner
 - ASF 版本: 6.0.6.4 
 - 插件版本: 1.7.5.0
==========================================
{
  "EULA": true,
  "Statistic": true,
  "DevFeature": false
}
==========================================
 - 错误类型: System.Exception
 - 错误消息: Exception of type 'System.Exception' was thrown.
   at System.ModuleHandle.ResolveType(QCallModule, Int32, IntPtr*, Int32, IntPtr*, Int32, ObjectHandleOnStack)
   at System.ModuleHandle.ResolveTypeHandle(Int32, RuntimeTypeHandle[], RuntimeTypeHandle[])
   at System.Reflection.RuntimeModule.ResolveType(Int32, Type[], Type[])
   at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(MetadataToken, MetadataImport& , RuntimeModule, MetadataToken, RuntimeType, Boolean, ListBuilder`1&, RuntimeType& , IRuntimeMethodInfo& , Boolean& )
   at System.Reflection.CustomAttribute.AddCustomAttributes(ListBuilder`1&, RuntimeModule, Int32, RuntimeType, Boolean, ListBuilder`1)
   at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule, Int32, Int32, RuntimeType)
   at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeType, RuntimeType, Boolean)
   at System.RuntimeType.GetCustomAttributes(Type, Boolean)
   at System.Attribute.GetCustomAttributes(MemberInfo, Type, Boolean)
   at System.Reflection.CustomAttributeExtensions.GetCustomAttributes(MemberInfo, Type, Boolean)
   at System.Reflection.CustomAttributeExtensions.GetCustomAttributes[T](MemberInfo, Boolean)
   at System.Composition.Convention.ConventionBuilder.GetCustomAttributes(Type reflectedType, MemberInfo member)
   at System.Composition.Convention.AttributedModelProviderExtensions.GetDeclaredAttribute[TAttribute](AttributedModelProvider convention, Type reflectedType, MemberInfo member)
   at System.Composition.TypedParts.Discovery.TypeInspector.InspectTypeForPart(TypeInfo type, DiscoveredPart& part)
   at System.Composition.TypedParts.TypedPartExportDescriptorProvider..ctor(IEnumerable`1 types, AttributedModelProvider attributeContext)
   at System.Composition.Hosting.ContainerConfiguration.CreateContainer()
   at ArchiSteamFarm.Plugins.PluginsCore.InitPlugins()
@botka4aet
Copy link

Well, it's not bug
ASF just updated so plugin doesn't work

@chr233
Copy link
Owner

chr233 commented Sep 2, 2024

not support 6.0.6.4 yet , wait for next release

@woctezuma
Copy link

It works for me. Make sure to use ASF generic.

@chr233
Copy link
Owner

chr233 commented Sep 2, 2024

try use https://github.com/chr233/ASFEnhance/releases/tag/2.2.3.0

ASF-generic is required

@Yur0K
Copy link

Yur0K commented Sep 2, 2024

try use https://github.com/chr233/ASFEnhance/releases/tag/2.2.3.0

same error with this version 2.2.3.0 and ASF-win-x64 V6.0.6.4

@chr233
Copy link
Owner

chr233 commented Sep 2, 2024

maybe require ASF-generic

@Citrinate
Copy link

maybe require ASF-generic

Had the same issue with my plugins. Here's the changes I needed to make to get things working with non-generic ASF.

@gyq180
Copy link

gyq180 commented Sep 2, 2024

maybe require ASF-generic

Docker version cannot use ASF-generic, so sad.

@lianggiraffe
Copy link

try use https://github.com/chr233/ASFEnhance/releases/tag/2.2.3.0

still not working in 6.0.6.4

@Botan626
Copy link

Botan626 commented Sep 2, 2024

ASFEnhance 2.2.3.0 doesn't work with ASF-win-x64 6.0.6.4

@mindryder
Copy link

ASFEnhance 2.2.3.0 doesn't work

@K4r0qtuYNE5G4qgZ
Copy link

ASFEnhance 2.2.3.0 also crashes ASF 6.0.6.4 (linux-arm64)
My Service was in a restart loop, so I had to delete ASFEnhance

@ilkekaratas
Copy link

ilkekaratas commented Sep 2, 2024

same. with docker it fails. but it starts with: asf --pull always justarchi/archisteamfarm:6.0.6.3

@chr233
Copy link
Owner

chr233 commented Sep 3, 2024

ASFEnhance 2.2.3.0 doesn't work with ASF-win-x64 6.0.6.4

use ASF-generic can fix, not able to let the plugin support the normal version

@StrangePeanut
Copy link

StrangePeanut commented Sep 3, 2024

@gyq180 @ilkekaratas It seems that the Docker tag :released includes the generic version of ASF unlike :latest, so :released is the one we want to use going forward.

Due to the fact that the latest image comes with capability of auto-updates, it includes bare OS with OS-specific linux ASF version, contrary to all other tags that include OS with .NET runtime and generic ASF version.

Source: https://github.com/JustArchiNET/ArchiSteamFarm/wiki/Docker#tags

@Botan626
Copy link

Botan626 commented Sep 3, 2024

ASFEnhance 2.2.3.0 doesn't work with ASF-win-x64 6.0.6.4

use ASF-generic can fix, not able to let the plugin support the normal version

Do you mean you don't know how to make plugin work with non-generic ASF
or
from now on ASFEnhance will support only generic ASF?

@chr233
Copy link
Owner

chr233 commented Sep 3, 2024

ASFEnhance 2.2.3.0 doesn't work with ASF-win-x64 6.0.6.4

use ASF-generic can fix, not able to let the plugin support the normal version

Do you mean you don't know how to make plugin work with non-generic ASF or from now on ASFEnhance will support only generic ASF?

maybe, there is still a lot of work to do through

@Botan626
Copy link

Botan626 commented Sep 3, 2024

maybe, there is still a lot of work to do through

maybe what?

@chr233
Copy link
Owner

chr233 commented Sep 3, 2024

maybe, there is still a lot of work to do through

maybe what?

i don't know

@Zentberk919
Copy link

"2024-09-03 16:06:24|ArchiSteamFarm-17996|ERROR|ASF|Exit() Exiting with 1 error code!"

this is last line on my logs

@botka4aet
Copy link

Well, plugin works with https://github.com/JustArchiNET/ArchiSteamFarm/tree/6.0.6.0 and not with https://github.com/JustArchiNET/ArchiSteamFarm/tree/6.0.6.1
Most changes - droping System.Globalization system

@chr233
Copy link
Owner

chr233 commented Sep 3, 2024

Well, plugin works with https://github.com/JustArchiNET/ArchiSteamFarm/tree/6.0.6.0 and not with https://github.com/JustArchiNET/ArchiSteamFarm/tree/6.0.6.1 Most changes - droping System.Globalization system

maybe use Microsoft.CodeAnalysis.ResxSourceGenerator may help, still finding solutions

@Botan626
Copy link

Botan626 commented Sep 3, 2024

Well, plugin works with https://github.com/JustArchiNET/ArchiSteamFarm/tree/6.0.6.0 and not with https://github.com/JustArchiNET/ArchiSteamFarm/tree/6.0.6.1 Most changes - droping System.Globalization system

maybe use Microsoft.CodeAnalysis.ResxSourceGenerator may help, still finding solutions

you can always ask for help on ASF Discord dev plugins channel: https://discord.com/channels/267292556709068800/536915576682053662

😄

@JustArchi
Copy link
Contributor

JustArchi commented Sep 3, 2024

Changing to resx generator as Citrinate did here should be sufficient for fixing OS-specific ASF.

Nothing bad in doing it in the old (current) way, this is why ASF-generic worked and continues to work, but since ASF changed to resx generator then some crucial parts for supporting the old way got trimmed out in OS-specific.

People should stop using OS-specific builds if they expect custom plugins to work, really.

@gyq180
Copy link

gyq180 commented Sep 3, 2024

@gyq180 @ilkekaratas It seems that the Docker tag :released includes the generic version of ASF unlike :latest, so :released is the one we want to use going forward.

Due to the fact that the latest image comes with capability of auto-updates, it includes bare OS with OS-specific linux ASF version, contrary to all other tags that include OS with .NET runtime and generic ASF version.

Source: https://github.com/JustArchiNET/ArchiSteamFarm/wiki/Docker#tags

thank you, i change to released, it is normal.

@chr233
Copy link
Owner

chr233 commented Sep 3, 2024

Changing to resx generator as Citrinate did here should be sufficient for fixing OS-specific ASF.

Nothing bad in doing it in the old (current) way, this is why ASF-generic worked and continues to work, but since ASF changed to resx generator then some crucial parts for supporting the old way got trimmed out in OS-specific.

People should stop using OS-specific builds if they expect custom plugins to work, really.

yep, thank you

@chr233
Copy link
Owner

chr233 commented Sep 4, 2024

image

merge to ResxSourceGenerator, seems work, use ASFEnhance 2.2.3.3 may fix this

@chr233 chr233 closed this as completed Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

16 participants