After Effects 25.6.6 crashes in Source Text expression evaluation
Environment
- Product: Adobe After Effects 2025
- Version: 25.6.6.4
- OS: Windows 11 24H2 (Build 26100)
- CPU: AMD Ryzen 7 7700
- GPU: NVIDIA GeForce RTX 5070
- Project type: Text-heavy template with many Source Text expressions referencing other text layers across compositions.
Summary
After Effects consistently crashes while evaluating Source Text expressions. The crash only occurs when Source Text expressions are enabled. Disabling the expressions makes the project stable.
The crashes occur in two different modules:
- libdynamic-napi.dll
- TXT.dll
Both crash dumps indicate that the failure happens during TextDocument evaluation initiated by expression evaluation.
Steps to Reproduce
- Open the project.
- Enable Source Text expressions.
- Preview the composition or modify/enable/disable a Source Text expression.
- After Effects crashes.
The crash is especially reproducible when repeatedly enabling/disabling Source Text expressions.
Expected Result
The Source Text expressions should be evaluated normally without crashing.
Actual Result
After Effects crashes with Access Violation (c0000005).
Expression Example
The following type of expression is sufficient to reproduce the issue.
A = comp("00TEXT_Link").layer("TEXT-K00-00").text.sourceText;
R = comp("00TEXT_Link").layer("NAME-R2").text.sourceText;
F = comp("00TEXT_Link").layer("NAME-F2").text.sourceText;
K = comp("00TEXT_Link").layer("TEXT-K00-02").text.sourceText;
if (A == "追加する") {
R + " + " + F + "\r+ " + K;
} else {
R + " + " + F;
}The project contains many Source Text expressions that reference Source Text properties of other text layers.
Additional Findings
The project becomes significantly more stable when converting TextDocument objects to strings explicitly.
Example:
.text.sourceText.toString()However, this does not completely eliminate the crashes.
Removing the Source Text expression from the referenced layer also significantly reduces the occurrence of the crash.
Crash Dump #1
Module:
TXT.dllFailure Bucket:
SOFTWARE_NX_FAULT_NULL_INVALID_POINTER_EXECUTE_c0000005_TXT.dllImportant stack frames:
BEE_Layer::EvaluateExpression
↓
TDB_Stream::EvaluateExpression
↓
BEE_TextDocumentStream::MixInValueAtTime
↓
TXT_UpdateFonts
↓
TXTp_DocSelectionStateException:
Attempt to execute non-executable address 0x0000000000000000Crash Dump #2
Module:
libdynamic-napi.dllFailure Bucket:
INVALID_POINTER_READ_c0000005_libdynamic-napi.dllInstruction:
movzx edx, byte ptr [rcx+0Ah]Stack:
libdynamic_napi!napi_unwrapException:
Access Violation (c0000005)Event Viewer
Application Error:
AfterFX.exe
25.6.6.4
Fault Module:
libdynamic-napi.dll
Exception:
c0000005
Fault Offset:
0x311A96The crash consistently occurs at nearly the same instruction address (0x311A96 / 0x311B50).
Observations
- Disabling Source Text expressions prevents the crash.
- The crash occurs during expression re-evaluation.
- Repeatedly enabling/disabling expressions increases the likelihood of the crash.
- The crash happens while evaluating TextDocument objects.
- The call stacks consistently involve TextDocument evaluation.
Suspected Cause
Based on the call stacks and crash dumps, it appears that After Effects crashes during TextDocument evaluation initiated by Source Text expressions.
Both crash dumps suggest an invalid object or invalid pointer being used during expression evaluation.
One dump crashes inside TXT.dll during TextDocument/font update.
Another crashes inside libdynamic-napi.dll during napi_unwrap(), suggesting an invalid native object associated with the expression engine.
The issue appears related to the lifecycle of TextDocument objects during Source Text expression evaluation.
