[GH-ISSUE #323] Gifski encoding is failing when using non-latin characters #268

Closed
opened 2026-02-26 09:30:47 +03:00 by kerem · 15 comments
Owner

Originally created by @u2shana on GitHub (May 18, 2018).
Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/323

how can i use gifski

Originally created by @u2shana on GitHub (May 18, 2018). Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/323 how can i use gifski
Author
Owner

@u2shana commented on GitHub (May 18, 2018):

WIN7 it work

<!-- gh-comment-id:390109939 --> @u2shana commented on GitHub (May 18, 2018): WIN7 it work
Author
Owner

@NickeManarin commented on GitHub (May 19, 2018):

Did you download the Gifski dll via the Options > Extras > "Download Gifski" button?

<!-- gh-comment-id:390372140 --> @NickeManarin commented on GitHub (May 19, 2018): Did you download the Gifski dll via the Options > Extras > "Download Gifski" button?
Author
Owner

@u2shana commented on GitHub (May 19, 2018):

Yes,but it didn't work in win10

<!-- gh-comment-id:390372246 --> @u2shana commented on GitHub (May 19, 2018): Yes,but it didn't work in win10
Author
Owner

@NickeManarin commented on GitHub (May 19, 2018):

Can you show me a screenshot of the error?

<!-- gh-comment-id:390372308 --> @NickeManarin commented on GitHub (May 19, 2018): Can you show me a screenshot of the error?
Author
Owner

@u2shana commented on GitHub (May 19, 2018):

No error info,just stuck when encoding,and then the program disappear
xyuptl ky8iduz32wnta

<!-- gh-comment-id:390372642 --> @u2shana commented on GitHub (May 19, 2018): No error info,just stuck when encoding,and then the program disappear ![xyuptl ky8iduz32wnta](https://user-images.githubusercontent.com/14146754/40264157-95afa3b8-5b50-11e8-810d-6ad20ca18d3b.png)
Author
Owner

@NickeManarin commented on GitHub (May 19, 2018):

Hmm, without an error message this will be hard to be solved.
From what I can see, it's stuck on the first step of the encoding, like something is blocking from even starting.

Please, check if the Dll file is not being blocked by some anti-virus. Also, check if it's not marked as "Downloaded from the internet" (If you right click on the DLL, open Properties, check if there's a button that says something like "Unblock").

<!-- gh-comment-id:390372931 --> @NickeManarin commented on GitHub (May 19, 2018): Hmm, without an error message this will be hard to be solved. From what I can see, it's stuck on the first step of the encoding, like something is blocking from even starting. Please, check if the Dll file is not being blocked by some anti-virus. Also, check if it's not marked as "Downloaded from the internet" (If you right click on the DLL, open Properties, check if there's a button that says something like "Unblock").
Author
Owner

@u2shana commented on GitHub (May 19, 2018):

Emmm,I used the same program and same gifski.dll in win10 1605.It encoding successed.
I'm sure the dll is not be block in my PC.

<!-- gh-comment-id:390373393 --> @u2shana commented on GitHub (May 19, 2018): Emmm,I used the same program and same gifski.dll in win10 1605.It encoding successed. I'm sure the dll is not be block in my PC.
Author
Owner

@u2shana commented on GitHub (May 19, 2018):

Oh,I change the cache folder in other path which don't contain chinese(because the default path contain a chinese user name).Then,the Gifgski work.

<!-- gh-comment-id:390373943 --> @u2shana commented on GitHub (May 19, 2018): Oh,I change the cache folder in other path which don't contain chinese(because the default path contain a chinese user name).Then,the Gifgski work.
Author
Owner

@NickeManarin commented on GitHub (May 19, 2018):

Oh, that explains it. Thanks :)

<!-- gh-comment-id:390374272 --> @NickeManarin commented on GitHub (May 19, 2018): Oh, that explains it. Thanks :)
Author
Owner

@Kristinita commented on GitHub (Jan 30, 2019):

1. Summary

Gifski doesn't work, if in path Non-ASCII symbols, not only Chinese.

See also.

2. Data

3. Steps to reproduce

I open project in ScreenToGIF → Save asGifGifski.

4. Expected behavior

If folder name:

  • D:\ScreenToGIF

or

  • D:\Screen To GIF (use breaking spaces)

    GIF successfully created:

GIF expected

5. Non-expected behavior

Else folder for saving name:

  • D:\СкринТуГиф (all letters — Cyrillic)

    ScreenToGIF crash. No logs.

ScreenToGIF crash

6. Environment

  • Windows 10 Enterprise LTSB 64-bit EN
  • ScreenToGIF 2.16
  • Gifski — download from ExtrasOptionsExtrasGifski

Thanks.

<!-- gh-comment-id:458823264 --> @Kristinita commented on GitHub (Jan 30, 2019): ### 1. Summary Gifski doesn't work, if in path Non-ASCII symbols, not only Chinese. [**See also**](https://github.com/NickeManarin/ScreenToGif/issues/115#issuecomment-373577822). ### 2. Data + [**Project file**](https://drive.google.com/open?id=1oKn0nxeg0uifDukejU-wLfRlHtIdHclI) ### 3. Steps to reproduce I open project in ScreenToGIF → `Save as` → `Gif` → `Gifski`. ### 4. Expected behavior **If** folder name: + `D:\ScreenToGIF` **or** + `D:\Screen To GIF` (use breaking spaces)     GIF successfully created: ![GIF expected](https://i.imgur.com/s3uS16U.png) ### 5. Non-expected behavior **Else** folder for saving name: + `D:\СкринТуГиф` (all letters — Cyrillic)     ScreenToGIF crash. No logs. ![ScreenToGIF crash](https://i.imgur.com/v8ckjHE.png) ### 6. Environment + Windows 10 Enterprise LTSB 64-bit EN + ScreenToGIF 2.16 + Gifski — download from `Extras` → `Options` → `Extras` → `Gifski` Thanks.
Author
Owner

