-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
plugin program query cost too much time #1017
Comments
Wow. 26 seconds is a really long time. Must be related to Metro Apps since it was not present before. I will try to profile the plugin this weekend. |
hello @lances101 , how's the profiler going? |
@jhdxr to be honest not very well. I started working and still am finishing my master so it's a little bit hard to dedicate a lot of time to Wox. I decided to spend this afternoon answering tickets and trying to fix problems that can be fixed in an evening. My main priority in terms of Wox development is releasing 1.3.295 through Squirrel. That build is way more stable than 1.3.183. The 26 seconds delay is a huge issue, so it will have a high priority. |
@jhdxr I will install Windows 10 this week and take a look. The API @happlebao used is only available with Windows 10 and installing the devkit on Windows 8 didn't help. |
@lances101 well, after I reinstall win10 sdk I can compile the latest code successfully. Unfortunately I don't think the quick fix would work, because wox still consume almost all of my free memory (5G+) and cpu (20%+) even I comment all the codes relating to I'm not quite familar with neither c# nor vs, so I cannot figure out what happend. but I capture a screenshot maybe you could give me some suggestions on how to profiler? |
@jhdxr Let me update you on how things are going. I've tried to replicate your issue, but the main problem is that I have a different build on the VM that i'm running (I'm at build 14393, while you are running the build from November 2015). The issue just does not happen on newer builds of Windows. I am already downloading and installing your specific build just in case, but we should be able to debug this without it.
|
will this happens on v1.3.183 (the release version)? |
@happlebao from the first post from @jhdxr:
and we did not have any other reports for 1.3.183 of this matter |
@jhdxr @lances101 two suggestion for debugging
|
@jhdxr, if so it is that you did install visual studio, we could then get a runtime dump with your problem. Here's how:
This will allow us to check how long specific functions took on your machine. If you don't want to go through the hassle, then it will be easier if @happlebao just connects to you remotely. |
@happlebao 1.3.183 works fine. here is the link for the dump file: http://pan.baidu.com/s/1geLGjqr (the password for open this link is |
@jhdxr Now I know why I cannot replicate your error. It's the Pinyin scoring system. It is weird why this bug is not more widespread for people on 1.3.295. It will be hard for me to debug it. Maybe if @happlebao can dedicate some time to it during the weekend it would be great. |
@jhdxr you os language is simplified chinese? |
mega link for profiler: |
@lances101 @happlebao no, the language for my os and wox is english, although most of my programs and apps use simplified chinese as the default language |
hi @jhdxr please help me with following step,
|
probally releated |
@happlebao vs tells me "未能创建详细的报告。", and even I created a new dump, I still got the same error. and I'm a little busy these days, so I'll try those builds when I'm free |
take your time :) any more details about "未能创建详细的报告"? |
I can produce this on a fresh zh-cn install now
|
no, there is just a dialog saying "未能创建详细的报告", nothing more.
I'll upload a screenshot asap
…------------------ Original ------------------
From: "happlebao"<[email protected]>;
Date: Wed, Nov 30, 2016 06:33 PM
To: "Wox-launcher/Wox"<[email protected]>;
Cc: "江湖大虾仁"<[email protected]>; "Mention"<[email protected]>;
Subject: Re: [Wox-launcher/Wox] plugin program query cost too much time(#1017)
take your time :)
any more details about "未能创建详细的报告"?
screenshot or output from bottom tab?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
the root cause is permutation is really slow for large numbers, |
install wox, query anything (not first query, reindex doesn't work). there is no results for quite long time. and the stat in plugin panel tells me the query time for program is 26104ms. (1.3.231 works fine)
%APPDATA%\Wox\Logs\version\date.txt
):The text was updated successfully, but these errors were encountered: