XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently May 7th, 2025, 11:31 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 13 posts ] 
Author Message
PostPosted: December 31st, 2013, 1:39 pm 
Offline

Joined: June 18th, 2012, 12:07 am
Posts: 268
On several occasions now one of my widgets was not operating correctly or my PC seemed a little slow or xwidget was freezing at startup, I found two instances of the same widget running. Closed one and all OK.
So I ask...
Should xwidget have an option to allow multiple instances of the same widget to run :?:
or
Should xwidget warn you if the same widget is already running :?:


Top
 Profile  
 
PostPosted: December 31st, 2013, 5:41 pm 
Offline

Joined: October 26th, 2013, 8:17 am
Posts: 362
meme wrote:
On several occasions now one of my widgets was not operating correctly or my PC seemed a little slow or xwidget was freezing at startup, I found two instances of the same widget running. Closed one and all OK.
So I ask...
Should xwidget have an option to allow multiple instances of the same widget to run :?:
or
Should xwidget warn you if the same widget is already running :?:


you can run as many widgets as you want without any limitation
you can also run multiple instances of same widget without any limitation
and also it won't warn you if same widget running
all running widgets will save to the theme file separately;
this means each widget will have separate configuration in theme file;
so you can run same widget with different configuration


i have also some kind of cpu usage problem;
i don't know exactly when; but it happens when my system is up for some days or after some hibernating.
it will use 10-15% higher cpu usage.
after restarting my system the cpu usage will get back to normal.


so you can try these:
1. check if the problem will happen again by using same widget
2. restart your system
3. test that widget again to see still have this problem

if it doesn't fixed:
there could be a problem with the script code.
or
maybe antivirus is checking the software.


Top
 Profile  
 
PostPosted: December 31st, 2013, 5:50 pm 
Offline

Joined: June 18th, 2012, 12:07 am
Posts: 268
Thank you hamid for your reply
As I said in the post my problems are caused by multiple instances of the same widget running, closing the duplicate resolves the issues.
My post is about the option to allow or warn of multiple instance.


Top
 Profile  
 
PostPosted: January 1st, 2014, 12:37 am 
Offline

Joined: October 26th, 2013, 8:17 am
Posts: 362
meme wrote:
Thank you hamid for your reply
As I said in the post my problems are caused by multiple instances of the same widget running, closing the duplicate resolves the issues.
My post is about the option to allow or warn of multiple instance.


but there shouldn't be any problem with multiple instances of widget running.
i currently have 13 widgets running and 3 of them are same widgets;
and i don't have any problem.

if you like you can post the widget to test it out.


Top
 Profile  
 
PostPosted: January 6th, 2014, 11:59 am 
Offline

Joined: June 11th, 2013, 10:42 am
Posts: 26
as you can see from this option shows that i have two instances of the same widget... (Animated Weathr Pro) from that windows you can manage your widgets and see if someone is more than one time


Attachments:
Snap1.jpg
Snap1.jpg [ 77.4 KiB | Viewed 11242 times ]
Top
 Profile  
 
PostPosted: January 6th, 2014, 9:25 pm 
Offline

Joined: June 18th, 2012, 12:07 am
Posts: 268
Thank you tasmani2606, I am aware of the option window to manage widgets, my post is about the option to allow or warn of multiple instance of the same widget running.


Top
 Profile  
 
PostPosted: January 12th, 2014, 7:21 pm 
Offline

Joined: October 26th, 2013, 8:17 am
Posts: 362
meme wrote:
Thank you tasmani2606, I am aware of the option window to manage widgets, my post is about the option to allow or warn of multiple instance of the same widget running.

just to clarify:
you mean to have an option in settings to choose between 2 modes:
1. always allow multiple instances of widget
2. warn when multiple instance of widget started and choose to run it or not

am i right?

==========

but for your cpu usage problem:
it would better to check your widget for errors or optimize your code a bit
it happens to me when i use infinite loop or when i use some command like sleep() or some other that make high cpu usage
it shouldn't normally happens to multiple instances of widget
so better to check out your code


