Skip to content

[Android:Bugfix] Add missing diffusion_session and sana_session sourc… - #4569

Merged
wangzhaode merged 1 commit into
alibaba:masterfrom
pingji2016:android/fix-missing-diffusion-sana-sources
Jun 25, 2026
Merged

[Android:Bugfix] Add missing diffusion_session and sana_session sourc…#4569
wangzhaode merged 1 commit into
alibaba:masterfrom
pingji2016:android/fix-missing-diffusion-sana-sources

Conversation

@pingji2016

Copy link
Copy Markdown
Contributor

问题

fix #4562

diffusion_jni.cpp 和 sana_jni.cpp 依赖的 DiffusionSession、SanaSession 类实现(分别位于 diffusion_session.cpp 和 sana_session.cpp)未加入 CMakeLists.txt,导致链接时符号缺失,运行时抛出 UnsatisfiedLinkError。

修复

在 CMakeLists.txt 中补充缺失的源文件:

  • diffusion_session.cpp
  • sana_session.cpp

验证

本地编译 APK 验证通过。

…es to CMakeLists

diffusion_jni.cpp and sana_jni.cpp depend on DiffusionSession and
SanaSession classes defined in diffusion_session.cpp and
sana_session.cpp, but these source files were missing from
CMakeLists.txt, causing UnsatisfiedLinkError at runtime.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@CLAassistant

CLAassistant commented Jun 24, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@pingji2016

pingji2016 commented Jun 24, 2026 via email

Copy link
Copy Markdown
Contributor Author

@wangzhaode wangzhaode self-assigned this Jun 25, 2026

@wangzhaode wangzhaode left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix! The root cause is confirmed — commit 66fd356a accidentally removed these four source files from CMakeLists.txt. The change is correct and complete.

@wangzhaode
wangzhaode merged commit 0cfd219 into alibaba:master Jun 25, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Android 0.8.3 文生图模型点击crash

3 participants