You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I am experiencing a editor freeze problem when auto-importing a few gif that is relatively large in both filesize and image w/h dimensions.
I looked into the code a bit and add a few prints to pinpoint the culprit of the freeze.
The error message:
Running GIF to SpriteFrames Importer
Running GIF to SpriteFrames Importer
Running GIF to SpriteFrames Importer
Running GIF to SpriteFrames Importer
Image Width: 635
Image Width: 635
Image Width: 635
Image Width: 635
Image Height: 687
Image Height: 1325
Image Height: 900
Image Height: 689
Too many record attempts!100
ERROR: (null)
at: godot::GifLoadTeoro: :mgainfy_ errercoorr d( sartct\eimmpatgse!_1f0r0a
mes.cpp:56)
ERROR: (null)
at: godot::GifLoader::gif_error (src\image_frTaomoe sm.acnpyp :r5e6c)o
rd attempts!100
ERROR: (null)
It seems the plugins function GifLoader::_load_frames is querying the info of gif header infinitely via DGifGetRecordType(gif, &recordType) function from dlib_gif libary. I added a counter to make it error out upon 100 attempts it seems to finally exits the infinite loop that caused editor freeze.
The failing gif, it's from docs from resonate plugin:
The modified source code based on master repo: src.zip
I am still new to gds extension stuff and not familiar with gif header struct or dlib_gif library, so hopefully someone will be able to pinpoint the problem causing the header check erratic behaviors.
Thanks.
The text was updated successfully, but these errors were encountered:
Hello, I am experiencing a editor freeze problem when auto-importing a few gif that is relatively large in both filesize and image w/h dimensions.
I looked into the code a bit and add a few prints to pinpoint the culprit of the freeze.
The error message:
It seems the plugins function GifLoader::_load_frames is querying the info of gif header infinitely via DGifGetRecordType(gif, &recordType) function from dlib_gif libary. I added a counter to make it error out upon 100 attempts it seems to finally exits the infinite loop that caused editor freeze.
The failing gif, it's from docs from resonate plugin:
![add-music-resource](https://private-user-images.githubusercontent.com/35385424/303929939-d23611db-5a5e-4a8a-a8e8-2b550f3b21c5.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ1ODkyNzksIm5iZiI6MTcyNDU4ODk3OSwicGF0aCI6Ii8zNTM4NTQyNC8zMDM5Mjk5MzktZDIzNjExZGItNWE1ZS00YThhLWE4ZTgtMmI1NTBmM2IyMWM1LmdpZj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI1VDEyMjkzOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWU3ZTBiODRmZjI3YWY4NzIwZDBkNGM0NzFjMzM1ZWI1NjJkYWIzOWFlYjBkNjQyZjNlYTUwMjE0MWViOTc1YzYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.WtdwYUgRdKSgrwkpRb_DuS-BdyqcJUJ0fcnWugaz_1A)
The modified source code based on master repo:
src.zip
I am still new to gds extension stuff and not familiar with gif header struct or dlib_gif library, so hopefully someone will be able to pinpoint the problem causing the header check erratic behaviors.
Thanks.
The text was updated successfully, but these errors were encountered: