i-rinat / freshplayerplugin

ppapi2npapi compatibility layer
MIT License
727 stars 52 forks source link

Conflict with some Java applications #26

Closed orschiro closed 10 years ago

orschiro commented 10 years ago

Hi there,

I cannot launch some Java applications, such as smartgithg or Crashplan, when I have installed freshplayerplugin.

The produced error output:

[ERROR:flash/platform/pepper/common/pep_process.cpp(19)] CHECK(g_process_type == PROCESS_TYPE_UNKNOWN) failed
/usr/bin/smartgithg: line 99: 21690 Aborted                 (core dumped) $_JAVA_EXEC $_VM_PROPERTIES -Xmx${SMARTGITHG_MAX_HEAP_SIZE} -Xverify:none -Dsmartgit.vm-xmx=${SMARTGITHG_MAX_HEAP_SIZE} -jar "$SMARTGIT_HOME/lib/bootloader.jar" "$@"

Any ideas what could cause the conflict?

Thanks!

i-rinat commented 10 years ago

Recent fix b9a49a4 addresses possible memory corruption. It makes RSSOwl to stop crashing on my test box just after that commit. I think most Java application use similar browser embedding techniques, thus it could fix this particular issue too.

orschiro commented 10 years ago

Yes, I can confirm that the issue is resolved and SmartgitHG no longer crashing.

Thanks a lot for your fix!

haidarvm commented 9 years ago

i have same problem with Eclipse

NOT SANDBOXED [ERROR:flash/platform/pepper/common/pep_process.cpp(19)] CHECK(g_process_type == PROCESS_TYPE_UNKNOWN) failed using openjdk version "1.8.0_45" with freshplayerplugin-git v0.2.4.r92.g96ba6ad-1

i-rinat commented 9 years ago

i have same problem with Eclipse

@coder5, it's not the same, actually. It's more like #187.

From version you're using, I can guess it's a 96ba6ad. Patch with a fix was added later, in cbaa3d62d1657cdad58fd948b6a4e8053ea8fdbe. Try to build code from the tip of the master branch.

haidarvm commented 9 years ago

thanks for fast response i'm using aur arch linux auto installer so which command should i edit in PKGBUILD ? https://aur.archlinux.org/packages/freshplayerplugin-git/

i-rinat commented 9 years ago

I'm not familiar with Archlinux's PKGBUILDs. From its name I guess it takes the most recent commit from master branch. Installing it again may give you newer version. It's worth to try to change pkgver=v0.2.4.r92.g96ba6ad line to pkgver=v0.2.4.r107.g0ec8719 in case AUR somehow figures which revision to pick from version string.

haidarvm commented 9 years ago

i did try that remove this package and reisntall it by editing pkgver=v0.2.4.r107.g0ec8719 and restart the laptop but still no luck, i always have same error on Eclipse , maybe i should try to install it from git without AUR, and do some workaround

i-rinat commented 9 years ago

Perhaps, there is other code running on wrong thread. If it crashes, could you collect a backtrace?

haidarvm commented 9 years ago

i did installing from scratch and just copy libfreshwrapper-pepperflash.so to /usr/lib/mozilla/plugins/ and still simply get

NOT SANDBOXED
[ERROR:flash/platform/pepper/common/pep_process.cpp(19)] CHECK(g_process_type == PROCESS_TYPE_UNKNOWN) failed

why eclipse java go to mozilla plugin to check flash? maybe i should disable flash in eclipse but i don't know how ...

i-rinat commented 9 years ago

copy

~/.mozilla/plugins is another common place for plugins. Since it's in user directory, one don't need to be root to install plugin.

why eclipse java go to mozilla plugin

I think it uses browser engine, either Gecko or Webkit. It's browser engine who loads plugins.

haidarvm commented 9 years ago

Ok great i still no success with ~/.mozilla/plugins

I think it uses browser engine, either Gecko or Webkit. It's browser engine who loads plugins.

Then i change external browser to chrome, it's works charm ... it's ok even the bugs not fixed ... as along i can use eclipse which is i never use browser integration

i-rinat commented 9 years ago

I've installed Eclipse. It uses WebKitGTK+ via libswt-webkit-gtk-3836.so.

haidarvm commented 9 years ago

hmm... i think i should change the config Window->Preferences->General->Web Browser and select Use External web browser to firefox ... i rather use google chrome for more stability

i-rinat commented 9 years ago

Does switching to an external browser helps? It doesn't switch off internal webengine on my Eclipse installation. (I don't have issue you are talking about though.)

i-rinat commented 9 years ago

By the way, do you do anything to trigger crashes? Maybe I'll manage to reproduce issue on my machine. Then it will be easier to fix.

haidarvm commented 9 years ago

yes sure it's help, hmm... maybe it's because Arch Linux different Distro with ubuntu Perhaps your code is for ubuntu only Anyway thanks a lot for developing freshplayerplugin it's help me a lot .. Adobe Flash latest outdated version on linux is sucks ... always crash and using this freshplayer works fine even watch Youtube and other Site using Flash 20 more tabs no crash :+1: :+1: :+1:

By the way, do you do anything to trigger crashes? Maybe I'll manage to reproduce issue on my machine. Then it will be easier to fix.

No i run eclipse on terminal and only got those error if i do more 2 minute in eclipse it's suddently crash

fbt commented 9 years ago

The PKGBUILD in question always pulls the latest version (the pkgver function is what actually gets and sets the package version), so no manual modification is required. It will always build the current HEAD from master.

haidarvm commented 9 years ago

ok thanks @fbt but will it auto update ? if i do yaourt -Syua ?

fbt commented 9 years ago

No, you need to specifically rebuild the package to update it. I only push new versions of PKGBUILDS when I have to due to changes in the way the package needs to be built, not arbitrarily because the git master has gotten a few commits.

It will, however, pull in a new version if you explicitly do yaourt -S freshplayerplugin-git. Or it should. Haven't used yaourt in quite a while.

i-rinat commented 9 years ago

@coder5, could you try again with newest version? In 1c4f11baed7041073da85065b09b1ce10deba764 ppp_get_interface() calls were moved away from NPP_New. Perhaps they had some effect.

haidarvm commented 9 years ago

ok sory just read and i build from latest git and its success with eclipse internal browser :D

i-rinat commented 9 years ago

So, it doesn't crash anymore?

haidarvm commented 9 years ago

no it's doesnt crash ... thanks a lot :+1:

i-rinat commented 9 years ago

OK, great.