Top
 Profile  
 
PostPosted: January 12th, 2014, 9:54 pm 
Offline

Joined: June 18th, 2012, 12:07 am
Posts: 268
Quote:
just to clarify:
you mean to have an option in settings to choose between 2 modes:
1. always allow multiple instances of widget
2. warn when multiple instance of widget started and choose to run it or not

am i right?
Yes exactly, this option is common in programs that the user wishes to prevent multiple instances running.

Quote:
so better to check out your code

the problem is not the code, some issues are -
multiple widgets using netmonitorcore causes inaccurate reading
multiple widgets using webparsercore results in unnecessary updates and traffic.
multiple widgets using datetimecore to preform operations on your PC like system shutdown, cause problems if widgets are configured to different values, saved ini values are different.
If you have a widget that contains seven different cores all are operation twice, just unnecessary, and you may not be aware because one widget if behind the other.


Top
 Profile  
 
PostPosted: January 13th, 2014, 7:42 am 
Offline

Joined: October 26th, 2013, 8:17 am
Posts: 362
meme wrote:
Quote:
just to clarify:
you mean to have an option in settings to choose between 2 modes:
1. always allow multiple instances of widget
2. warn when multiple instance of widget started and choose to run it or not

am i right?
Yes exactly, this option is common in programs that the user wishes to prevent multiple instances running.

i hope Tony will see this and add this feature

============
in addition of this i have also some suggestions for xwidget to manage widgets easier:


1. in running tab of widget manager window mark duplicate of widgets with different color
> to separate duplicates from other widgets to easily find duplicates


2. in running tab of widget manager by selecting a widget instead of Default Image of widget; display image of widget on desktop individually and if possible realtime image of widget

> to find out position and size of widget on screen from widget manager and find out where to look for it
> it would be better to be realtime to find out what is it doing now from widget manager
> when multiple instance of widget is running it's so hard to find out which one you are looking for and which one you want to close and where to look for it


3. on show dashboard next to each close box of widget show number of widgets and number of duplicates; something like this:
(DuplicateNumber/CountOfSameWidget)&(WidgetNumber/TotalCountOfWidgets)


4. in running tab of widget manager add sorting by name and by start date
> when too many widgets running it would be easier to find it by name


===========
i hope these could be added to xwidget


Top
 Profile  
 
PostPosted: January 25th, 2014, 7:58 pm 
Offline
User avatar

Joined: March 8th, 2013, 10:27 pm
Posts: 353
Well, disabling multiple instances of the same widget wont be an welcome feature for me. Some of my widgets work on this very principle and with this change they will be rendered useless.

_________________
Life is a myriad game... Just play it!


Top
 Profile  
 
PostPosted: January 25th, 2014, 10:10 pm 
Offline

Joined: June 18th, 2012, 12:07 am
Posts: 268
No one said anything about disabling multiple instances of the same widget, if you read the suggestion fully it was
Quote:
Should xwidget have an option to allow multiple instances of the same widget to run :?:
or
Should xwidget warn you if the same widget is already running :?:

The option to disable or the option for a warning would not stop people running multiple instances if they wish.


Top
 Profile  
 
PostPosted: March 13th, 2014, 5:54 am 
Offline
User avatar

Joined: March 8th, 2013, 10:27 pm
Posts: 353
well, implementing any such option will render my widgets useless. Ofcourse, you don't want a popup everytime I add a new sticky note/shortcut (some of my widgets that internally spawn off a new instance of themselves)...

_________________
Life is a myriad game... Just play it!


Top
 Profile  
 
PostPosted: March 13th, 2014, 12:36 pm 
Offline

Joined: June 18th, 2012, 12:07 am
Posts: 268
Quote:
implementing any such option
not true
A check box in - Xwidget - Options that would allow multiple instances of the same widget would not affect you, you could even make the default to allow them, that way you would not have to go to the trouble of ticking the box.
But don't worry it will never happen anyway.... ;)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 24 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Powered by phpBB® Forum Software © phpBB Group