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

反应一个比较严重的问题。。 #16

Closed
leamus opened this issue Sep 7, 2023 · 10 comments
Closed

反应一个比较严重的问题。。 #16

leamus opened this issue Sep 7, 2023 · 10 comments

Comments

@leamus
Copy link

leamus commented Sep 7, 2023

我的引擎和游戏在几周前用了5.15.10的安卓版本,一开始还好,上周突然出现了一个严重的Bug,而且只是闪退,我加入的报错、日志什么的完全没有记录,Qt调试安卓只有一句:
W google-breakpad: ### ### ### ### ### ### ### ### ### ### ### ### ###
W google-breakpad: Chrome build fingerprint:
W google-breakpad: 70.0.3538.110
W google-breakpad: 353811050
W google-breakpad: ### ### ### ### ### ### ### ### ### ### ### ### ###
F libc : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x100 in tid 22781 (qtMainLoopThrea), pid 22748 (amus.MakerFrame)

一开始我以为我代码有问题,但找了一周怎么也找不到,我只好拿出最原始的方案:一段一段的删代码,看看到底哪句有问题,直到我快把引擎代码删完了,才感觉应该是环境的问题,于是我原封不动的用5.15.2编译了下,正常运行,我靠。。。于是我又换回5.15.10,并用NDK(21.4)编译,问题依旧。。真是无语啊。。。

@leamus
Copy link
Author

leamus commented Sep 7, 2023

补充一下,这个问题有规律可循,使用引擎时次数相对较多,导出的游戏只要执行一段特定的代码33次就会闪退,代码差不多长这样:
game.asyncScript.run() //运行33次会闪退
其中:

game.asyncScript = new AsyncScript(); //AsyncScript时JS的一个函数
function AsyncScript() {

    let ret = null;

    //循环运行脚本
    while(1) {

        if(this.waiting === true)
            return;

        if(arrGeneratorScript.length === 0)  //如果列表为空
            return ret;    //我测试的时候一直是从这里返回的,下面代码不会运行

。。。

@Fsu0413
Copy link
Owner

Fsu0413 commented Sep 10, 2023

这样,如果可以提供一个最小程度的能复现问题的工程,我可以通过这个来开始查
否则就这一段代码我也不知道应该往哪放。。。。JS我也不太会

@leamus
Copy link
Author

leamus commented Sep 19, 2023

我试试吧,这还有点复杂,得慢慢删减代码。。

@Fsu0413
Copy link
Owner

Fsu0413 commented Nov 4, 2023

有什么更新吗。。。。

@leamus
Copy link
Author

leamus commented Nov 5, 2023

还没,年底了忙的没时间弄。。

@Fsu0413
Copy link
Owner

Fsu0413 commented Nov 5, 2023

目前我知道的消息都说是5.15.9以及以后的安卓版有问题,但是我具体也不知道是什么情况。。。。
也不知道是我的问题还是Qt本身就有问题。

如果5.15.8能用(并且你还留着)的话,可以试试用回5.15.8。。。。。

@leamus
Copy link
Author

leamus commented Nov 6, 2023

5.15.8我有,很不幸这个版本也有问题。。
目前5.15.2是完全正常的,新出的5.15.11我还没试,不过大概率也有问题(5.15.8-5.15.10都有了),等不忙的时候我再试试。
安卓版的是什么问题,有详细说明吗?我这边只是莫名其妙的卡死然后闪退。。

@Fsu0413
Copy link
Owner

Fsu0413 commented Nov 6, 2023

说是Widget有问题,不过具体什么问题我也不太知道,我自从3月份之后就没再碰安卓了

@leamus
Copy link
Author

leamus commented Nov 8, 2023

我倒是没用widget,手机端还是qml比较香(手机端用widget体验太差了)
好像也再没三方编译好的库环境了,不然我可以再测测

@Fsu0413
Copy link
Owner

Fsu0413 commented Apr 1, 2024

#17 (comment)

闪退貌似解决了?先关了,还有闪退就直接报到 #17 里吧。。。
实际上我看到这些个问题我根本没头绪,也没有最小限度的复现程序,我也没法查

@Fsu0413 Fsu0413 closed this as not planned Won't fix, can't repro, duplicate, stale Apr 1, 2024
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

2 participants