google / google/filament

iOS run crash

Open
#7,187 1 comment 0 reactions 1 assignee Claimed by @bejado View on GitHub
ios
Dominant language
C++
Stars
20.5k
Forks
2.3k
Avg merge
2d 14h
Merged PRs (30d)
83

Description

⚠️ **Issues not using this template will be systematically closed.**

**Describe the bug**
After generating the required library, run the iOS sample program and it can be installed on the phone normally. However, if xcode is connected to the phone, an error will be reported in the
{
FixedCapacityVector(std::initializer_list list,
const allocator_type& alloc = allocator_type())
: mSize(list.size()),
mCapacityAllocator(list.size(), alloc)
} method

**To Reproduce**
Steps to reproduce the behavior:
1. ./build.sh -p desktop -i release
2. ./build.sh -p ios -i debug
3. open hello-triangle.xcodeproj
4. run in xcode
5. show
{
#1 0x0000000104433b04 in void* std::__1::__libcpp_operator_new[abi:v160006](unsigned long) at /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.0.sdk/usr/include/c++/v1/new:285

Thread 1: EXC_BAD_ACCESS (code=1, address=0x0)
}

**Expected behavior**
If I unplug the cable and click on the installed program on my phone, it will run normally. I hope it can also run normally when connecting to xcode

**Screenshots**
![WechatIMG1306](https://github.com/google/filament/assets/20625825/258f24a4-c246-46ce-abb4-1463d18cd4cf)

**Logs**
log is
{
__args unsigned long 48
}

**Desktop (please complete the following information):**
- OS: xcode version 15.0 (15A240d)
- GPU: AMD Radeon Pro 5500M 4 GB
Intel UHD Graphics 630 1536 MB
- Backend: Metal

**Smartphone (please complete the following information):**
- Device: Iphone xr
- OS: iOS 14.3

**Additional context**
Add any other context about the problem here.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.