cinit / cinit/QAuxiliary

[Bug] 回复带图功能异常

Open
#1,114 0 comments 0 reactions 0 assignees View on GitHub
Bug
Dominant language
Java
Stars
5.7k
Forks
416
Avg merge
10d 4h
Merged PRs (30d)
4

Description

### Steps to reproduce/复现步骤

打开该功能开关,等待初始化

### Expected behaviour/预期行为

正常运行,回复带图

### Actual behaviour/实际行为

提示初始化失败,抛出空指针异常

### Xposed Framework you used/你使用的Xposed框架

LSPosed 1.9.2(7508)zygisk

### Your Android version/你使用的安卓系统版本

13

### QQ(TIM)版本/QQ(TIM) Version

9.0.60

### Module Version/模块版本

1.5.2

### Version and Other Requirements/版本和其他要求

- [X] I am using latest debug CI version of QAuxiliary and enable verbose log/我正在使用最新 CI 调试版本且启用详细日志
- [X] The QQ I am using is an official release version, not a modified or beta version/我使用的 QQ 是官方发布的正式版本,而非修改版或测试版
- [X] 我已经在 [Issue Tracker](https://github.com/cinit/QAuxiliary/issues) 中找过我要提出的问题,没有找到相同问题。重复问题会被关闭。
- [X] 我已知晓并同意,此处仅用于汇报主程序中存在的问题。若这个 Issue 是关于其他非程序本身问题,则我的 Issue 可能会被无条件自动关闭或/并锁定。
- [X] 我已知晓并同意,如果我不按照模板提供的指示进行填写,则我的 Issue 可能会被无条件删除。

### Logs/日志

1.5.2.r2263.c3d9cc2
QQ9.0.60(6478)
PID: 19519, UID: 10271
cc.ioctl.hook.ui.chat.ShowPicGagHook
isInitialized: true
isInitializationSuccessful: false
isEnabled: true
isAvailable: true
isPreparationRequired: false
errors: 1
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.reflect.Method[] java.lang.Class.getDeclaredMethods()' on a null object reference
at cc.ioctl.hook.ui.chat.ShowPicGagHook.initOnce(ShowPicGagHook.java:61)
at io.github.qauxv.hook.BaseFunctionHook.initialize(BaseFunctionHook.kt:64)
at io.github.qauxv.core.InjectDelayableHooks.stepForMainBackgroundStartup(InjectDelayableHooks.java:249)
at io.github.qauxv.core.MainHook.performHook(MainHook.java:135)
at io.github.qauxv.startup.StartupRoutine.execPostStartupInit(StartupRoutine.java:67)
at io.github.qauxv.startup.StartupHook.execStartupInit(StartupHook.java:79)
at io.github.qauxv.startup.StartupHook$1.afterHookedMethod(StartupHook.java:197)
at olHmZVDF.RJ.nEdeOKGSKr.XposedBridge$LegacyApiSupport.handleAfter(Unknown Source:33)
at J.callback(Unknown Source:294)
at LSPHooker_.blockUntilFinish(Unknown Source:8)
at com.tencent.qqnt.startup.NtStartup.c(P:30)
at com.tencent.mobileqq.startup.director.a.A(P:6)
at com.tencent.mobileqq.startup.director.a.z(P:2)
at com.tencent.mobileqq.startup.director.a.q(P:6)
at com.tencent.common.app.BaseApplicationImpl.onCreate(P:8)
at java.lang.reflect.Method.invoke(Native Method)
at a.GSEbOvsfUJ.QcXzW.PLYcZmXj.h.HookBridge.invokeOriginalMethod(Native Method)
at J.callback(Unknown Source:194)
at LSPHooker_.onCreate(Unknown Source:8)
at com.tencent.mobileqq.qfix.QFixApplication.onCreate(P:2)
at mqq.app.AppContentProvider.onCreate(P:1)
at com.tencent.mobileqq.content.FriendListProvider.onCreate(P:1)
at android.content.ContentProvider.attachInfo(ContentProvider.java:2482)
at android.content.ContentProvider.attachInfo(ContentProvider.java:2452)
at android.app.ActivityThread.installProvider(ActivityThread.java:7940)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:7451)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7209)
at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2284)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:240)
at android.os.Looper.loop(Looper.java:351)
at android.app.ActivityThread.main(ActivityThread.java:8377)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:584)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1013)

### 补充说明(可选)

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with ShowPicGagHook.java at line 61, where initOnce throws the reported NullPointerException, and trace the initialization path through BaseFunctionHook.initialize. Reproduce with QQ 9.0.60 on Android 13 using LSPosed 1.9.2 and the listed module version. Done means the hook initializes successfully without the exception and the reply-with-image function works.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.