-
-
Notifications
You must be signed in to change notification settings - Fork 66
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
trash, in-process: fix segfault with glib 2.77.1 #658
Conversation
*the animation on this applet isn't visible anyway even out of process where it still runs
With the trash applet in process, calling xstuff_zoom_animate() crashes with glib 2.77.1, oddly even when the function is emptied! Does not crash with glib 2.74, does for sure with glib 2.77, no idea what happens with glib 2.76 which would now be difficult to install This is probably supposed to be the same animation as the launchers. Launchers and a few other applets shrink a tiny bit and pop back to fullsize when clicked, but I cannot recall ever seeing the trash applet's icon do that, so probably this animation for the trash has been broken for years, possiblly all the way back to the gtk2 -> gtk3 transition. It's not crashing out of process, though probably not doing anything either, so for now I've limited it to the x11 and out of process case(it cannot be used in wayland). OK with removing it entirely since it doesn't seem to work if others agree. |
Confirmed, the applet crashes with glib2-2.76.4-3.fc38.x86_64 in x11 but not in wayland session. |
Note, the crash happens in x11 and build-in-process because of xstuff_zoom_animate () function.
I am still wondering why it doesn't crash in wayland session at my box. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM,
it fixes the crash in x11 when build-in-process.
@lukefromdc I will give a hint! Search for |
Indeed-looks like we are getting negative numbers for both width and height in both the What is wierd is crash even if the function was empty though, while removing the function entirely lets xstuff_zoom_animate is defined in trashapplet/src/xstuff.c so the exact function should appear nowhere else but similar ones with different names causing later crashes will have to be watched for |
@lukefromdc Look again and now pay attention where called function is defined. That will explain why your empty function changes nothing. |
That doesn't tell me anything about why it works in-process but not out of process. It's defined at the bottom of xstuff.c so anything it depends on should have been already defined. Not seeing what you are seeing |
Your applet does not use Basically it is something like this: Panel process starts, it has its own Basically applet calls This merge request did not fix anyting! This can happen with other functions and not only with functions that are defined in panel, but also in other applets. |
That means it's trying to zoom the whole panel not the applet. Out of process and with a plug that doesn't happen.
|
No, it does not mean that! It does not matter what function does. In case you did not see, check added/edited part in previous comment. |
I will look for that when I get home. If we have same-named panel and applet functions one needs to be renamed.
…On 8/13/2023 at 2:02 PM, "Alberts Muktupāvels" ***@***.***> wrote:
No, it does not mean that! It does not matter what function does.
In case you did not see, check added/edited part in previous
comment.
--
Reply to this email directly or view it on GitHub:
#658 (comment)-
1676425787
You are receiving this because you were mentioned.
Message ID: <mate-desktop/mate-
***@***.***>
|
CONFIRMED: we have an When and only when they are in the same process we have a collision of names. Fix should to rename the trashapplet's version something else, thinking |
see |
*the animation on this applet isn't visible anyway even out of process where it still runs