Lesson 8 of Mcwhorter course - it crash!

I am reporting a reproducible system reboot issue when using Piper TTS on a Raspberry Pi 5 with the AI

Fusion HAT software image provided by SunFounder.

The problem does not occur on Raspberry Pi 4 using the corresponding SunFounder image and the same

test code.

The reboot occurs during Piper speech synthesis and can be reproduced even without using the Python

Fusion HAT library.

Hardware Configuration

Raspberry Pi

Model: Raspberry Pi 5

RAM: 4 GB

Power Supply: Official Raspberry Pi 27W USB-C Power Supply

AI Hardware

SunFounder AI Fusion HAT

Peripherals Connected

USB keyboard

USB mouse

Operating System

Official AI Fusion HAT image downloaded from SunFounder website

Kernel: 6.12.93+rpt-rpi

Initial Symptoms

Running SunFounder Piper TTS examples causes the Raspberry Pi 5 to reboot unexpectedly.

• • • • • • • •

1

Typical behavior:

Program starts normally

Several seconds later

Raspberry Pi suddenly reboots

No error message is shown

No graceful shutdown occurs

Comparison with Raspberry Pi 4

Raspberry Pi 4

Result:

Piper TTS works correctly

Speech is generated and played

No reboot occurs

Raspberry Pi 5

Result:

System reboots during speech generation

This strongly suggests a Raspberry Pi 5 specific compatibility issue.

Journal and Crash Investigation

Persistent journaling was enabled.

Previous boot logs were reviewed using:

journalctl -b -1

journalctl -k -b -1

Findings:

No kernel panic

No OOPS

No Call Trace

No Out Of Memory condition

No PCIe errors

No Fusion HAT driver errors

The journal only reports:

system.journal corrupted or uncleanly shut down

indicating an abrupt system reset.

Fusion HAT Driver Status

Kernel log shows:

fusion_hat: loading out-of-tree module taints kernel

fusion_hat 1-0017: Fusion Hat driver probed successfully

Driver loads successfully.

Python Reproduction

Original SunFounder example:

from fusion_hat.tts import Piper

tts = Piper()

• • • • • •

4

tts.set_model(‘en_US-amy-low’)

msg = “Hi, I’m Piper TTS. Are you ready to rumble? I am here to pump you up!”

tts.say(msg, stream=False)

Result:

Raspberry Pi 5 reboots

Step-by-Step Isolation Test

Test code:

print(“STEP 1”)

from fusion_hat.tts import Piper

print(“STEP 2”)

tts = Piper()

print(“STEP 3”)

tts.set_model(‘en_US-amy-low’)

print(“STEP 4”)

tts.say(“hello”, stream=False)

print(“STEP 5”)

Observed behavior:

STEP 1 printed

STEP 2 printed

STEP 3 printed

STEP 4 printed

System rebooted before STEP 5

Conclusion:

The reboot occurs inside:

• • • • • •

5

tts.say(…)

or immediately after entering this function.

ONNX Runtime Warning

During Piper initialization:

[W:onnxruntime:Default, device_discovery.cc:211 DiscoverDevicesForPlatform]

GPU device discovery failed:

device_discovery.cc:91 ReadFileContents Failed to open file:

“/sys/class/drm/card1/device/vendor”

This warning does not appear fatal and execution continues afterwards.

Critical Reproduction Without Fusion HAT Python Library

To eliminate the Fusion HAT Python wrapper, Piper was executed directly:

echo “a” | piper

-m /home/pi/.piper_models/en_US-amy-low.onnx

-f /tmp/a.wav

Result:

Raspberry Pi 5 immediately reboots

WAV file is never created

This is the most important finding.

Because the crash occurs when executing Piper directly, the issue does not appear to be caused by:

Thonny

User Python code

fusion_hat.tts wrapper

Audio playback

The reboot occurs during Piper/ONNX p

rocessing itself.

Based on all tests performed:

Eliminated Causes

User Python code

Audio hardware

Voice HAT audio playback

Raspberry Pi power supply

Thermal throttling

Undervoltage

Thonny IDE

ALSA playback path

Most Likely Cause

A compatibility issue between:

Piper

Embedded ONNX Runtime

• • • • • • • • • •

7

SunFounder AI Fusion HAT software stack

Raspberry Pi 5

The issue is reproducible and appears specific to Raspberry Pi 5.

Minimal Reproduction

echo “a” | piper

-m /home/pi/.piper_models/en_US-amy-low.onnx

-f /tmp/a.wav

Expected result:

WAV file created

Actual result:

Raspberry Pi 5 immediately reboots

No WAV file produced

• • •

We have reproduced the issue you described. We found that when a USB mouse and keyboard are connected to the Raspberry Pi 5, running tts_piper.py causes the system to reboot. However, when no USB mouse or keyboard is connected, the issue does not occur.

We have already reported this to our R&D team. They have tested and found that the newer version of Piper TTS has resolved the problem, so we have updated our image file accordingly.

We will finish updating the new image and make it available for download within the next two days. Please wait a couple of days and then re-download the latest image from our website.

We apologize for the inconvenience and thank you for your patience.

Hi!

Someone replied to your post.

| SunFounder_Moderator
June 26 |

  • | - |

We have reproduced the issue you described. We found that when a USB mouse and keyboard are connected to the Raspberry Pi 5, running tts_piper.py causes the system to reboot. However, when no USB mouse or keyboard is connected, the issue does not occur.

We have already reported this to our R&D team. They have tested and found that the newer version of Piper TTS has resolved the problem, so we have updated our image file accordingly.

We will finish updating the new image and make it available for download within the next two days. Please wait a couple of days and then re-download the latest image from our website.

You told me five days ago about a new version of the image but till now it doesn’t!
Look the changelog below:

1.0.0 - 2026-05-20- Upgraded fusion-hat library

  • Minor fixes
  • Pre-installed multiple TTS & STT models

0.2.1 - 2026-05-08- Added YOLO object detection model

  • Added OLED driver
  • Added NeoPixel driver
  • Upgraded sunfounder-voice-assistant
  • Upgraded fusion-hat
  • Other fixes

0.1.0 - 2026-04-08- Fixed model permission issue

  • Added YOLO dependencies
  • Updated to latest ai-lab-kit code

0.0.1 - 2026-03-20- First release

We apologize for the inconvenience and thank you for your patience.

When do you release the new version?

We apologize for the delay – the new image is now ready and currently in the final testing phase. If all goes well, it should be available for download by next Monday.

In the meantime, you can manually update the Fusion HAT driver by running the following command in your terminal:

curl -sSL https://raw.githubusercontent.com/sunfounder/fusion-hat/main/install.sh | sudo bash

If you encounter a “Fusion HAT not loaded” error after the update, please run this command to reload the driver:

fusion_hat doctor --fix

We appreciate your understanding!

Hi!

I have used your new version ai.fusion.lab.kit-1.1.0.img but in tts_piper.py code my RP5 crashed again! In RP4 there´s no problem.

Any idea?

Kind regards

We have also not been able to reproduce this issue on our end recently. In the latest image version, we have already fixed the reproducible problems we found. At this point, we can only try to gather more clues from your setup to identify any remaining edge cases.

Could you please share more details about your usage environment?

Are you using any external peripherals such as HDMI monitor, mouse, or keyboard?

What is your power supply setup (e.g., official Pi 5 power supply, third‑party adapter, etc.)?

Have you tested the same SD card on both a Pi 4 and a Pi 5 – and does the crash only happen on the Pi 5?

Are you using the latest image (updated on July 2) available from this link?
:link: AI Fusion Lab Kit - SunFounder Downloads

Do other TTS examples work without crashing?

If other TTS options work, would you be open to using an alternative TTS engine temporarily, while we continue investigating? This would allow you to proceed with your coursework.

Please let us know if you can try any of these steps. We will continue to monitor this case and appreciate your cooperation.

Hi!

sorry for the delay in answering, I was out of home.

Are you using any external peripherals such as an HDMI monitor, mouse, or keyboard?
Only an HDMI monitor but I used VNC.

What is your power supply setup (e.g., official Pi 5 power supply, third‑party adapter, etc.)?
Official Pi5 power supply.

Have you tested the same SD card on both a Pi 4 and a Pi 5 – and does the crash only happen on the Pi 5?
Yes. I tried the sd card for Pi4 and Pi5 created by Raspberry Pi imager.

Are you using the latest image (updated on July 2) available from this link?
:link: AI Fusion Lab Kit - SunFounder Downloads
Yes, the ai.fusion.lab.kit-1.1.0.img

Do other TTS examples work without crashing?
I haven’t tried. But the lesson 14 Macworter lesson crashed only in Pi5. The Pi4 works fine but a little slow. and the voice sometimes is truncated.

If other TTS options work, would you be open to using an alternative TTS engine temporarily, while we continue investigating? This would allow you to proceed with your coursework.

I´m using Pi4 and I´m in lesson 14 but I think that’s not as good as Pi5.