Jump to content

Recommended Posts

Posted (edited)
Opera has never needed the Sun Java Runtime to be installed, it has its own Java support built in.

I think that has always been the case, at least back to version 7.

Reference to the Knowledge Base in Opera support gives a different view at

http://www.opera.com/support/kb/view/375

I have, so far as I can remember, always had Enable Java unchecked in all my years of using Opera and have never come across the need to enable it.

There again I don't have problems with Opera.

HTH

Ah, I stand corrected!

I must have mis-understood something I read ages ago about Opera and Java.

:blushing:

I think what I said about the plugins still applies though.

:)

Edited by Dave-H

Posted

This thread has been helpful to me. This slight detour about Opera and Java has caused me to dig into enough articles and do some experiments to remove Java from the list of candidates of culprits behind the freezes every six minutes. First let me clarify any misconceptions I posted previously:

Opera currently (January 2010, version 10.10 for Windows) requires no 3rd party Java runtimes or virtual machines to run itself because its compiled binaries have no dependencies to such files for normal operation. Opera official statement here, but as is often the case for me lately, clear and concise explanations are found offsite from Opera. Since around v5.12 Opera has shipped with its own distribution: classes in a JAR archive (easy enough to find) and a mysterious embedded runtime that both Sun and IBM are aware of but Opera itself does not describe.

So, will Opera operate without any trace of Java existing on the computer? Yes. I tested this by purging all remnants of Sun JRE/SDK and MS JVM physically on a Win98se test computer (zipped up all the files and deleted the directories, and close/restart Opera). In this configuration, the only Java that Opera has access to is its own distribution. Note that the physical presence of JRE files on the HDD is signaled to Opera either from the system registry or its local INI files or both.

Opera works as usual, (NB: the pause/freeze still occurs at regular intervals, more on this later). Now, if you try to do what I described in my previous post above: Tools > Advanced > Java Console nothing will happen, which indicates the Java Console is completely dependent on 3rd party JRE components. Interestingly, the presumingly buggy Opera ABOUT page still lists the Sun Java Runtime so it must be reading a string tucked away in some INI file or the system registry. If you try to check Tools > Preferences > Advanced > Enable Java, a dialog pops up to download the Sun JRE (this only occured on the first attempt, subsequent attempts to Enable Java silently disappeared from the screen.

However it seems that its native components (at this point in the experiment: the Opera JAR classes and the mysterious embedded runtime) fail to handle Java content, and proof can be seen on this Java Test Page, which results in a Java error notification from that website. I am left wondering just what this embedded runtime is and just what it is supposed to do. I am beginning to think that zipped classes in a JAR constitute a runtime in Javaland (but there's my lack of knowledge showing again).

So let's also get rid of the native Opera Java components: I zipped up the Java subfolder with its JAR and policy, deleted the original files, rinse and repeat. In this experiment there is not a single trace of Java physically existing on any HDD. Result: Opera works exactly as described above (pause/freezes still exist as well). I conclude that the supplied Java classes and so-called embedded runtime (if it really exists) is only used when a 3rd party Java runtime (Sun JRE) is being utilized by Opera. It's worth noting here that the Sun JRE plugin has absolutely no purpose with regards to Opera, it is meant for other browsers. Opera loads files from the JRE installation directory it does not use any npj*.dll plugin.

As far as I am concerned Java in all its flavors and implementations is now off the hook with regards to the Opera freeze. Stick a fork in it, it's done. Personally I feel that this is way too much research to do in order to exhaust a single ingredient as the problem in this Opera stew (thanks really to all the misguided information all over the net about Opera and Java). Its tantamount to studying ActiveX to debug MSIE problems, which is one main reason I avoid that browser except when absolutely necessary. Whatever. Nothing is easy these days.

Let me also point out that I have done the same exact experiment regarding all of the other plugins (deleting every trace, etc). I really hoped to find Adobe and its Flash disasters to be underneath this problem. Sorry to say, they are not. They may have security problems and memory leaks but Opera continues to operate exactly the same whether or not any plugins even exist on any HDD.

So I am left with some periodic task within Opera itself, occurring nearly every six minutes that paralyzes Opera completely for approximately 30 seconds. My suspicion is that Opera is running JavaScript Garbage Collection, see wiki for basics, including this statement: Simple stop-the-world garbage collectors completely halt execution of the program to run a collection cycle. Hmmm, methinks we're onto something. Once this is solved it will be very interesting to find out why some machines have this while others do not.

Those of you that do not see this problem may not appreciate its significance. Honestly, I do not remember anything this spectacularly painful since Windows 3.1. While typing this long post it has occurred almost a dozen times. Entire sentences are cached and then appear when the freeze thaws. Fortunately the freeze is confined to the Opera instances (though one Win9x hard lockup occurred complete with bluescreen scandisk). For me, there are not words enough to describe the anger and rage that I feel during some of these freezes, it all depends on what you were just doing really. If I have a bunch of downloads in progress, some (both http and ftp) do not recover and become ERROR in the status field. My rough look at this indicates that files originating from slow or non-resumable servers are most likely to die. Regardless, while Opera is suspended, packets are bouncing and this adds great pain to the disaster. Couple these facts with yet another: Opera freezes even if you are completely offline - no modem or ethernet or network at all. This wonderful feature makes any offline web development or browsing of saved webpages equally frustrating.

I am also going to bail from this particular thread since I have personally seen enough evidence to know that Opera 10.xx is not to blame at all. Can someone suggest a better home for a new thread about this generic Opera problem? Would Software Hangout be better?

Finally, I am desperately looking for one utility: a Realtime Process Monitor for Win9x, which can perform a specific function: log to a file when a condition is met. Specifically it must write a log entry whenever Opera.exe freezes, which is notable because its CPU utilization goes to 0%. Please let me know! Thanks!

I am also trying to locate any debug switches or settings that can cause Opera to log its own events, the built-in Error Log seems to be limited to webpage JavaScript errors only (kinda like a validator) but nothing substantial.

Posted
I assume you've seen this Charlotte.

http://my.opera.com/community/forums/topic.dml?id=334421

In fact you may even have posted to it under another name, but it looks as if you're not alone!

Yes. Yes. and Yes.

I have multiple confirmations that this problem goes back to 9.2x. Further, there are possibilities that it may even precede that. The strangest relevant symptom is that it is progressive, changing over time, for the worse. There must be some use by Opera of a particular system setting (like a registry based ActiveX security flag) which causes the JavaScript execution to behave differently from one computer to another.

@Everyone ... I have tested over a hundred Process Monitors now, no luck so far finding one that can monitor an individual process/thread and record a log entry when a condition is met :realmad: Still looking though. I believe I can solve this absent that utility, however, I would like concrete evidence of this Opera freeze to present to the devs. So if anyone has any ideas please post them to this thread. Thanks all!

Posted (edited)

@Charlotte... This is possibly a long shot - forgive me for coming to this a bit cold.

What version of Windows Scripting are you using? Have you compared Opera using MSE v5.6 with 5.7? At least as far as 98 SE is concerned, reverting to 5.6 solved some javascript-related problems for me (though back then I wasn't a heavy user of Opera and I don't have any directly relevant evidence of problems to report). Links to MSE versions (just for your convenience - I'm sure you know where to find them):

http://www.mdgx.com/add.htm#MSE

I use Opera 10.10 on 98 SE and experience no lockups.

Edited by bristols
  • 1 month later...
Posted
Opera has never needed the Sun Java Runtime to be installed, it has its own Java support built in.

I think that has always been the case, at least back to version 7.

Reference to the Knowledge Base in Opera support gives a different view at

http://www.opera.com/support/kb/view/375

From Opera 10.50 Build 3234 Opera is now using the Java Plug-in instead of native Java.

You weren't wrong for long Dave!  ;)

  • 1 month later...
Posted

On my Computer (Thinkpad X31) Win98se Sp3 beta +KernelEx +RP9 I also have frequent freezes using Opera 10.10.

But it is not caused by CPU Usage, but by eating up User & GDI Resources.

Opera freezes, while according to RP9 User Resources are at 1% or dropping rapidly.

GDI Resources seem to be fine.

Installing GDI Extender beta1 and setting GDIMaxHeapSize=32000 win.ini section [windows]

seems to make the freezes less frequently.

So GDI Resources are somehow involved.

As I disabled JavaScript and Plugins, either Opera is ignoring these settings or

they are not responsible for these freezes.

Posted (edited)

It does seem strange how some users suffer major problems running Opera and some, myself included suffer no problems whatsoever.

I have been running 10.51 RC3 Build 3315 for a couple of days now without incident on this 98SE machine (fully patched but no additional software). After around three hours of use, one hour of that viewing the BBCiPlayer using Flash 9.0.124 the resources were System and User @ 85% and GDI @ 88%. Process Explorer v11.10 was giving a figure of between 35-45% CPU usage when using the Flash Player which is significantly better than Opera 10.00 and 10.10 where the figure peaked at 98%.

Edit: Build 3315 has been released as a Final.

Edited by lightning slinger

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...