ReHIPS forum

English Subforum => ReHIPS => Topic started by: XhenEd on June 15, 2016, 10:44:38 AM

Title: Browser Freezes
Post by: XhenEd on June 15, 2016, 10:44:38 AM
Since ReHIPS is installed on the Host OS, at first I thought that the problem is because I have other security software. I disabled them one by one, but the problem persists. Until, I tried to reproduce it on the Guest OS, which has no security except Windows' own built-in (Windows Defender/Firewall). And the problem occurred there too.

I use Pale Moon, as usual. What happens is that the browser freezes when I try to watch online videos. Sometimes, it's caused by Youtube videos. Other times, it's caused by other online videos. I think the freeze is because of Flash.

Can someone test this video: http://www.cloudtime.to/video/c7ed0612a5d48
It's preferable to use Pale Moon or Firefox.
Then, switch to full screen. Afterwards, wait for a few seconds.
Title: Re: Browser Freezes
Post by: aDVll on June 15, 2016, 11:05:07 AM
Did you add plugin container in the same isolated environment as Palemoon? For firefox the location is this so it should be similar.
C:\Program Files (x86)\Mozilla Firefox\plugin-container.exe

Settings should be
(http://i.imgur.com/KdWTaBZ.png)

Video doesn't freeze for me in Firefox so i can't really test it.

EDIT:Confirm you allowed plugin container as i showed you in image and i will install palemoon again to test if it still freezes.
Title: Re: Browser Freezes
Post by: Umbra on June 15, 2016, 11:07:27 AM
for info, on Chrome , no slowdown with Youtube and other.
Title: Re: Browser Freezes
Post by: XhenEd on June 15, 2016, 11:16:48 AM
Quote from: aDVll on June 15, 2016, 11:05:07 AM
Did you add plugin container in the same isolated environment as Palemoon? For firefox the location is this so it should be similar.
C:\Program Files (x86)\Mozilla Firefox\plugin-container.exe

Settings should be
(http://i.imgur.com/KdWTaBZ.png)

Video doesn't freeze for me in Firefox so i can't really test it.

EDIT:Confirm you allowed plugin container as i showed you in image and i will install palemoon again to test if it still freezes.
Yes, I did.

:(
Title: Re: Browser Freezes
Post by: XhenEd on June 15, 2016, 11:26:30 AM
Try the 42:00+ minute. Then, full screen. Then wait.
It stops for me after 5 seconds. Then if I exit full screen, I couldn't press anything because Pale Moon seems to have been frozen.
Title: Re: Browser Freezes
Post by: aDVll on June 15, 2016, 11:33:51 AM
Quote from: XhenEd on June 15, 2016, 11:26:30 AM
Try the 42:00+ minute. Then, full screen. Then wait.
It stops for me after 5 seconds. Then if I exit full screen, I couldn't press anything because Pale Moon seems to have been frozen.
Ok just tried this with palemoon 64bit and the info you gave but it doesn't do it for me.  :(
Maybe post your log since you start palemoon until the freeze happens. Maybe something is blocked there.

Ok found a freeze when you play with maximize and minimize a few times but give me some time to see if it happens always and even without rehips.

Ok happens only with rehips isolated environment.  Steps to reproduce.

Install palemoon 64bit
install ublock origin or some other adblocker because the site is cancer
Watch the video XhenEd linked here http://www.cloudtime.to/video/c7ed0612a5d48
Move to any time in the video
Click the full screen a few times to go in and out of the video player full screen.
It should freeze
Title: Re: Browser Freezes
Post by: XhenEd on June 15, 2016, 11:46:25 AM
Thanks for reproducing, aDVII!

For me, I only do the maximizing-minimizing once, and the browser is frozen.
Title: Re: Browser Freezes
Post by: XhenEd on June 15, 2016, 11:53:46 AM
aDVII, can you test with options separate desktop and hook control enabled?

Pale Moon wouldn't freeze for me if they are checked.
Title: Re: Browser Freezes
Post by: aDVll on June 15, 2016, 11:58:51 AM
Quote from: XhenEd on June 15, 2016, 11:53:46 AM
aDVII, can you test with options separate desktop and hook control enabled?

Pale Moon wouldn't freeze for me if they are checked.
I will try. It's a bit hard to do because that site is bad and half the time decides i watched enough and blocks me from loading the video.
Title: Re: Browser Freezes
Post by: XhenEd on June 15, 2016, 12:03:44 PM
Quote from: aDVll on June 15, 2016, 11:58:51 AM
Quote from: XhenEd on June 15, 2016, 11:53:46 AM
aDVII, can you test with options separate desktop and hook control enabled?

Pale Moon wouldn't freeze for me if they are checked.
I will try. It's a bit hard to do because that site is bad and half the time decides i watched enough and blocks me from loading the video.
Weird 'cause I could play the video over and over again without any warning.
Title: Re: Browser Freezes
Post by: aDVll on June 15, 2016, 12:07:13 PM
Quote from: XhenEd on June 15, 2016, 12:03:44 PM
Quote from: aDVll on June 15, 2016, 11:58:51 AM
Quote from: XhenEd on June 15, 2016, 11:53:46 AM
aDVII, can you test with options separate desktop and hook control enabled?

Pale Moon wouldn't freeze for me if they are checked.
I will try. It's a bit hard to do because that site is bad and half the time decides i watched enough and blocks me from loading the video.
Weird 'cause I could play the video over and over again without any warning.
So you are right with hook control maximize and minimize doesn't freeze the browser. Though no such issues with youtube so no clue what is happening. Devs will need to check it.
Also doesn't happen in Firefox so it is something specific with palemoon. Maybe it needs hooks to function properly with flash video. Wait for Fixer to check it out.
Title: Re: Browser Freezes
Post by: XhenEd on June 15, 2016, 12:16:49 PM
Quote from: aDVll on June 15, 2016, 12:07:13 PM
Quote from: XhenEd on June 15, 2016, 12:03:44 PM
Quote from: aDVll on June 15, 2016, 11:58:51 AM
Quote from: XhenEd on June 15, 2016, 11:53:46 AM
aDVII, can you test with options separate desktop and hook control enabled?

Pale Moon wouldn't freeze for me if they are checked.
I will try. It's a bit hard to do because that site is bad and half the time decides i watched enough and blocks me from loading the video.
Weird 'cause I could play the video over and over again without any warning.
So you are right with hook control maximize and minimize doesn't freeze the browser. Though no such issues with youtube so no clue what is happening. Devs will need to check it.
Also doesn't happen in Firefox so it is something specific with palemoon. Maybe it needs hooks to function properly with flash video. Wait for Fixer to check it out.

Thanks!
Could you try the video here: http://beta.re-hips.com/index-en.html
Title: Re: Browser Freezes
Post by: aDVll on June 15, 2016, 12:20:51 PM
Yeah freezes also. It's something with embedded video. If you go and watch the rehips video on youtube it doesn't freeze when you minimize and maximize.
Title: Re: Browser Freezes
Post by: XhenEd on June 15, 2016, 12:28:45 PM
Thanks!

But I remember that there were youtube videos on the youtube site, itself, that triggered a freeze. I just forgot the links, and the history is gone because I cleaned the history for testing. But the problem is similar. The only difference was that I didn't have to make the video full screen for the freeze to happen.

But, yeah, as you said, this issue might be specific to Pale Moon alone.
Title: Re: Browser Freezes
Post by: aDVll on June 15, 2016, 12:30:33 PM
Wait for fixer. I am just guessing from what i observe. He is the one capable to properly check the issue.
Title: Re: Browser Freezes
Post by: fixer on June 15, 2016, 09:20:15 PM
Ohhh, these HOOK_CONTROL access rights... they tend to jump out in mysterious ways. Will check it out and come back with more info later.
Title: Re: Browser Freezes
Post by: fixer on June 19, 2016, 01:46:23 AM
After hell of a lot debugging I don't think it's ReHIPS issue.
1. It happens only with PaleMoon, Firefox is fine.
2. It happens only with Flash plugin, HTML5 is fine.
3. It doesn't seem to happen on x86, so x64 only.
4. Several different x64 PCs failed to play flash with PaleMoon showing error while playing fine with FireFox. ReHIPS wasn't installed, so something is wrong with PaleMoon itself.
5. After some thread suspending/resuming in plugin-container.exe process PaleMoon unfreezes. If it was ReHIPS and access rights issue, this wouldn't be that easy.

So my best guess is something is wrong with messages. The thread mentioned in 5 does message processing. And SetWindowsHookEx is also about messages. I think something is wrong with their queue, maybe they're received in the wrong order, maybe some messages are stuck/processed by wrong handler-something like this. These things are pain in... well, everywhere, to debug when you have no idea about software design and I'm not familiar with FireFox architecture.
I'm 90% sure it's PaleMoon issue and ReHIPS just triggers it. So I'll save it for later as I'm not sure I can spend several days now to be completely sure it's not our fault.
Title: Re: Browser Freezes
Post by: XhenEd on June 19, 2016, 05:10:41 AM
Thanks for taking a look at the issue, fixer!

Only 64-bit, uhmmmm... 64-bit can really be problematic. Maybe the build, itself, is the reason for the issue.
QuoteTherefore, there are some very important things to note before you decide if you want to use an x64 build:
    1. You will need an x64 Windows Operating System! Just having a 64-bit processor is not enough, you will also have to have a 64-bit version of Windows (i.e. Windows Vista 64-bit, Windows 7/8/8.1/10 64-bit).
    2. Many plugins are either not available or not officially released yet for 64-bit browsers. This will mostly hamper things like in-browser document viewers and media/gaming plugins or authentication plugins (e.g. for banking sites). Most extensions, however, do work, not to be confused with plugins.
    3. Adobe Flash, used on many pages, is only available on the 64-bit browser if you run Windows 7 or later! Their plugin does not support Windows Vista 64-bit.
    4. Pale Moon x64 will be one of the very few, if not the only, desktop application on your system that will use natively 64-bit hardware acceleration. Especially with embedded graphics, legacy graphics cards, hybrid systems with 2 GPUs, or new operating systems, this may cause (sometimes severe) problems that would otherwise not show up. Native 64-bit graphical hardware acceleration for desktop use (as opposed to games) is still in need of development by a large number of driver manufacturers, and you may run into unexpected problems like memory inflation (excessive memory use by the browser), hangs or lockups of your graphics card or operating system due to driver bugs. You may have to switch to the 32-bit build of Pale Moon if you run into issues because of this; a solution is not always available.

Should I report this to Pale Moon devs?
Title: Re: Browser Freezes
Post by: aDVll on June 19, 2016, 09:40:03 AM
Quote from: XhenEd on June 19, 2016, 05:10:41 AM
Should I report this to Pale Moon devs?
Obviously they messed something up because it doesn't happen on firefox so if you can report it. 100% they could do what firefox does to avoid the issue.

Now something off topic if you don't mind. What's the reasoning behind using palemoon instead of Firefox. Ok before it was for the 64 bit version but Firefox has one now so what is the benefit if you don't mind me asking. Just curious.
Title: Re: Browser Freezes
Post by: XhenEd on June 19, 2016, 10:07:47 AM
Quote from: aDVll on June 19, 2016, 09:40:03 AM
Quote from: XhenEd on June 19, 2016, 05:10:41 AM
Should I report this to Pale Moon devs?
Now something off topic if you don't mind. What's the reasoning behind using palemoon instead of Firefox. Ok before it was for the 64 bit version but Firefox has one now so what is the benefit if you don't mind me asking. Just curious.
It's now a complete fork. It does not follow Firefox's model now. It already does this for several years. Honestly, the developers technical knowledge about how browsers should be is why I chose it over firefox. They also have user-friendly documentation about their program.

Because Pale Moon has problems currently with ReHIPS, I changed to Cyberfox, still not firefox. :D Firefox is too vanilla for me. I want something "enhanced".

Edit: Actually, Google Chrome is always my top choice among browsers. Since I get demo limit when using it, I would need to use browsers with less processes running. :D
Title: Re: Browser Freezes
Post by: aDVll on June 19, 2016, 10:23:06 AM
 I see. Makes sense and hopefully rehips will get released soon so all can buy a copy for their pc and avoid the limit. In my opinion Chrome is the most secure and one of the fastest browsers available.
Title: Re: Browser Freezes
Post by: XhenEd on June 19, 2016, 02:08:08 PM
Quote from: aDVll on June 19, 2016, 10:23:06 AM
I see. Makes sense and hopefully rehips will get released soon so all can buy a copy for their pc and avoid the limit. In my opinion Chrome is the most secure and one of the fastest browsers available.
I certainly agree.  :)

But still, I'll try to report the problem to Pale Moon.
Title: Re: Browser Freezes
Post by: fixer on June 19, 2016, 04:20:11 PM
I'm inclined it's PaleMoon issue. And such races/queues are extremely hard to debug, especially when you're not familiar with software architecture. So I think the best course is to report it to PaleMoon devs.
Title: Re: Browser Freezes
Post by: XhenEd on June 19, 2016, 04:21:32 PM
Quote from: fixer on June 19, 2016, 04:20:11 PM
I'm inclined it's PaleMoon issue. And such races/queues are extremely hard to debug, especially when you're not familiar with software architecture. So I think the best course is to report it to PaleMoon devs.
I reported the issue. I'm awaiting for their response.  :)
Title: Re: Browser Freezes
Post by: aDVll on June 19, 2016, 06:48:44 PM
Quote from: XhenEd on June 19, 2016, 04:21:32 PM
Quote from: fixer on June 19, 2016, 04:20:11 PM
I'm inclined it's PaleMoon issue. And such races/queues are extremely hard to debug, especially when you're not familiar with software architecture. So I think the best course is to report it to PaleMoon devs.
I reported the issue. I'm awaiting for their response.  :)
They left you a reply with a possible fix that doesn't work when i tested it and then basically told you if this doesn't work switch browser or ditch rehips which is obviously the easy way out for them. From what i understand they don't investigate such issues but they gave a few ideas. Anw for context if rehips is going to investigate more in the future.
QuoteThanks for reporting this, but without knowing exactly what the sandbox does, this is incredibly hard to troubleshoot. Pale Moon uses IPC to communicate with plugins -- if the sandboxing software intercepts that messaging to manipulate/monitor/control intra-OS IPC, it's likely the cause of this hang condition, e.g. if it releases messages back the queue out-of-order or in bursts (with the possibility of causing a race, especially with very fast processing more likely to happen in x64). This can be further aggravated by the fact that Flash tries to use its own sandboxing on top of that by default (which is known to cause issues) -- Firefox disables this Flash sandboxing by default in later versions; we have a small tool available to help make the proper configuration entries. You can try that first.

Stacking sandboxing frameworks is bound to cause issues, though. If disabling Flash "protected mode" doesn't help, you're left with just the option to disable recrypt for Pale Moon, or use the x86 version of Pale Moon that will have more even/controlled flow through the compatibility layer in Windows (or use a different browser that is compatible with recrypt's way of handling IPC messaging). Unfortunately, Pale Moon doesn't have the option to not use flash out-of-process right now because there are known stability issues with that; I can add a pref to control this specifically if it's needed, as that would be very simple to put in.
Title: Re: Browser Freezes
Post by: XhenEd on June 19, 2016, 06:54:36 PM
Quote from: aDVll on June 19, 2016, 06:48:44 PM
Quote from: XhenEd on June 19, 2016, 04:21:32 PM
Quote from: fixer on June 19, 2016, 04:20:11 PM
I'm inclined it's PaleMoon issue. And such races/queues are extremely hard to debug, especially when you're not familiar with software architecture. So I think the best course is to report it to PaleMoon devs.
I reported the issue. I'm awaiting for their response.  :)
They left you a reply with a possible fix that doesn't work when i tested it and then basically told you if this doesn't work switch browser or ditch rehips which is obviously the easy way out for them. From what i understand they don't investigate such issues but they gave a few ideas. Anw for context if rehips is going to investigate more in the future.
QuoteThanks for reporting this, but without knowing exactly what the sandbox does, this is incredibly hard to troubleshoot. Pale Moon uses IPC to communicate with plugins -- if the sandboxing software intercepts that messaging to manipulate/monitor/control intra-OS IPC, it's likely the cause of this hang condition, e.g. if it releases messages back the queue out-of-order or in bursts (with the possibility of causing a race, especially with very fast processing more likely to happen in x64). This can be further aggravated by the fact that Flash tries to use its own sandboxing on top of that by default (which is known to cause issues) -- Firefox disables this Flash sandboxing by default in later versions; we have a small tool available to help make the proper configuration entries. You can try that first.

Stacking sandboxing frameworks is bound to cause issues, though. If disabling Flash "protected mode" doesn't help, you're left with just the option to disable recrypt for Pale Moon, or use the x86 version of Pale Moon that will have more even/controlled flow through the compatibility layer in Windows (or use a different browser that is compatible with recrypt's way of handling IPC messaging). Unfortunately, Pale Moon doesn't have the option to not use flash out-of-process right now because there are known stability issues with that; I can add a pref to control this specifically if it's needed, as that would be very simple to put in.
Yeah, just saw the reply. Thanks for posting this here!
Title: Re: Browser Freezes
Post by: fixer on June 19, 2016, 07:08:20 PM
I understand their position, bugs like this are really hard to debug, especially when you don't have for about 5 days completely free for this. ReHIPS doesn't intercept any IPC in any invasive manner (like remove some message from queue, inspect it and reinject back) that could break order of messages. Bullets 1, 4 and 5 above suggest that most likely it's not ReHIPS issue. So it's written in our TODO list, but with low priority, I'll come back to it later.
Title: Re: Browser Freezes
Post by: aDVll on June 19, 2016, 07:10:25 PM
Flash is going to die sooner or later anw. One can only hope.  8)
Title: Re: Browser Freezes
Post by: XhenEd on June 19, 2016, 07:11:10 PM
Quote from: fixer on June 19, 2016, 07:08:20 PM
I understand their position, bugs like this are really hard to debug, especially when you don't have for about 5 days completely free for this. ReHIPS doesn't intercept any IPC in any invasive manner (like remove some message from queue, inspect it and reinject back) that could break order of messages. Bullets 1, 4 and 5 above suggest that most likely it's not ReHIPS issue. So it's written in our TODO list, but with low priority, I'll come back to it later.
I understand, fixer. :)