Skip to content
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

LibConError #11

Open
lucidnx opened this issue Jul 31, 2019 · 21 comments
Open

LibConError #11

lucidnx opened this issue Jul 31, 2019 · 21 comments

Comments

@lucidnx
Copy link

lucidnx commented Jul 31, 2019

Hello, when i run qonsole, open it with hotkey, I will get error:

window title: LibConError
AttachConsole() Failure
Errorlevel: 0
A_LastError: 6
Will now Exit.

i have options: abort, retry, ignore.
When try to click on retry, console appears normally as expected, then it is working fine until closing and re-opening qonsole

windows 10, build: 17763.618

@joedf
Copy link
Owner

joedf commented Jul 31, 2019

Hey there! Thanks for reporting this. That tends to happen when the console is delayed or failed to start.
Are you consistently getting this error?

Also, what are your settings?

@lucidnx
Copy link
Author

lucidnx commented Aug 1, 2019

yes, it's on every start of console and triggering it with hotkey. setup:
button: F12
transparency 5%
w 1440
h 400
centered, bottom
no startup arguments
vertical offset 0
animation speed 1, delay 0, dx 25
bg color 1A1A1A, transparency 100 speed 100
run qonsole on start,
ctrl+v pasting
reduce memory usage
i am starting powershell instead of cmd

I have also found that on earlier version it was not happening

@joedf
Copy link
Owner

joedf commented Aug 1, 2019

Interesting, could you send me the last version number where this issue does not occur?
Thanks 👍

@lucidnx
Copy link
Author

lucidnx commented Aug 1, 2019

on 1.4.2 it was OK i think, now in 1.4.5 it's throwing error :)

@joedf
Copy link
Owner

joedf commented Aug 2, 2019

Great, thanks. I'll look into it. 🤓

@joedf
Copy link
Owner

joedf commented Aug 7, 2019

Hmm... I just looked at the source of v1.4.5 and v1.4.2. There is no difference other than the High DPI scaling support I've added. I could find anything related to attaching to console...
This might be related to issue #8 ...
Do you by chance have the settings file you used for both v1.4.2 and 1.4.5 ? 😀

@lucidnx
Copy link
Author

lucidnx commented Aug 7, 2019

well, I only replaced exe file. but it's happening now with this settings, what does it mean? that error? I think that it have something to do with console open time. (powershell load take longer than regular cmd) and qonsole assume it's running before it really is? also when i type exit, next time i press hotkey, it show error too.

@joedf
Copy link
Owner

joedf commented Aug 7, 2019

I think you are right with the timing issue. I'll make a custom build later tonight. And you can let me know if it works better or not. 👍

@joedf
Copy link
Owner

joedf commented Aug 8, 2019

try this? Qonsole_v1.4.5c.zip
I did simple increase for time waited for the cmd window to appear to 3 seconds.

joedf added a commit that referenced this issue Aug 8, 2019
@lucidnx
Copy link
Author

lucidnx commented Aug 8, 2019

thanks, but it's not fixed.. also when I press Ignore error, it will cycle some command errors:
AttachConsole Failure,
getFontSize Failure,
getConsoleSize Failure,
getConsoleHandle Failure,
setConsoleSize Failure

@joedf
Copy link
Owner

joedf commented Aug 8, 2019

If you try cmd instead of powershell?

@lucidnx
Copy link
Author

lucidnx commented Aug 8, 2019

no, it's same for cmd and powershell, but if i quickly hit hotkey after reloading qonsole, error is not shown. but only sometimes. I think that I need to hit hotkey in 0.5s accurately :D

@joedf
Copy link
Owner

joedf commented Aug 8, 2019

Hmmm I cant reproduce this reliably. Could you try with Console2?
https://sourceforge.net/projects/console/files/console-devel/2.00/Console-2.00b148-Beta_32bit.zip/download

@lucidnx
Copy link
Author

lucidnx commented Aug 8, 2019

Sure, it it help: I am on Windows 10 Pro 64bit, I have installed Hyper-V, some additional windows packages like SMBv1 support, and other networking and IT oriented things, WSL (Linux subsystem), OpenVPN... Maybe Hyper-V and WSL can affect it?

@joedf
Copy link
Owner

joedf commented Aug 8, 2019

It could be WSL. Either way, there is a lag causing the attach function to fail.
I'm considering a rewrite (possibly in C#) and cutting WinXP support, have Win7 as a minimum.

@lucidnx
Copy link
Author

lucidnx commented Aug 8, 2019

Well, windows XP is deprecated and I don't know person who is using it as IT guy :)

@joedf
Copy link
Owner

joedf commented Aug 8, 2019

Good point 😅

@lucidnx
Copy link
Author

lucidnx commented Aug 8, 2019

Maybe you can implement switch for cmd/powershell/bash(wsl) with specific linux you choose in reworked version ;)

@joedf
Copy link
Owner

joedf commented Aug 8, 2019

They all use the same new console as far as I know.
https://docs.microsoft.com/en-us/previous-versions/orphan-topics/ws.11/mt427362(v=ws.11)
I haven't experimented much with WSL much but it should all be pretty much the same in terms of handling the console window. I will take note of this suggestion for the rewritten version. thanks 👍

@BlueDrink9
Copy link

If it's a lagging issue, and this is ahk, can I (naïvely) suggest something like a winwaitor waitwinactive call?

@joedf
Copy link
Owner

joedf commented Sep 18, 2019

Thanks 👍
I already have a WinWaitActive but perhaps it never gets 'Active'. So maybe I'll try winwait instead. If not, maybe an asynchronous rewrite of the initialization part would mitigate this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants