mcef icon indicating copy to clipboard operation
mcef copied to clipboard

White screen

Open Sergo467 opened this issue 3 years ago • 7 comments

Web displays - 1.1 MCEF - 1.31 Forge - 2855 Minecraft - 1.12.2 Java - 1.8_301 Windows - 7 x64 There are no additional mods image

Sergo467 avatar Aug 04 '21 00:08 Sergo467

There is no such error in version 1.10.2 image

Sergo467 avatar Aug 04 '21 00:08 Sergo467

May be a Windows 7 specific thing. I hadn't tested Windows 7.

ds58 avatar Aug 06 '21 16:08 ds58

I'm experiencing the same issue, same versions as above, except java 1.8.291 under Windows 10 x64. WebDisplays-1.12.2-1.11b with MCEF-1.12.2-1.11b works.

I did see my antivirus allow network access for jcef_helper.exe when trying your new version, so I'm fairly sure it's not a firewall issue, but I tried disabling it entirely with the same results.

I did find this in my logs, which may be informative:

`[15:05:40] [Client thread/INFO] [MCEF]: Now initializing MCEF v1.31... [15:05:40] [Client thread/INFO] [MCEF]: Selected mirror: Ruinscraft MCEF Mirror [15:05:41] [Client thread/INFO] [MCEF]: Detected platform: win64 [15:05:41] [Client thread/INFO] [MCEF]: Checking for missing resources... [15:05:41] [Client thread/INFO] [MCEF]: Found 6 missing resources. Downloading... [15:05:42] [Client thread/ERROR] [MCEF]: Couldn't download locales.zip! HTTP response is 404; trying with another mirror. [15:05:42] [Client thread/INFO] [MCEF]: Selected mirror: Ruinscraft MCEF Mirror [15:05:42] [Client thread/ERROR] [MCEF]: Couldn't download locales.zip! All mirrors seems broken. [15:05:42] [Client thread/WARN] [MCEF]: Going in virtual mode; couldn't download resources.

I was able to download the file manually, and tried saving it in the .minecraft/jcef folder, but still got identical output.

Edit to add that upon cursory inspection, it does seem suspicious that it's trying to download locales.zip, since the mirror only has locales.zip entries for 1.30 on windows, and 1.31 mac/linux, whereas 1.31 for windows has a bunch of locales/{xy}.pak. Seems like the Win64 section of the remote config is out of sync with the mirror.

Further edit to add that I dd actually manage to get it working...

Downloaded all the local files from the mirror individually, zipped up the locales folder into jcef/locales.zip, then turned off auto-update, which intially gave me an unfound dependencies crash, which was a simple matter of setting my launcher to invoke java by the full path, so that CEF could find its dependencies. It does not work if the launcher just uses javaw.exe without an explicit path.

So yeah, the problem (in wndows, at least) does seem to be just that the config2.json file wants to download locales.zip, but the mirror has the contents of the zip, but not the zip itself that the config file is saying to download and extract.

gritmic avatar Aug 28 '21 19:08 gritmic

@DextonAnderson locates.zip is missing and cef.pak mismatch sha5 with config2.json

~~If you want to get full files, you can either do above solution or use this mirror: https://mcef.azusahideout.ml . Take your risk as I dont maintain this B2~~

Update: Caused by: java.lang.UnsatisfiedLinkError: \\jcef\jcef.dll: Can't find dependent libraries happens due to missing libraries and only happen with JDK. Better use JRE instead because issue not happen. P/s: other workaround is add jawt.dll from jre then drop it to any jdk that you use

KorewaLidesu avatar Aug 31 '21 08:08 KorewaLidesu

@DextonAnderson locates.zip is missing and cef.pak mismatch sha5 with config2.json

~If you want to get full files, you can either do above solution or use this mirror: https://mcef.azusahideout.ml . Take your risk as I dont maintain this B2~

Update: Caused by: java.lang.UnsatisfiedLinkError: \\jcef\jcef.dll: Can't find dependent libraries happens due to missing libraries and only happen with JDK. Better use JRE instead because issue not happen. P/s: other workaround is add jawt.dll from jre then drop it to any jdk that you use

I'll check on this soon. It's the 1.31 cef.pak you're talking about right?

ds58 avatar Sep 08 '21 19:09 ds58

I'll check on this soon. It's the 1.31 cef.pak you're talking about right?

Yes Also, can you include jawt.dll to jcef?

KorewaLidesu avatar Sep 09 '21 17:09 KorewaLidesu

Seeing a black screen (not white) and a "stuck" Download for locales.zip, no errors logged.

I assume this issue is related because it seems to stem from locales.zip described by @gritmic

image

EDIT: Found Error messages...

[09:51:55] [Client thread/INFO] [MCEF]: Now initializing MCEF v1.31...
[09:51:55] [Client thread/INFO] [MCEF]: Selected mirror: Ruinscraft MCEF Mirror
[09:51:55] [Client thread/INFO] [MCEF]: Detected platform: win64
[09:51:55] [Client thread/INFO] [MCEF]: Checking for missing resources...
[09:51:56] [Client thread/INFO] [MCEF]: Found 6 missing resources. Downloading...
[09:51:56] [Client thread/INFO] [MCEF]: Task changed to "Downloading cef.pak"
[09:51:57] [Client thread/INFO] [MCEF]: Task changed to "Downloading locales.zip"
[09:51:57] [Client thread/ERROR] [MCEF]: Couldn't download locales.zip! HTTP response is 404; trying with another mirror.
[09:51:57] [Client thread/INFO] [MCEF]: Selected mirror: Ruinscraft MCEF Mirror
[09:51:57] [Client thread/ERROR] [MCEF]: Couldn't download locales.zip! All mirrors seems broken.
[09:51:57] [Client thread/WARN] [MCEF]: Going in virtual mode; couldn't download resources.

EDIT 2:

Followed @gritmic's instructions and got MCEF to load however I can't seem to load anything. Just left with a black screen.

[10:39:14] [Client thread/INFO] [MCEF]: Now initializing MCEF v1.31...
[10:39:15] [Client thread/INFO] [MCEF]: Selected mirror: Ruinscraft MCEF Mirror
[10:39:15] [Client thread/INFO] [MCEF]: Detected platform: win64
[10:39:15] [Client thread/WARN] [MCEF]: NOT downloading resources as specified in the configuration file
[10:39:15] [Client thread/INFO] [MCEF]: Loaded 825 mime types
[10:39:15] [Client thread/INFO] [STDOUT]: [org.cef.CefApp:initialize:364]: initialize on Thread[Client thread,5,main] with library path F:\MultiMC\instances\MC Eternal test 2\minecraft\jcef
[10:39:15] [Client thread/INFO] [MCEF]: 2 schemes registered
[10:39:15] [Client thread/INFO] [MCEF]: JCEF Version = 88.2.9.282
CEF Version = 88.2.9
Chromium Version = 88.0.4324.182
[10:39:15] [Client thread/INFO] [MCEF]: MCEF loaded successfuly.
[10:39:15] [Client thread/INFO] [FML]: Injecting itemstacks
[10:39:15] [Client thread/INFO] [FML]: Itemstack injection complete
[10:39:15] [Client thread/INFO] [WebDisplays]: Resource manager reload: clearing GUI cache...

Edit 3: Downgraded to MCEF v1.30 for now

Garulf avatar Oct 01 '21 13:10 Garulf

Should be fixed in mcef 2.x

ds58 avatar Nov 08 '23 01:11 ds58