# SIGBUS (signal SIGBUS: illegal alignment)

**URL:** <https://forums.unrealengine.com/t/sigbus-signal-sigbus-illegal-alignment/618833>\
**Category:** Mobile\
**Tags:** unreal-engine, UE5-0, Android, question\
**Created:** [August 1, 2022, 8:17am UTC](https://forums.unrealengine.com/t/sigbus-signal-sigbus-illegal-alignment/618833 "2022-08-01T08:17:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![06le](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@06le](https://forums.unrealengine.com/u/06le)\
**Post date:** [August 1, 2022, 8:17am UTC](https://forums.unrealengine.com/t/sigbus-signal-sigbus-illegal-alignment/618833/1 "2022-08-01T08:17:00Z")

</div>

Hi, guys，I Created a FTextBlockStyle with Slate as an initialization parameter of FSlateTextRun. It works fine on the Visual Studio side, but crashes on the Android side.

This is my code：

```auto
const FTextBlockStyle& MessageTextStyle =
	FTextBlockStyle(FCoreStyle::Get().GetWidgetStyle<FTextBlockStyle>("NormalText"))
	.SetColorAndOpacity(TextBlockColor)
	.SetFont(FCoreStyle::GetDefaultFontStyle("Regular", LogFontSize))
	.SetSelectedBackgroundColor(LogColor_SelectionBackground);

TSharedRef<FString> LineText = Message->Message;
FRunInfo TempRunInfo = FRunInfo();
TSharedRef<IRun> TempIRunRef = FSlateTextRun::Create(TempRunInfo, LineText, MessageTextStyle); //crash 

```

I got this error:SIGBUS (signal SIGBUS: illegal alignment)

I printed the addresses of the two variables in Android Studio and found that the addresses are the same, I guess they are in the same memory block without memory alignment.  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/a/8/ca8b63d48c4cb4dabaaafde19caa356ceb484ca9.png)

I moved the initialization of TextRunInfo to the front of MessageTextStyle, and there is no more crash on the Android side.

```auto
	FRunInfo TextRunInfo = FRunInfo();
	const FTextBlockStyle& MessageTextStyle = ...

```

I’m a UE5 novice, and I have two questions that I don’t understand. I hope someone can give me some pointers:

1. Why are these two variables in the same memory block?
2. Why did I advance the initialization position of TextRunInfo, the two variables are not in the same memory block.
