gree / gree/unity-webview

Error when using WebGL in Android build

Open
#1,120 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Objective-C++
Stars
2.7k
Forks
734
Avg merge
11h 39m
Merged PRs (30d)
1

Description

It works well when you use the external URL of the Android build float (the https address with the WebGL build file) as a web view. However Repeat web view open close approximately 5 times and enter an
error: Cannot read undefined properties (read 'GLCTx') on object. deleteContext(/URL) error occurs.

webViewObject.ClearCache(true);
webViewObject.ClearCookies();
I've tried various things like this, but it's not working out. Any suggestions?
image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Android WebView behavior with the external WebGL URL, repeatedly opening and closing it while noting when the GLCTx/deleteContext error appears. Compare this with calls to webViewObject.ClearCache(true) and ClearCookies(); done means repeated WebView cycles no longer produce the reported error.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, unity
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.