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
The path to the file used for Gdk::Texture does not matter, as long as it doesn't exist. Without the begin block, the app exits with a GLib::Error and an invalid memory access even without running GC.collect.
Notice how texture doesn't have to be called at all. Replacing the begin-rescue block with a File.exists? check goes around the issue.
Another interesting thing is that
Gtk::Picture.new_for_filename("")
does not suffer from the same issue.
The text was updated successfully, but these errors were encountered:
BigBoyBarney
changed the title
Begin-rescue block results in a double free or corruption error with Gdk::Texture
Begin-rescue block results in a double free or corruption error with Gdk::TextureDec 27, 2024
This is a follow-up issue from #74, possibly related.
The following code crashes with the error if
GC.collect
is run.The path to the file used for
Gdk::Texture
does not matter, as long as it doesn't exist. Without the begin block, the app exits with aGLib::Error
and an invalid memory access even without running GC.collect.Notice how
texture
doesn't have to be called at all. Replacing thebegin-rescue
block with aFile.exists?
check goes around the issue.Another interesting thing is that
does not suffer from the same issue.
The text was updated successfully, but these errors were encountered: