Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS 16 , HTML5 ( both GLES2 and GLES3) are NOT working #62445

Closed
nne998 opened this issue Jun 27, 2022 · 19 comments
Closed

iOS 16 , HTML5 ( both GLES2 and GLES3) are NOT working #62445

nne998 opened this issue Jun 27, 2022 · 19 comments

Comments

@nne998
Copy link

nne998 commented Jun 27, 2022

Godot version

3.4.4 / 3.5.0 RC7

System information

iOS 16 beta 3

Issue description

iOS 16 , HTML5 ( both GLES2 and GLES3) are NOT working .
Open the exported html5 page with safari on iOS 16, it keep reloading, then crashed.

Steps to reproduce

1、 Godot project export to HTML5 (GLES2 or GLES3)
2、 Serve to web
3、 Open safari on my iPhone (system updated to iOS 16 beta 3), then visit the url.

Minimal reproduction project

Simply visit this exported page at the following url:
https://dl.lookingpet.com/temp/ios16_test/game.html

source code:
ios16_test1.zip

@Chaosus
Copy link
Member

Chaosus commented Jun 27, 2022

Duplicate of #37931

@Chaosus Chaosus marked this as a duplicate of #62445 Jun 27, 2022
@Chaosus Chaosus closed this as completed Jun 27, 2022
@Chaosus Chaosus marked this as a duplicate of #37931 Jun 27, 2022
@Chaosus Chaosus closed this as not planned Won't fix, can't repro, duplicate, stale Jun 27, 2022
@akien-mga
Copy link
Member

I'm not sure that's the same issue, we need to know what the actual errors are. AFAIK current Safari should support WebGL 2.

@clayjohn
Copy link
Member

Webpage exported keep reloading, and safari reported a loading error.

Can you post the text of the errors you receive?

@nne998
Copy link
Author

nne998 commented Jun 28, 2022

Webpage exported keep reloading, and safari reported a loading error.

Can you post the text of the errors you receive?

Safari try to load the page, and the loading progress bar seems to be loading normally, but finally the page is forced reloaded and display an error, said:
A problem repeatedly occurred
on "http://192.168.1.124/chick
game.html".

Screenshot:
IMG_0055

@nne998
Copy link
Author

nne998 commented Jun 28, 2022

I recorded a video:

RPReplay_Final1656408556.MP4

@akien-mga
Copy link
Member

Could you get logs from Safari's Web Inspector? Not familiar with it myself but it seems it needs to be set up on a Mac to debug the iOS Safari from macOS Safari: https://appletoolbox.com/use-web-inspector-debug-mobile-safari/

@nne998
Copy link
Author

nne998 commented Jun 28, 2022

Could you get logs from Safari's Web Inspector? Not familiar with it myself but it seems it needs to be set up on a Mac to debug the iOS Safari from macOS Safari: https://appletoolbox.com/use-web-inspector-debug-mobile-safari/

Hi i exported with debug mode, the errors in console can be found:
111

333

@nne998
Copy link
Author

nne998 commented Jun 28, 2022

It seems that the game script was loaded, because i can see my debug output is printed in console.

222

@Faless
Copy link
Collaborator

Faless commented Jun 28, 2022

You seem to be using the JavaScript<->Godot interface, and there seem to be errors in your code:

ERROR: No interface 'game' registered
ERROR: No interface 'eventFn' registered

Those errors happen when JavaScript::get_inferface function cannot find the JavaScript object which you are requesting it to get.

  • Does the project work on desktop browsers?
  • Can you provide a minimal reproduction project?
  • If not, can you at least provide a link where we can check the exported game?

There isn't much more we can do otherwise with the current information as this seem to be a problem with your JavaScript code but we have no way to verify it.

@nne998
Copy link
Author

nne998 commented Jun 29, 2022

You seem to be using the JavaScript<->Godot interface, and there seem to be errors in your code:

ERROR: No interface 'game' registered
ERROR: No interface 'eventFn' registered

Those errors happen when JavaScript::get_inferface function cannot find the JavaScript object which you are requesting it to get.

  • Does the project work on desktop browsers?
  • Can you provide a minimal reproduction project?
  • If not, can you at least provide a link where we can check the exported game?

There isn't much more we can do otherwise with the current information as this seem to be a problem with your JavaScript code but we have no way to verify it.

Hi, the project worked fine on desktop browsers, iOS 14/15 browsers and Android browsers. Just Not good on iOS 16 safari.
Even I create a fresh new project , it is the same issue.

@Faless
Copy link
Collaborator

Faless commented Jun 29, 2022

Even I create a fresh new project , it is the same issue.

Could you get logs from Safari's Web Inspector of the fresh new project?

@nne998
Copy link
Author

nne998 commented Jul 7, 2022

Even I create a fresh new project , it is the same issue.

Could you get logs from Safari's Web Inspector of the fresh new project?

Hi, there is no special error log for the fresh new project, but it crashed always:

WX20220707-115214@2x

And this is the simple demo project (create a fresh new project, add a simple button control , then export to html5):
ios16_test1.zip

@nne998
Copy link
Author

nne998 commented Jul 7, 2022

updated: iOS 16 beta 3, same issue.

@michaldev
Copy link

I have the same problem with iOS 16 beta 2-3 and godot 3.5 (latest rc).

@nne998

This comment was marked as off-topic.

@akien-mga
Copy link
Member

See #63525 for another MRP and hosted web game:

Simply visit this exported page at the following url:
https://dl.lookingpet.com/temp/ios16_test/game.html

project source code:
ios16_test1.zip

@akien-mga akien-mga added this to the 3.x milestone Jul 27, 2022
@akien-mga
Copy link
Member

According to this tweet, this might be due to a regression in iOS 16 beta 3 which has been fixed in beta 4: https://bugs.webkit.org/show_bug.cgi?id=242294

It seems like it was just released, please upgrade and let us know if that solves the crash.

@michaldev
Copy link

Problem solved. I've tested on iOS 16 beta 4.

@nne998
Copy link
Author

nne998 commented Jul 28, 2022

Yeah!It's fixed!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants