# TImage DrawCircle cause core dump

**URL:** <https://root-forum.cern.ch/t/timage-drawcircle-cause-core-dump/64784>\
**Category:** ROOT\
**Tags:** root\
**Created:** [April 9, 2026, 10:29am UTC](https://root-forum.cern.ch/t/timage-drawcircle-cause-core-dump/64784 "2026-04-09T10:29:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![cxwx1](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/cxwx1/32/22433_2.png) [@cxwx1](https://root-forum.cern.ch/u/cxwx1)\
**Post date:** [April 9, 2026, 10:29am UTC](https://root-forum.cern.ch/t/timage-drawcircle-cause-core-dump/64784/1 "2026-04-09T10:29:39Z")

</div>

* * *

_Please read [tips for efficient and successful posting](https://root-forum.cern.ch/t/tips-for-efficient-and-successful-posting/28292) and [posting code](https://root-forum.cern.ch/t/posting-code-read-this-first/28293)_

_Please fill also the fields below. Note that **`root -b -q`** will tell you this info, and starting from 6.28/06 upwards, you can call **`.forum bug`** from the ROOT prompt to pre-populate a topic._

_ROOT Version:_ 6.39.01 lastest master  
_Platform:_ macos

```cpp

```auto
static void show_pic() {

  TImage* img = TASImage::Open("aa.jpeg", TASImage::kJpeg);

  img->DrawCircle(10, 10, 3, "#FF0000", 1);
}

```

[/Users/cx/software/ROOT/install/lib/libASImage.so] TASImage::DrawCircle(int, int, int, char const\*, int) (no debug info)  
[/Users/cx/software/ROOT/install/lib/libASImage.so] TASImage::DrawCircle(int, int, int, char const\*, int) (no debug info)  
[/Users/cx/software/ROOT/install/lib/libCling.so] cling::IncrementalExecutor::executeWrapper(llvm::StringRef, cling::Value\*) const (no debug info)  
[/Users/cx/software/ROOT/install/lib/libCling.so] cling::Interpreter::RunFunction(clang::FunctionDecl const\*, cling::Value\*) (no debug info)  
[/Users/cx/software/ROOT/install/lib/libCling.so] cling::Interpreter::EvaluateInternal(std::\_\_1::basic\_string\<char, std::\_\_1::char\_traits, std::\_\_1::allocator\> const&, cling::CompilationOptions, cling::Value\*, cling::Transaction\*\*, unsigned long) (no debug info)  
[/Users/cx/software/ROOT/install/lib/libCling.so] cling::MetaSema::actOnxCommand(llvm::StringRef, llvm::StringRef, cling::Value\*) (no debug info)  
[/Users/cx/software/ROOT/install/lib/libCling.so] cling::MetaParser::isXCommand(cling::MetaSema::ActionResult&, cling::Value\*) (no debug info)  
[/Users/cx/software/ROOT/install/lib/libCling.so] cling::MetaParser::isCommand(cling::MetaSema::ActionResult&, cling::Value\*) (no debug info)  
[/Users/cx/software/ROOT/install/lib/libCling.so] cling::MetaProcessor::process(llvm::StringRef, cling::Interpreter::CompilationResult&, cling::Value\*, bool) (no debug info)  
[/Users/cx/software/ROOT/install/lib/libCling.so] HandleInterpreterException(cling::MetaProcessor\*, char const\*, cling::Interpreter::CompilationResult&, cling::Value\*) (no debug info)  
[/Users/cx/software/ROOT/install/lib/libCling.so] TCling::ProcessLine(char const\*, TInterpreter::EErrorCode\*) (no debug info)  
[/Users/cx/software/ROOT/install/lib/libCling.so] TCling::ProcessLineSynch(char const\*, TInterpreter::EErrorCode\*) (no debug info)  
[/Users/cx/software/ROOT/install/lib/libCore.so] TApplication::ExecuteFile(char const\*, int\*, bool) (no debug info)  
[/Users/cx/software/ROOT/install/lib/libRint.so] TRint::ProcessLineNr(char const\*, char const\*, int\*) (no debug info)  
[/Users/cx/software/ROOT/install/lib/libRint.so] TRint::Run(bool) (no debug info)  
[/Users/cx/software/ROOT/install/bin/root.exe] main (no debug info)  
[/usr/lib/dyld] start (no debug info)

* * *

---

<div class="post-metadata">

**Author:** ![ferhue](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ferhue/32/29462_2.png) [@ferhue](https://root-forum.cern.ch/u/ferhue)\
**Post date:** [April 9, 2026, 10:58am UTC](https://root-forum.cern.ch/t/timage-drawcircle-cause-core-dump/64784/2 "2026-04-09T10:58:10Z")

</div>

Thanks. Could you report it on GitHub ?

Just type `.gh bug` in the Root terminal and fill it out there.

---

<div class="post-metadata">

**Author:** ![linev](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/l/2bfe46/32.png) [@linev](https://root-forum.cern.ch/u/linev)\
**Post date:** [April 9, 2026, 2:53pm UTC](https://root-forum.cern.ch/t/timage-drawcircle-cause-core-dump/64784/3 "2026-04-09T14:53:25Z")

</div>

Thanks for reporting the problem.

We will provide patch soon, but as workaround you can use drawing of dummy rectangle in the beginning:

```auto
img->DrawRectangle(0, 0, 0, 0, "#000000", 0);
img->DrawCircle(10, 10, 3, "#FF0000", 1);

```

---

<div class="post-metadata">

**Author:** ![ferhue](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ferhue/32/29462_2.png) [@ferhue](https://root-forum.cern.ch/u/ferhue)\
**Post date:** [April 9, 2026, 4:23pm UTC](https://root-forum.cern.ch/t/timage-drawcircle-cause-core-dump/64784/4 "2026-04-09T16:23:49Z")

</div>

PR: [[afterimage] prevent nullptr access by ferdymercury · Pull Request #21860 · root-project/root · GitHub](https://github.com/root-project/root/pull/21860)

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [April 23, 2026, 4:24pm UTC](https://root-forum.cern.ch/t/timage-drawcircle-cause-core-dump/64784/5 "2026-04-23T16:24:43Z")

</div>

Closed on April 23, 2026, 4:24pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
