mirror of
https://github.com/NickeManarin/ScreenToGif.git
synced 2026-04-25 15:15:51 +03:00
[GH-ISSUE #1032] [Bug] Program do NOT launch on arm64 #781
Labels
No labels
copy cats
duplicated
future feature
pull-request
⬜ Accepted
⬜ Completed
⬜ Help Wanted 💪
⬜ In Progress
⬜ Missing Details
⬜ Pending
⬜ Waiting For Answer ⏳
🆕 feature preview
🔷 Bug 🐛
🔷 Out Of Scope
🔷 Out Of Scope
🔷 Question
🔷Enhancement
🔷Enhancement
🔷Invalid / External
🔷Knowledge Base
🔷Won't Fix
🕑 High
🕑 High
🕑 High
🕕 Medium
🕙 Low
🕛 Critical
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ScreenToGif#781
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @gxj8885718 on GitHub (Dec 27, 2021).
Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/1032
Originally assigned to: @NickeManarin on GitHub.
Describe the bug
either github release nor windows store edition, can't open screentogif.
runtime installed.
just process, no windows
Desktop (please complete the following information):
@gxj8885718 commented on GitHub (Dec 27, 2021):
PS: 2.34.1 works fine.
@NickeManarin commented on GitHub (Dec 27, 2021):
Hi, any error in the event viewer?
@gxj8885718 commented on GitHub (Dec 27, 2021):
just clear all logs and start screentogif,then refresh windws log, nope, it's empty, nothing logged.

@gxj8885718 commented on GitHub (Dec 27, 2021):
@gxj8885718 commented on GitHub (Dec 27, 2021):
runtime installed
@NickeManarin commented on GitHub (Dec 27, 2021):
Thanks.
In the folder where the app is installed, are there any logs?
It's usually inside a folder, like ScreenToGif (install folder) > ScreenToGif > Logs.
Or inside Users > User > Documents > ScreenToGif.
@gxj8885718 commented on GitHub (Dec 28, 2021):
Here's the log(under /users/username/documents/screentogif
► Title -
On dispacher unhandled exception - Unknown
▬ Message -
试图加载格式不正确的程序。 (0x8007000B)
○ Type -
System.BadImageFormatException
♦ [Version] Date/Hour -
[2.35.2] 12/28/2021 19:04:00
▲ Source -
PresentationCore
▼ TargetSite -
Void RenderOptions_ForceSoftwareRenderingModeForProcess(Boolean)
► Fuslog -
♠ StackTrace -
at MS.Win32.PresentationCore.UnsafeNativeMethods.MilCoreApi.RenderOptions_ForceSoftwareRenderingModeForProcess(Boolean fForce)
at System.Windows.Media.RenderOptions.set_ProcessRenderMode(RenderMode value)
at ScreenToGif.App.App_Startup(Object sender, StartupEventArgs e) in C:\Users\nicke\source\repos\ScreenToGif\ScreenToGif\App.xaml.cs:line 156
at System.Windows.Application.OnStartup(StartupEventArgs e)
at System.Windows.Application.<.ctor>b__1_0(Object unused)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
► Title -
Error while displaying the error.
▬ Message -
Add value to collection of type 'System.Windows.Controls.UIElementCollection' threw an exception.
○ Type -
System.Windows.Markup.XamlParseException
♦ [Version] Date/Hour -
[2.35.2] 12/28/2021 19:04:00
▲ Source -
PresentationFramework
▼ TargetSite -
Void RewrapException(System.Exception, System.Xaml.IXamlLineInfo, System.Uri)
♠ StackTrace -
at System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri)
at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
at ScreenToGif.Windows.Other.ExceptionDialog.InitializeComponent() in C:\Users\nicke\source\repos\ScreenToGif\ScreenToGif\Windows\Other\ExceptionDialog.xaml:line 1
at ScreenToGif.Windows.Other.ExceptionDialog..ctor(Exception exception) in C:\Users\nicke\source\repos\ScreenToGif\ScreenToGif\Windows\Other\ExceptionDialog.xaml.cs:line 21
at ScreenToGif.Windows.Other.ExceptionDialog.Ok(Exception exception, String title, String instruction, String observation, Boolean bugWith4055002) in C:\Users\nicke\source\repos\ScreenToGif\ScreenToGif\Windows\Other\ExceptionDialog.xaml.cs:line 101
at ScreenToGif.App.<>c__DisplayClass21_0.b__0() in C:\Users\nicke\source\repos\ScreenToGif\ScreenToGif\App.xaml.cs:line 433
at System.Windows.Threading.Dispatcher.Invoke(Action callback, DispatcherPriority priority, CancellationToken cancellationToken, TimeSpan timeout)
at System.Windows.Threading.Dispatcher.Invoke(Action callback)
at ScreenToGif.App.ShowException(Exception exception) in C:\Users\nicke\source\repos\ScreenToGif\ScreenToGif\App.xaml.cs:line 428
at ScreenToGif.App.App_DispatcherUnhandledException(Object sender, DispatcherUnhandledExceptionEventArgs e) in C:\Users\nicke\source\repos\ScreenToGif\ScreenToGif\App.xaml.cs:line 238
▬▬ Message -
试图加载格式不正确的程序。 (0x8007000B)
○○ Type -
System.BadImageFormatException
▲▲ Source -
PresentationCore
▼▼ TargetSite -
Void .ctor(System.Windows.Media.MediaContext)
♠♠ StackTrace -
at System.Windows.Media.MediaContextNotificationWindow..ctor(MediaContext ownerMediaContext)
at System.Windows.Media.MediaContext..ctor(Dispatcher dispatcher)
at System.Windows.Media.MediaContext.From(Dispatcher dispatcher)
at System.Windows.Media.Visual.VerifyAPIReadWrite()
at System.Windows.Media.VisualCollection.Add(Visual visual)
at System.Windows.Controls.UIElementCollection.AddInternal(UIElement element)
at System.Windows.Controls.UIElementCollection.Add(UIElement element)
at System.Windows.Controls.UIElementCollection.System.Collections.IList.Add(Object value)
at System.Xaml.Schema.XamlTypeInvoker.AddToCollection(Object instance, Object item)
at MS.Internal.Xaml.Runtime.ClrObjectRuntime.Add(Object collection, XamlType collectionType, Object value, XamlType valueXamlType)
@gxj8885718 commented on GitHub (Dec 28, 2021):
have tried 3 versions of screentogif
2.35.2 arm64 failed
2.35.2 x86 failed
2.35.0 arm64 failed
2.35.0 x86 failed
2.34.1 x86 worked
so the problem could be both .NET 6 or project restructuring.
@NickeManarin commented on GitHub (Dec 28, 2021):
The logs tell me that at least one DLL from a different assembly is trying to get loaded, which causes the error (bad image).
@gxj8885718 commented on GitHub (Dec 28, 2021):
clean install Windows 10 Pro 21H2 , nothing modified. All drivers from stock system image. no strange software installed.
@NickeManarin commented on GitHub (Dec 29, 2021):
Hi @gxj8885718, can you try this one?
It's working in here.
ScreenToGif.zip
@gxj8885718 commented on GitHub (Dec 30, 2021):
Wonderful!! it works!! Great job!
@NickeManarin commented on GitHub (Dec 30, 2021):
Thank you!
@NickeManarin commented on GitHub (Dec 30, 2021):
Version 2.35.3 should be working then.