[LONG] XnView Bug or not? Help to find a problem source.
Posted: Sat Jun 03, 2017 4:15 pm
Okay, so a few days ago i dwindled in the untested settings of ccleaner and did some damage to my session manager by clearing it. Up to now this seems to have hit only two "kinds" of programs. Chrome/chromium and XnView/XnConvert.
Namely i am trying to reverse some changes i did, but up to now, it all seems to point that my mistake was to "clean" the session manager.
In chrome i get that at high cpu usage a specific pair of extensions hang my computer when i close chrome, these were previously harmless, and being an engineer i often tax my computer. It seems that by stopping them chrome has no problems anymore, but it seems weird. They are basically a couple of javascript injecting extensions. One is greasemonkey for personalising some sites i visit often, the other is backerkit. Basically the same thing which seems to involve javascript use.
Vice versa i've started to see that xnview and xnconvert have both started hanging again. A problem which i had previously fixed by telling them not to check internet for updates anymore.
Now, if these were my college days i would simply format everything and pass the next day reinstalling everything. But this is not college anymore. I need to work too on this computer and if i reinstall programs on this computer i will have to pass the next two weeks on phone support to get my installation re-initialized to allow those programs to start working again.
So i need to find a solution which does not force me to reinstall everything.
let's go by steps.
- first. What was CCleaner cleaning? It's a system key, so obviously no files, but looking into the winapp2ini this is what the beta testing setting was cleaning:
[Session Manager*]
LangSecRef=3025
Detect=HKLM\Software\Microsoft\Windows
Default=False
FileKey1=%WinDir%\AppCompat\Programs|*.txt;*.xml
FileKey2=%WinDir%\AppCompat\Programs\Install|*.txt;*.xml
RegKey1=HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\AppCompatCache|AppCompatCache
RegKey2=HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\AppCompatCache|CacheMainSdb
RegKey3=HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\AppCompatCache|SdbTime
so basically what i was undermining was my computer's ability to run applications in compatibility mode.
This does not help me much. the info stored in those three keys are in binary.
- Second, let's also state that rebooting the computer does not affect the hanging. If for any reason xnview or xnconvert have started hanging, they keep hanging every single time, consistently until something i do (explained below) triggers them to actually start working again.
- third, let's then look at how i get xnview to start working again: twiddling with net related stuff seems to do the trick. Stuff like starting chrome to visit a random page (just searching the word "test" seems to do the trick a lot of the times). Starting the network check widget (the one in the system settings) does the trick some other time. using stuff like discord or whatsapp for desktop seems to do the trick too. Even starting a random program which checks its updates seems to be able to unlock XnView.
Now. The problem would be easily solvable if i knew why XnView starts hanging. I know chrome is something javascript related. But i figured that since it was some damage done by cleaning, just doing a clean re-install after getting it to hang should solve the problem.
- Fourth. I did a clean re-install of XnView after it started hanging and it continued hanging. So it *SHOULD* not be a setting. I hope.
- Fifth. i tried a previous version fix. It continued hanging.
- Sixth. i re-installed the latest version. Still hanging.
- Seventh fiddled as usual. Everythign started and even doing the reinstallation of old and newer versions and everything it all continued working normally.
So, basically. For some reasons only "two" programs in the entire computer are affected. And one (chrome/chromium) only in a minor way, while the other (the Xn series) basically refuses to start. At random.
I have to understand why.
- CCleaner is not the culprit anymore. I've tried doing cleanings and it never started hanging after a cleaning.
- For some reasons it seems related to the network. Even as xnview does not check for the network anymore it still "takes possession" of the handles related to my network drivers. However, if it starts it does releas them, while it keeps them if it hangs.
- It might be video card related. As the computer has two video cards, a cheap nvidia one and also an intel integrated one, which functions as a bridge between the nvidia and the monitor (i cannot exclude the intel video card without getting a completely blank screen). It seems that the intel driver, as of the latest version has started becoming some tentacled unholy thing that takes control of anything that shows up on the monitor and everything connected, such as the network driver for anything that uses the video card but also does network related things. Seems like it's wreaking havoc on steam, for instance, locking important directories and files, preventing any change, even serious things like outright stopping people from uninstalling games... And i have a driver that does lock onto all folders and files of the xnview tree and does indeed have the whole steam directory tree handles for some reason (gog is untouched) every time it starts, i see, i thought it was the usual stuff because... uh... xnview and steam DO use a video card and as such it should be handled by a video card. But i do notice now that it does not release xnview/xnconvert upon stopping xnview/xnconvert.
- Or it might be that i stumbled on an actual XnView/XnConvert bug, after all, everything else works fine (now).
So.
First i need to find what is that i do that starts it hanging.
Second i need to find a solution which does not look like [CENSORED] voodoo. Waving a chicken and praying might be good enough for most people, it's not good enough for me. I'm not using xnview for work thank god, I'm an engineer and most of the "images" i look at are cads or pdfs or slides or stuff that uses other programs.
But it's still hindering me when i need the rest namely reading my webcomic archives and stuff. And that annoys me.
Given that i've tried to explain my situation, and i hope you guys have read it all, maybe some of you guys has a suggestion to make? I'll keep checking but a bit of brainstorming might find a solution.
Namely i am trying to reverse some changes i did, but up to now, it all seems to point that my mistake was to "clean" the session manager.
In chrome i get that at high cpu usage a specific pair of extensions hang my computer when i close chrome, these were previously harmless, and being an engineer i often tax my computer. It seems that by stopping them chrome has no problems anymore, but it seems weird. They are basically a couple of javascript injecting extensions. One is greasemonkey for personalising some sites i visit often, the other is backerkit. Basically the same thing which seems to involve javascript use.
Vice versa i've started to see that xnview and xnconvert have both started hanging again. A problem which i had previously fixed by telling them not to check internet for updates anymore.
Now, if these were my college days i would simply format everything and pass the next day reinstalling everything. But this is not college anymore. I need to work too on this computer and if i reinstall programs on this computer i will have to pass the next two weeks on phone support to get my installation re-initialized to allow those programs to start working again.
So i need to find a solution which does not force me to reinstall everything.
let's go by steps.
- first. What was CCleaner cleaning? It's a system key, so obviously no files, but looking into the winapp2ini this is what the beta testing setting was cleaning:
[Session Manager*]
LangSecRef=3025
Detect=HKLM\Software\Microsoft\Windows
Default=False
FileKey1=%WinDir%\AppCompat\Programs|*.txt;*.xml
FileKey2=%WinDir%\AppCompat\Programs\Install|*.txt;*.xml
RegKey1=HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\AppCompatCache|AppCompatCache
RegKey2=HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\AppCompatCache|CacheMainSdb
RegKey3=HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\AppCompatCache|SdbTime
so basically what i was undermining was my computer's ability to run applications in compatibility mode.
This does not help me much. the info stored in those three keys are in binary.
- Second, let's also state that rebooting the computer does not affect the hanging. If for any reason xnview or xnconvert have started hanging, they keep hanging every single time, consistently until something i do (explained below) triggers them to actually start working again.
- third, let's then look at how i get xnview to start working again: twiddling with net related stuff seems to do the trick. Stuff like starting chrome to visit a random page (just searching the word "test" seems to do the trick a lot of the times). Starting the network check widget (the one in the system settings) does the trick some other time. using stuff like discord or whatsapp for desktop seems to do the trick too. Even starting a random program which checks its updates seems to be able to unlock XnView.
Now. The problem would be easily solvable if i knew why XnView starts hanging. I know chrome is something javascript related. But i figured that since it was some damage done by cleaning, just doing a clean re-install after getting it to hang should solve the problem.
- Fourth. I did a clean re-install of XnView after it started hanging and it continued hanging. So it *SHOULD* not be a setting. I hope.
- Fifth. i tried a previous version fix. It continued hanging.
- Sixth. i re-installed the latest version. Still hanging.
- Seventh fiddled as usual. Everythign started and even doing the reinstallation of old and newer versions and everything it all continued working normally.
So, basically. For some reasons only "two" programs in the entire computer are affected. And one (chrome/chromium) only in a minor way, while the other (the Xn series) basically refuses to start. At random.
I have to understand why.
- CCleaner is not the culprit anymore. I've tried doing cleanings and it never started hanging after a cleaning.
- For some reasons it seems related to the network. Even as xnview does not check for the network anymore it still "takes possession" of the handles related to my network drivers. However, if it starts it does releas them, while it keeps them if it hangs.
- It might be video card related. As the computer has two video cards, a cheap nvidia one and also an intel integrated one, which functions as a bridge between the nvidia and the monitor (i cannot exclude the intel video card without getting a completely blank screen). It seems that the intel driver, as of the latest version has started becoming some tentacled unholy thing that takes control of anything that shows up on the monitor and everything connected, such as the network driver for anything that uses the video card but also does network related things. Seems like it's wreaking havoc on steam, for instance, locking important directories and files, preventing any change, even serious things like outright stopping people from uninstalling games... And i have a driver that does lock onto all folders and files of the xnview tree and does indeed have the whole steam directory tree handles for some reason (gog is untouched) every time it starts, i see, i thought it was the usual stuff because... uh... xnview and steam DO use a video card and as such it should be handled by a video card. But i do notice now that it does not release xnview/xnconvert upon stopping xnview/xnconvert.
- Or it might be that i stumbled on an actual XnView/XnConvert bug, after all, everything else works fine (now).
So.
First i need to find what is that i do that starts it hanging.
Second i need to find a solution which does not look like [CENSORED] voodoo. Waving a chicken and praying might be good enough for most people, it's not good enough for me. I'm not using xnview for work thank god, I'm an engineer and most of the "images" i look at are cads or pdfs or slides or stuff that uses other programs.
But it's still hindering me when i need the rest namely reading my webcomic archives and stuff. And that annoys me.
Given that i've tried to explain my situation, and i hope you guys have read it all, maybe some of you guys has a suggestion to make? I'll keep checking but a bit of brainstorming might find a solution.