linuxdeepin / developer-center

Deepin developer center, provide developer wiki and community forum.
452 stars 73 forks source link

'busy' cursor #250

Closed oberon-manjaro closed 2 years ago

oberon-manjaro commented 7 years ago

I cannot reproduce this issue myself but on Manjaro several users are reporting that they get a 'busy' mousecursor immediately after login. It stops when they delete something and empty the trash. Otherwise it will just continue to show busy. Anyone have an idea how to troubleshoot this?

joksik commented 7 years ago

I'm one of the users who experience this error and I recorded a video showing that the bug affects only the desktop area in all the other windows the cursor behaves normally

https://uploadfiles.io/8e1231

edit: Now I noticed that emptying the trash can only help for 20-30 minutes and without any reason the mouse cursor is spinning again like crazy. I must have again throw something in the trash and empty it to stop it. maybe it`s some kind of memory leaks, becouse after a while the situation repeats itself

JulianLai commented 7 years ago

@joksik Same here, but empty trash doesn't work for me, I need to logout and login to the desktop. https://youtu.be/K7PQqPkLJm0

hualet commented 7 years ago

Affected users must have autostart applications, right ? @JulianLai

JulianLai commented 7 years ago

@hualet No, ~/.config/autostart is empty.

hualet commented 7 years ago

@JulianLai Then please attach the log file of dde-desktop of dde-dock which are located at ~/.cache/deepin/dde-desktop/

joksik commented 7 years ago

hualtet autostart entries clean and clean manjaro deepin installation. The problem occurs immediately after the first time you start your computer. No updates or other programs were installed. I just changed the language in the settings.

edit; Okay, when I'm in the house I will join the logs

JulianLai commented 7 years ago

@hualet 重傳 dde-desktop.log.zip

hualet commented 7 years ago

startup notification initiated: startdde-408-Julian-PC-pamac-tray-0_TIME0 I've noticed this line at the end of the log file, pamac-tray is shipped with DDE on Manjaro?

joksik commented 7 years ago

yes pamac-tray is default installing in Manjaro

oberon-manjaro commented 7 years ago

I don't have the issue although of course I am using pamac aswell. Also not in vbox with a fresh ISO, which also has pamac of course. But you can try to narrow down the problem by closing pamac-tray. Just click on the systray, then right click on pamac and 'Quit'. After that check if the busy cursor comes back.

oberon-manjaro commented 7 years ago

Even better, try removing pamac itself temporarily to see if that's causing it. It uses a dbus service...

joksik commented 7 years ago

my logs: deepin.zip

I turned off pamac-tray from autostart by delete pamac-tray.desktop from /etc/xdg/autostart and nothing changed. cursor still busy so it`s no pamac-tray issue

joksik commented 7 years ago

How is the investigation going? Have you managed to determine something? or maybe we must add some additional logs?

hualet commented 7 years ago

Sorry, got no time this day to deal with problem. Just downloaded the logs, I still see pamac starting int the log file, why ?

oberon-manjaro commented 7 years ago

That's why I meant it would be good to remove pamac altogether, not just pamac-tray auto-start to check if this is causing the busy cursor. In any case out would be strange, since I don't see the issue and my pamac plus pamac-tray are running also... 😉

joksik commented 7 years ago

hmm very very strange

1) i run livecd for fresh install and works good 2) after install at login screen where i must enter my password works good 3) first deskopt run and i have busy cursor 4) i try pacman -Rcs pamac and reboot 5) and woorks good xD :)))) 6) so if pamac dont work i try switch to octopi 7) after i install octopi i have busy cursor ://// 8) i click exit on octopi-notifier and works ;))) 8) so i can`t have pamac and octopi? any software for check system updates it causes this bug

btw after fresh install i see new bug. when i want connect to my wifi it`s does not ask for password and i must manully enter my password in deepin control center

oberon-manjaro commented 7 years ago

It's weird. I am running pamac without the cursor problem. The wifi issue, yes, it's not new: https://github.com/linuxdeepin/developer-center/issues/246

joksik commented 7 years ago

I am sending new logs if they can help

https://ufile.io/8fdd1

oberon-manjaro commented 7 years ago

@hualet I don't know about octopi, but pamac uses a daemon and a dbus service to check or updates every configured period of time - maybe that's the problem? If you'd like to check pamac sources, they are here

joksik commented 7 years ago

We will wait what the deepin programmers will say. I think that since two different programs cause the same error, unfortunately they are guilty of deepin. I do not know just why the problem does not occur at everyone. Could it be a hardware configuration? i use laptop lenovo i3 6th generation,intel 520HD graphics card and ssd disc with 4 gb ram

20170414.10:24:25.005[Debug][monitor_event_func 34 0x9b19e0 ] startup notification initiated: startdde-694-laptop-octopi-notifier-0_TIME0

20170414.10:02:56.336[Debug][monitor_event_func 34 0x23ad9e0 ] startup notification initiated: startdde-625-laptop-pamac-tray-0_TIME0

hualet commented 7 years ago

That's because the desktop file (in /etc/xdg/autostart/ directory) claims that it needs Startup Notification, but it actually won't open a new window on startup completed which is needed to stop the busy cursor. So you can simple remove the StartupNotify line in the desktop file to work around this problem.

hualet commented 7 years ago

@joksik Do other DEs share the same problem?

joksik commented 7 years ago

ok i do what you write and edit /etc/xdg/autostart/octopi-notifier.deskopt and delete this line:

StartupNotify=true

and i test this solution with pamac.deskopt and it works in 100%. thanks for help now i can again use deepin ;) but i don`t know who was guilty? manjaro team added this useless line?if it will not be fixed after every pure install i and other people that have this bug must manually edit this file

edit: yes few people on manjaro blog have the same issue with Deepin

https://forum.manjaro.org/t/constant-wait-cursor-on-desktop-and-applications-bar-manjaro-deepin/18620?source_topic_id=21464

hualet commented 7 years ago

I see this line in the source code, so it's not Manjaro's fault. @oberon2007 Your machine works well, right ? can you upload the log file ?

oberon-manjaro commented 7 years ago

Thanks @hualet ! Here you are. dde-desktop_log.txt dde-dock_log.txt As I said I don't get the busy cursor, however I have suddenly a new problem that seems to have surfaced with latest package upgrades. That's that most of the time the tray doesn't show up at all as long as pamac-tray is the only tray app running. I used to have this same issue a while ago but it had disappeared, now it seems to be back 🙄 When I launch skype for example the tray appears, but without pamac-tray icon. At the same time pidof pamac-tray shows that it is in fact running, just invisible 😉 Some rare times the systray with pamac-tray does show up normally after login. I'll catch logs for on occasion where the tray icon goes missing, but maybe I should open a separate issue for that?

oberon-manjaro commented 7 years ago

As you can see in my logs, I do get startup notification completed! Strange, why?

20170414.12:41:23.227[Debug][monitor_event_func                  42   0x1898ba0 ] startup notification completed:  startdde-607-manjaro-deepin-pamac-tray-0_TIME0
ag14774 commented 7 years ago

I had the same problem. I commented out StartupNotify=true in pamac-tray.desktop and the busy icon is gone! Great!

oberon-manjaro commented 7 years ago

@hualet I don't really understand what is going on here? How is it possible that this is only a problem for some people and also not in the live session, where pamac-tray is equally launched. Also in the logs I see both startup notification initiated and startup notification completed! Should n't that normally stop the spinning cursor?

cyc0ol commented 7 years ago

I ran into this issue after updating manjaro deepin, i tried to disable window effects and somehow the problem went away as well as problem on changing resolution on my second monitor that turns off after changing resolution. Is it also problem on window effects as well? I don't have this issue before updating..thanks.

joksik commented 7 years ago

Let's hope that they are working on the fix because on manjaro board, more and more people are complaining about this bug

hualet commented 7 years ago

Sorry, just have been very busy with our 15.4 final release for a few days. Thanks all for the information, but I'm still not aware of the root cause of this issue.

hualet commented 7 years ago

@oberon2007 Where can I get a latest ISO of your distro? I need to test it myself.

joksik commented 7 years ago

https://sourceforge.net/projects/manjarotest-community/files/deepin/17.0.1-rc3-testing/

cyc0ol commented 7 years ago

@hualet i tried the solution above and it works perfectly then i changed my video card to proprietary driver and it works well. I can now enable windows effect without any problem. Thanks.

hualet commented 7 years ago

@cyc0ol Great, but it's just a work-around, not a solution. 😅

@joksik Thanks for the download link, downloading.

cyc0ol commented 7 years ago

@hualet i forgot to mention that i have tried to install deepin with antergos and i also had the same problem mentioned above.

oberon-manjaro commented 7 years ago

@hualet latest builds are here Problem is that the live environment is not showing the issue and also when installed as you know not for everyone... Thank you very much anyway and good luck! 😉

hualet commented 7 years ago

I failed to install Manjaro on my test PC :sob: So I have to install it in my virtualbox. And I didn't reproduce the problem, so...

oberon-manjaro commented 7 years ago

What is your problem installing, how did it fail?

oberon-manjaro commented 7 years ago

In any case the issue seems to be somehow related to how Deepin (not) handles pamac and octopi's startup notification completed, which seems in fact to happen. apparently Deepin is unable to deal with such a notification when no window is opened by the application, correct? So, since no other desktop used on Manjaro has this problem I think this is what needs to be looked at in Deepin ... 😉

oberon-manjaro commented 7 years ago

@hualet can you not maybe just build/install pamac on another system? Or you'd probably just need to find or reconfigure any other tray application that doesn't open a window at startup?

hualet commented 7 years ago

After the install process finished, I reboot my computer, and it didn't show up in the grub list. @oberon2007 App launcher send the startup message, and it's the job of the launchee to send the launch finished signal, basically Qt and GtK will do the job when the window pop up. On manjaro-deepin I see the completed message every time and no busy cursor. So I'll keep digging to see what's the root cause of this issue anyway.

oberon-manjaro commented 7 years ago

@hualet but I can see that @joksik 's log also contains the "completed" message!

joksik commented 7 years ago

In my free time for testing I installed antergos base without any DE. i manually install all package pacman -S xorg xorg-server && pacman -S deepin && pacman -S deepin-extra so i have the latest fresh package from Arch not manjaro and after i run systemctl start lightdm.service and login into deskopt i have busy cursor;))) but this bug its only on my laptop i do the same steps on deskopt computer and it works good.

Does that mean that the configuration of the computer is important to disclose the problem?

hualet commented 7 years ago

@oberon2007 that means @joksik may not having busy cursor every time?

oberon-manjaro commented 7 years ago

I just looked at the log he posted earlier in this tread! I think he has the issue every time, right @joksik?

JulianLai commented 7 years ago

I have the issue everytime with antergos,and this problem is gone if I logout and login again.

joksik commented 7 years ago

oberon2007 right. i have in home 2 computers laptop ideapad 310-15isk and deskopt computer. on my laptop i have this issue every time on manjaro or on antergos and for me help only logout like JulianLai write or empty trash. strage is that on my second computer it`s works fine so its really strange. maybe hardware issue?JulianLai maybe you have intel skylake like me in laptop?

ag14774 commented 7 years ago

Just wanted to add something that might be related. When I first installed Manjaro Deepin I did not have this issue. However, I had a very similar problem where my cursor would keep spinning after startup until I would open my first window(usually deepin file manager). Once I had opened a window, it would stop. Then an update came that made this spinning "permanent"

hualet commented 7 years ago

What's the content of that update ?