@clickwithclark commented on GitHub (May 6, 2019):

Saving gif with Gifski suddenly not working for me, here is the log of the error.

► Title - 
	Encode
▬ Message - 
	The type initializer for 'ScreenToGif.Util.GifskiInterop' threw an exception.
○ Type - 
	System.TypeInitializationException
♦ [Version] Date/Hour - 
	[2.17.1] 05/05/2019 20:23:49
▲ Source - 
	ScreenToGif
▼ TargetSite - 
	IntPtr Start(Int32, Boolean, Boolean)
♠ StackTrace - 
   at ScreenToGif.Util.GifskiInterop.Start(Int32 quality, Boolean looped, Boolean fast)
   at ScreenToGif.Windows.Other.Encoder.<Encode>d__23.MoveNext()

▬▬ Message - 
	Value cannot be null.
Parameter name: ptr
○○ Type - 
	System.ArgumentNullException
▲▲ Source - 
	mscorlib
▼▼ TargetSite - 
	System.Delegate GetDelegateForFunctionPointer(IntPtr, System.Type)
♠♠ StackTrace - 
   at System.Runtime.InteropServices.Marshal.GetDelegateForFunctionPointer(IntPtr ptr, Type t)
   at ScreenToGif.Util.GifskiInterop..cctor()
<!-- gh-comment-id:489476776 --> @clickwithclark commented on GitHub (May 6, 2019): Saving gif with Gifski suddenly not working for me, here is the log of the error. ``` ► Title - Encode ▬ Message - The type initializer for 'ScreenToGif.Util.GifskiInterop' threw an exception. ○ Type - System.TypeInitializationException ♦ [Version] Date/Hour - [2.17.1] 05/05/2019 20:23:49 ▲ Source - ScreenToGif ▼ TargetSite - IntPtr Start(Int32, Boolean, Boolean) ♠ StackTrace - at ScreenToGif.Util.GifskiInterop.Start(Int32 quality, Boolean looped, Boolean fast) at ScreenToGif.Windows.Other.Encoder.<Encode>d__23.MoveNext() ▬▬ Message - Value cannot be null. Parameter name: ptr ○○ Type - System.ArgumentNullException ▲▲ Source - mscorlib ▼▼ TargetSite - System.Delegate GetDelegateForFunctionPointer(IntPtr, System.Type) ♠♠ StackTrace - at System.Runtime.InteropServices.Marshal.GetDelegateForFunctionPointer(IntPtr ptr, Type t) at ScreenToGif.Util.GifskiInterop..cctor() ```
Author
Owner

@NickeManarin commented on GitHub (May 6, 2019):

@clickwithclark Can you try downloading Gifski again? Using the download button from Options > Extras.

<!-- gh-comment-id:489477538 --> @NickeManarin commented on GitHub (May 6, 2019): @clickwithclark Can you try downloading Gifski again? Using the download button from Options > Extras.
Author
Owner

@clickwithclark commented on GitHub (May 6, 2019):

just did, just getting the error again.

<!-- gh-comment-id:489480330 --> @clickwithclark commented on GitHub (May 6, 2019): just did, just getting the error again.
Author
Owner

@NickeManarin commented on GitHub (Nov 18, 2019):

@u2shana @Kristinita @clickwithclark
There's a new test version which should solve this bug.
Download here: https://github.com/NickeManarin/ScreenToGif/issues/551

Can you people test it?
In order to test it, you need to delete the old Gifski and download again via Options > Extras, while using the test version of ScreenToGif.

<!-- gh-comment-id:555036496 --> @NickeManarin commented on GitHub (Nov 18, 2019): @u2shana @Kristinita @clickwithclark There's a new test version which should solve this bug. Download here: https://github.com/NickeManarin/ScreenToGif/issues/551 Can you people test it? In order to test it, you need to delete the old Gifski and download again via Options > Extras, while using the test version of ScreenToGif.
Author
Owner

@JsBergbau commented on GitHub (Sep 19, 2021):

Had just a similiar issue. You have to download gifski in the settings dialog. Downloading it from Website and pointing to that path fails when trying to create the gif with this error:

   bei System.Runtime.InteropServices.Marshal.GetDelegateForFunctionPointer(IntPtr ptr, Type t)
   bei ScreenToGif.Util.GifskiInterop..ctor()
   bei ScreenToGif.Util.EncodingManager.<Encode>d__27.MoveNext()
<!-- gh-comment-id:922505964 --> @JsBergbau commented on GitHub (Sep 19, 2021): Had just a similiar issue. You have to download gifski in the settings dialog. Downloading it from Website and pointing to that path fails when trying to create the gif with this error: ``` bei System.Runtime.InteropServices.Marshal.GetDelegateForFunctionPointer(IntPtr ptr, Type t) bei ScreenToGif.Util.GifskiInterop..ctor() bei ScreenToGif.Util.EncodingManager.<Encode>d__27.MoveNext() ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ScreenToGif#268
No description provided.