问:
Not able to render children {children} component in react native?
I'm working with i18n library for translate languages and it works but now i want to upgrade things using my Screen component to make the code more light.
For doing so i crated my screen component :

```<code>interface Props {
  children: React.ReactNode;
  currentLanguage: string;
  setCurrentLanguage: (newlanguage: string) => void;
  languages: Language[];
  renderNavBar?: () => JSX.Element;
}
export default function Screen({children}: Props) {
  const [currentLanguage, setCurrentLanguage] = useState(i18n.language);
  const [value, setValue] = useState(children);

  useEffect(() => {
    setValue(children);
  }, [children]);

  return (
    <View>
      <NavBar
        languages={languageList}
        currentLanguage={currentLanguage}
        setCurrentLanguage={(newLanguage: string) => {
          setCurrentLanguage(newLanguage);
        }}
      />

      <ScrollView contentContainerStyle={{height: '100%'}}>
        <>{children}</>
      </ScrollView>
    </View>
  );
}
</code>```

importing a Navbar that contains the language selector component witch do all the work of translation :

```<code>interface Props {
  hideNavbar?: boolean;
  currentLanguage: string;
  setCurrentLanguage: (newlanguage: string) => void;
  languages: Language[];
}
export default function NavBar({
  hideNavbar,
  currentLanguage,
  setCurrentLanguage,
}: Props) {
  return (
    <View style={appStyles.headerContainer}>
      <Text style={appStyles.titleScreen}>
        TAKE A TOUR OF THE BASILICA OF SANTA MARIA NOVELLA
      </Text>
      <LanguageSelector
        languages={languageList}
        currentSelectedLanguage={currentLanguage}
        onLanguageChanged={(newLanguage: string) => {
          setCurrentLanguage(newLanguage);
        }}
      />
    </View>
  );
}
</code>```

if helps here is my languageComponent structure :

```<code>interface Props {
  languages: Language[];
  currentSelectedLanguage: string;
  onLanguageChanged: (newlanguage: string) => void;
}

function LanguageSelector({
  languages,
  onLanguageChanged,
  currentSelectedLanguage,
}: Props) {
  const renderItem = ({item}: {item: Language}) => (
    <Pressable
      onPress={() => {
        changeLanguage(item.value);
        onLanguageChanged(item.value);
      }}
      style={{padding: 10, paddingHorizontal: 50}}>
      <Text
        style={
          currentSelectedLanguage === item.value
            ? {
                color: appColors.orange,
                fontSize: 25,
                marginBottom: 10,
                fontFamily: 'Work Sans SemiBold',
              }
            : {
                color: appColors.white,
                fontSize: 25,
                marginBottom: 10,
                fontFamily: 'Work Sans SemiBold',
              }
        }>
        {item.label}
      </Text>
    </Pressable>
  );

  return (
    <FlatList
      data={languages}
      keyExtractor={item => item.value}
      renderItem={renderItem}
      horizontal
      contentContainerStyle={styles.container}
    />
  );
}
</code>```

right now i want to use Screen in home component to change language of a message as i change the language selected :

HOME SCREEN:

```<code>return (
    <Screen
      languages={languageList}
      currentLanguage={currentLanguage}
      setCurrentLanguage={(newLanguage: string) => {
        setCurrentLanguage(newLanguage);
      }}>
      <View style={appStyles.flex}>
        <ImageBackground
          source={require('@assets/images/cappella-sistina.jpeg')}
          style={appStyles.imageScreen}>
          <View style={appStyles.homeOverlay}>
            <View style={appStyles.topTabText}>
              <Text style={appStyles.textScreen}>{__(T.messages.welcome)}</Text>
              <Text style={[appStyles.italicText, {color: appColors.white}]}>
                {__(T.messages.interact)}
              </Text>
              <Text style={appStyles.textScreen}>€ 2,00</Text>
            </View>
            <Pressable
              onPress={onSecretButtonCounter}
              style={appStyles.settingsButton}
            />
          </View>
        </ImageBackground>

        {showKeypadModal && (
          <KeypadModal onCancel={onCancel} onConfirm={onConfirmPassword} />
        )}
      </View>
    </Screen>
  );
</code>```

It does work only if i control + s my homeScreen after i click the language i selected.
i want the component change immediately as i change the language,
Please help me i'm crazy about this .

Body:
I'm working with i18n library for translate languages and it works but now i want to upgrade things using my Screen component to make the code more light.
For doing so i crated my screen component :

interface Props {
  children: React.ReactNode;
  currentLanguage: string;
  setCurrentLanguage: (newlanguage: string) => void;
  languages: Language[];
  renderNavBar?: () => JSX.Element;
}
export default function Screen({children}: Props) {
  const [currentLanguage, setCurrentLanguage] = useState(i18n.language);
  const [value, setValue] = useState(children);

  useEffect(() => {
    setValue(children);
  }, [children]);

  return (
    <View>
      <NavBar
        languages={languageList}
        currentLanguage={currentLanguage}
        setCurrentLanguage={(newLanguage: string) => {
          setCurrentLanguage(newLanguage);
        }}
      />

      <ScrollView contentContainerStyle={{height: '100%'}}>
        <>{children}</>
      </ScrollView>
    </View>
  );
}

importing a Navbar that contains the language selector component witch do all the work of translation :

interface Props {
  hideNavbar?: boolean;
  currentLanguage: string;
  setCurrentLanguage: (newlanguage: string) => void;
  languages: Language[];
}
export default function NavBar({
  hideNavbar,
  currentLanguage,
  setCurrentLanguage,
}: Props) {
  return (
    <View style={appStyles.headerContainer}>
      <Text style={appStyles.titleScreen}>
        TAKE A TOUR OF THE BASILICA OF SANTA MARIA NOVELLA
      </Text>
      <LanguageSelector
        languages={languageList}
        currentSelectedLanguage={currentLanguage}
        onLanguageChanged={(newLanguage: string) => {
          setCurrentLanguage(newLanguage);
        }}
      />
    </View>
  );
}

if helps here is my languageComponent structure :

interface Props {
  languages: Language[];
  currentSelectedLanguage: string;
  onLanguageChanged: (newlanguage: string) => void;
}

function LanguageSelector({
  languages,
  onLanguageChanged,
  currentSelectedLanguage,
}: Props) {
  const renderItem = ({item}: {item: Language}) => (
    <Pressable
      onPress={() => {
        changeLanguage(item.value);
        onLanguageChanged(item.value);
      }}
      style={{padding: 10, paddingHorizontal: 50}}>
      <Text
        style={
          currentSelectedLanguage === item.value
            ? {
                color: appColors.orange,
                fontSize: 25,
                marginBottom: 10,
                fontFamily: 'Work Sans SemiBold',
              }
            : {
                color: appColors.white,
                fontSize: 25,
                marginBottom: 10,
                fontFamily: 'Work Sans SemiBold',
              }
        }>
        {item.label}
      </Text>
    </Pressable>
  );

  return (
    <FlatList
      data={languages}
      keyExtractor={item => item.value}
      renderItem={renderItem}
      horizontal
      contentContainerStyle={styles.container}
    />
  );
}

right now i want to use Screen in home component to change language of a message as i change the language selected :

HOME SCREEN:

return (
    <Screen
      languages={languageList}
      currentLanguage={currentLanguage}
      setCurrentLanguage={(newLanguage: string) => {
        setCurrentLanguage(newLanguage);
      }}>
      <View style={appStyles.flex}>
        <ImageBackground
          source={require('@assets/images/cappella-sistina.jpeg')}
          style={appStyles.imageScreen}>
          <View style={appStyles.homeOverlay}>
            <View style={appStyles.topTabText}>
              <Text style={appStyles.textScreen}>{__(T.messages.welcome)}</Text>
              <Text style={[appStyles.italicText, {color: appColors.white}]}>
                {__(T.messages.interact)}
              </Text>
              <Text style={appStyles.textScreen}>€ 2,00</Text>
            </View>
            <Pressable
              onPress={onSecretButtonCounter}
              style={appStyles.settingsButton}
            />
          </View>
        </ImageBackground>

        {showKeypadModal && (
          <KeypadModal onCancel={onCancel} onConfirm={onConfirmPassword} />
        )}
      </View>
    </Screen>
  );

It does work only if i control + s my homeScreen after i click the language i selected.
i want the component change immediately as i change the language,
Please help me i'm crazy about this .


来源: stackexchange

问:
no handler found for uri [/kk/gsgsgg] and method [POST] when adding documents to elastic search
```<code>let AWS = require('aws-sdk');
const getESClient = async () => {
    const esEndpoint = 'https://search.<region>.es.amazonaws.com';
    let options = {
        hosts: [esEndpoint],
        connectionClass: require('http-aws-es'),
        awsConfig: new AWS.Config({
            region: "",
            accessKeyId: "",
            secretAccessKey: ""
        }),
    };
    let es = require('elasticsearch').Client(options);
    es.indices.create({ index: 'kk' }, function (err, resp) {
        if (err)
            console.log('failed to create ElasticSearch index, ' + err.message);
        else
            console.log(resp + 'successfully created ElasticSearch index');
    });
    await es.index({
        index: 'kk',
        type: 'gsgsgg',
        refresh: true,
        document: {
            character: 'Ned Stark',
            quote: 'Winter is coming.'
        }
    })
    return es;
};

getESClient()
</code>```

I am trying the above code snippet, index is creating successfully but adding documents with the index getting errors below

body: { error: 'no handler found for uri [/kk/gsgsgg] and method
[POST]' },

ContentLicense: CC BY-SA 4.0

Body:
let AWS = require('aws-sdk');
const getESClient = async () => {
    const esEndpoint = 'https://search.<region>.es.amazonaws.com';
    let options = {
        hosts: [esEndpoint],
        connectionClass: require('http-aws-es'),
        awsConfig: new AWS.Config({
            region: "",
            accessKeyId: "",
            secretAccessKey: ""
        }),
    };
    let es = require('elasticsearch').Client(options);
    es.indices.create({ index: 'kk' }, function (err, resp) {
        if (err)
            console.log('failed to create ElasticSearch index, ' + err.message);
        else
            console.log(resp + 'successfully created ElasticSearch index');
    });
    await es.index({
        index: 'kk',
        type: 'gsgsgg',
        refresh: true,
        document: {
            character: 'Ned Stark',
            quote: 'Winter is coming.'
        }
    })
    return es;
};

getESClient()

I am trying the above code snippet, index is creating successfully but adding documents with the index getting errors below

body: { error: 'no handler found for uri [/kk/gsgsgg] and method
[POST]' },


问:
pass global value css in @media
any body know if it's possible to pass value global from :root file to other css file for @media operation. I've the feeling is not possible.
If it's possible, how ?
If it's not possible, why ?

my idea is do that

global css file loaded at first

:root {
 --value: 200px;
 --my-height:20px;
}
```
<p>other css file</p>
<pre class="lang-css prettyprint-override"><code>@media(min-width : var(--value)) {
 .my_class {
   height: var(--my-height);

}
</code>```

Title: pass global value css in @media

Body:
any body know if it's possible to pass value global from :root file to other css file for @media operation. I've the feeling is not possible.
If it's possible, how ?
If it's not possible, why ?

my idea is do that

global css file loaded at first

:root {
 --value: 200px;
 --my-height:20px;
}

other css file

@media(min-width : var(--value)) {
 .my_class {
   height: var(--my-height);

}


问:
How to mock python elasticsearch client and test without starting an elasticserver?
I need to mock elasticsearch python client in order to test my APIs without actually starting the elastic server in my testing environment without actually changing my original code/API.

I came across elastic mock, which is a python elasticsearch client for mocking, but it lacks enough document to fit my case.
Link for python client:
https://www.elastic.co/guide/en/elasticsearch/client/python-api/current/index.html

Link for elasticmock(python): https://pypi.org/project/ElasticMock/

There is the same elasticmock for javascript client, which replaces the connection component i.e. the HTTP layer in the Elasticsearch architecture.
Link for the Javascript client:

https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/client-testing.html#_elasticelasticsearch_mock

I have gone through a lot of stock overflow questions related to this, but everyone shows ways to mock the data. I don't want that.

I want to mock the HTTP connection part. I want to test the elasticsearch, without actually starting the elastic-server. So that my test environment would be independent of elasticsearch as an external dependency without changing my original code.

I have tried implementing the elastic mock for python, but due to lack of documentation, the demonstration didn't show ways to replace the elastic-server component and just hit static connection which would have been mocked.

All the related stack overflow questions relate to mocking data.


问:
What would cause NSFileHandleRaiseOperationExceptionWhileReading app crashes?
Looking for some help here. Our application seems to be crashing in production as well as on our test flight builds. The crashes are seemingly random and almost in all cases happen while the app is backgrounded. We are unable to reproduce when connected to xcode and running the app on a physical device (both on dev & prod builds). The crash logs don't have much information other than some references that indicate our application may have been terminated due to memory issues. When we run the app through xcode and track the memory usage, it's completely normal (never goes above ~80 MB when using all sorts of features in the app). Any guidance on how to address this crash based on the logs? Thank you in advance!

```Incident Identifier: 8E4EE038-4995-456F-A6E7-1F7894E5B7C5
Hardware Model:      iPhone13,2
Process:             Application [3842]
Path:                /private/var/containers/Bundle/Application/55921F66-6A8B-4523-AAB3-4B85715B90C4/Application.app/Application
Identifier:          com.Application.app
Version:             2022.13 (938)
AppStoreTools:       14B44
AppVariant:          1:iPhone13,2:15
Code Type:           ARM-64 (Native)
Role:                Non UI
Parent Process:      launchd [1]
Coalition:           com.Application.app [828]

Date/Time:           2022-12-16 02:18:26.3071 -0700
Launch Time:         2022-12-14 21:42:18.7547 -0700
OS Version:          iPhone OS 15.6.1 (19G82)
Release Type:        User
Baseband Version:    2.70.01
Report Version:      104

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note:  EXC_CORPSE_NOTIFY
Triggered by Thread:  0

Last Exception Backtrace:
0   CoreFoundation                  0x19390d288 __exceptionPreprocess + 220 (NSException.m:200)
1   libobjc.A.dylib                 0x1ac63d744 objc_exception_throw + 60 (objc-exception.mm:565)
2   Foundation                      0x1951a0edc _NSFileHandleRaiseOperationExceptionWhileReading + 280 (NSFileHandle.m:71)
3   Foundation                      0x1950cf8f8 -[NSConcreteFileHandle writeData:] + 312 (NSFileHandle.m:75)
4   Application                     0x102a705f4 -[SentryOutOfMemoryScopeObserver store:] + 92 (SentryOutOfMemoryScopeObserver.m:79)
5   Application                     0x102a707e0 -[SentryOutOfMemoryScopeObserver addSerializedBreadcrumb:] + 304 (SentryOutOfMemoryScopeObserver.m:100)
6   Application                     0x102a7df10 -[SentryScope addBreadcrumb:] + 484 (SentryScope.m:137)
7   Application                     0x102a64414 -[SentryHub addBreadcrumb:] + 200 (SentryHub.m:499)
8   Application                     0x102a7bfe4 +[SentrySDK addBreadcrumb:] + 60 (SentrySDK.m:337)
9   Application                     0x102a885a4 -[SentrySystemEventBreadcrumbs batteryStateChanged:] + 164 (SentrySystemEventBreadcrumbs.m:99)
10  CoreFoundation                  0x19389e834 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 28 (CFNotificationCenter.c:652)
11  CoreFoundation                  0x19393afd4 ___CFXRegistrationPost_block_invoke + 52 (CFNotificationCenter.c:173)
12  CoreFoundation                  0x19390e1d0 _CFXRegistrationPost + 456 (CFNotificationCenter.c:199)
13  CoreFoundation                  0x1938b48ac _CFXNotificationPost + 728 (CFNotificationCenter.c:1147)
14  Foundation                      0x195087734 -[NSNotificationCenter postNotificationName:object:userInfo:] + 96 (NSNotification.m:560)
15  UIKitCore                       0x195eea594 -[UIDevice(UIDevicePrivate) _setBatteryLevel:] + 144 (UIDevice.m:1369)
16  UIKitCore                       0x195ee37d8 _updateBatteryStatusBasedOnProperties + 300 (UIDevice.m:284)
17  UIKitCore                       0x1962c03e0 _3rdParty_batteryInformationChanged + 580 (UIDevice.m:439)
18  libsystem_notify.dylib          0x1b3a1c3b0 ___notify_dispatch_local_notification_block_invoke + 72 (notify_client.c:2033)
19  libdispatch.dylib               0x193583830 _dispatch_block_async_invoke2 + 148 (queue.c:560)
20  libdispatch.dylib               0x193574a30 _dispatch_client_callout + 20 (object.m:560)
21  libdispatch.dylib               0x193582f48 _dispatch_main_queue_drain + 928 (inline_internal.h:2622)
22  libdispatch.dylib               0x193582b98 _dispatch_main_queue_callback_4CF + 44 (queue.c:7770)
23  CoreFoundation                  0x1938c5800 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16 (CFRunLoop.c:1795)
24  CoreFoundation                  0x19387f704 __CFRunLoopRun + 2532 (CFRunLoop.c:3144)
25  CoreFoundation                  0x193892bc8 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3268)
26  GraphicsServices                0x1af9fe374 GSEventRunModal + 164 (GSEvent.c:2200)
27  UIKitCore                       0x196206b58 -[UIApplication _run] + 1100 (UIApplication.m:3511)
28  UIKitCore                       0x195f88090 UIApplicationMain + 364 (UIApplication.m:5064)
29  SwiftUI                         0x19b6ecf24 closure #1 in KitRendererCommon(_:) + 164 (UIKitApp.swift:35)
30  SwiftUI                         0x19b61ae08 runApp(_:) + 252 (<compiler-generated>:0)
31  SwiftUI                         0x19b5fc0f4 static App.main() + 128 (App.swift:114)
32  Application                     0x10295a51c static ApplicationApp.$main() + 28 (ApplicationApp.swift:13)
33  Application                     0x10295a51c main + 40 (AccessibleMessage+Extensions.swift:0)
34  dyld                            0x102d6dda4 start + 520 (dyldMain.cpp:879)

Thread 0 name:
Thread 0 Crashed:
0   libsystem_kernel.dylib          0x00000001cb509b38 __pthread_kill + 8 (:-1)
1   libsystem_pthread.dylib         0x00000002052773bc pthread_kill + 268 (pthread.c:1668)
2   libsystem_c.dylib               0x000000019ea1f524 abort + 168 (abort.c:118)
3   libc++abi.dylib                 0x00000001ac748b7c abort_message + 132 (abort_message.cpp:78)
4   libc++abi.dylib                 0x00000001ac7389c4 demangling_terminate_handler() + 336 (cxa_default_handlers.cpp:71)
5   libobjc.A.dylib                 0x00000001ac643c68 _objc_terminate() + 144 (objc-exception.mm:701)
6   Application                     0x0000000102a99020 CPPExceptionTerminate() + 132 (SentryCrashMonitor_CPPException.cpp:171)
7   libc++abi.dylib                 0x00000001ac747f18 std::__terminate(void (*)()) + 20 (cxa_handlers.cpp:59)
8   libc++abi.dylib                 0x00000001ac74ac1c __cxxabiv1::failed_throw(__cxxabiv1::__cxa_exception*) + 36 (cxa_exception.cpp:152)
9   libc++abi.dylib                 0x00000001ac74abc8 __cxa_throw + 140 (cxa_exception.cpp:283)
10  libobjc.A.dylib                 0x00000001ac63d8ac objc_exception_throw + 420 (objc-exception.mm:591)
11  Foundation                      0x00000001951a0edc _NSFileHandleRaiseOperationExceptionWhileReading + 280 (NSFileHandle.m:71)
12  Foundation                      0x00000001950cf8f8 -[NSConcreteFileHandle writeData:] + 312 (NSFileHandle.m:75)
13  Application                     0x0000000102a705f4 -[SentryOutOfMemoryScopeObserver store:] + 92 (SentryOutOfMemoryScopeObserver.m:79)
14  Application                     0x0000000102a707e0 -[SentryOutOfMemoryScopeObserver addSerializedBreadcrumb:] + 304 (SentryOutOfMemoryScopeObserver.m:100)
15  Application                     0x0000000102a7df10 -[SentryScope addBreadcrumb:] + 484 (SentryScope.m:137)
16  Application                     0x0000000102a64414 -[SentryHub addBreadcrumb:] + 200 (SentryHub.m:499)
17  Application                     0x0000000102a7bfe4 +[SentrySDK addBreadcrumb:] + 60 (SentrySDK.m:337)
18  Application                     0x0000000102a885a4 -[SentrySystemEventBreadcrumbs batteryStateChanged:] + 164 (SentrySystemEventBreadcrumbs.m:99)
19  CoreFoundation                  0x000000019389e834 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 28 (CFNotificationCenter.c:652)
20  CoreFoundation                  0x000000019393afd4 ___CFXRegistrationPost_block_invoke + 52 (CFNotificationCenter.c:173)
21  CoreFoundation                  0x000000019390e1d0 _CFXRegistrationPost + 456 (CFNotificationCenter.c:199)
22  CoreFoundation                  0x00000001938b48ac _CFXNotificationPost + 728 (CFNotificationCenter.c:1147)
23  Foundation                      0x0000000195087734 -[NSNotificationCenter postNotificationName:object:userInfo:] + 96 (NSNotification.m:560)
24  UIKitCore                       0x0000000195eea594 -[UIDevice(UIDevicePrivate) _setBatteryLevel:] + 144 (UIDevice.m:1369)
25  UIKitCore                       0x0000000195ee37d8 _updateBatteryStatusBasedOnProperties + 300 (UIDevice.m:284)
26  UIKitCore                       0x00000001962c03e0 _3rdParty_batteryInformationChanged + 580 (UIDevice.m:439)
27  libsystem_notify.dylib          0x00000001b3a1c3b0 ___notify_dispatch_local_notification_block_invoke + 72 (notify_client.c:2033)
28  libdispatch.dylib               0x0000000193583830 _dispatch_block_async_invoke2 + 148 (queue.c:560)
29  libdispatch.dylib               0x0000000193574a30 _dispatch_client_callout + 20 (object.m:560)
30  libdispatch.dylib               0x0000000193582f48 _dispatch_main_queue_drain + 928 (inline_internal.h:2622)
31  libdispatch.dylib               0x0000000193582b98 _dispatch_main_queue_callback_4CF + 44 (queue.c:7770)
32  CoreFoundation                  0x00000001938c5800 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16 (CFRunLoop.c:1795)
33  CoreFoundation                  0x000000019387f704 __CFRunLoopRun + 2532 (CFRunLoop.c:3144)
34  CoreFoundation                  0x0000000193892bc8 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3268)
35  GraphicsServices                0x00000001af9fe374 GSEventRunModal + 164 (GSEvent.c:2200)
36  UIKitCore                       0x0000000196206b58 -[UIApplication _run] + 1100 (UIApplication.m:3511)
37  UIKitCore                       0x0000000195f88090 UIApplicationMain + 364 (UIApplication.m:5064)
38  SwiftUI                         0x000000019b6ecf24 closure #1 in KitRendererCommon(_:) + 164 (UIKitApp.swift:35)
39  SwiftUI                         0x000000019b61ae08 runApp(_:) + 252 (<compiler-generated>:0)
40  SwiftUI                         0x000000019b5fc0f4 static App.main() + 128 (App.swift:114)
41  Application                     0x000000010295a51c static ApplicationApp.$main() + 28 (ApplicationApp.swift:13)
42  Application                     0x000000010295a51c main + 40 (AccessibleMessage+Extensions.swift:0)
43  dyld                            0x0000000102d6dda4 start + 520 (dyldMain.cpp:879)

Thread 1:
0   libsystem_pthread.dylib         0x0000000205270e54 start_wqthread + 0 (:-1)

Thread 2 name:
Thread 2:
0   libsystem_kernel.dylib          0x00000001cb503a2c __semwait_signal + 8 (:-1)
1   libsystem_c.dylib               0x000000019ea040e4 nanosleep + 220 (nanosleep.c:104)
2   libsystem_c.dylib               0x000000019ea04e14 usleep + 68 (usleep.c:52)
3   Application                     0x0000000102a37234 __40-[RSEventRepository __initiateProcessor]_block_invoke + 500 (RSEventRepository.m:0)
4   libdispatch.dylib               0x0000000193572e6c _dispatch_call_block_and_release + 32 (init.c:1517)
5   libdispatch.dylib               0x0000000193574a30 _dispatch_client_callout + 20 (object.m:560)
6   libdispatch.dylib               0x0000000193577b44 _dispatch_queue_override_invoke + 784 (inline_internal.h:2622)
7   libdispatch.dylib               0x0000000193586164 _dispatch_root_queue_drain + 396 (inline_internal.h:0)
8   libdispatch.dylib               0x000000019358696c _dispatch_worker_thread2 + 164 (queue.c:6935)
9   libsystem_pthread.dylib         0x0000000205271080 _pthread_wqthread + 228 (pthread.c:2612)
10  libsystem_pthread.dylib         0x0000000205270e5c start_wqthread + 8 (:-1)

Thread 3 name:
Thread 3:
0   libsystem_kernel.dylib          0x00000001cb5034a0 mach_msg_trap + 8 (:-1)
1   libsystem_kernel.dylib          0x00000001cb503ae4 mach_msg + 76 (mach_msg.c:119)
2   CoreFoundation                  0x000000019387ad30 __CFRunLoopServiceMachPort + 372 (CFRunLoop.c:2646)
3   CoreFoundation                  0x000000019387f1bc __CFRunLoopRun + 1180 (CFRunLoop.c:3000)
4   CoreFoundation                  0x0000000193892bc8 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3268)
5   Foundation                      0x0000000195085444 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 236 (NSRunLoop.m:373)
6   Foundation                      0x00000001950c6e0c -[NSRunLoop(NSRunLoop) runUntilDate:] + 92 (NSRunLoop.m:420)
7   UIKitCore                       0x0000000196180cc4 -[UIEventFetcher threadMain] + 524 (UIEventFetcher.m:1167)
8   Foundation                      0x00000001950d541c __NSThread__start__ + 808 (NSThread.m:972)
9   libsystem_pthread.dylib         0x00000002052719ac _pthread_start + 148 (pthread.c:891)
10  libsystem_pthread.dylib         0x0000000205270e68 thread_start + 8 (:-1)

Thread 4:
0   libsystem_kernel.dylib          0x00000001cb503a2c __semwait_signal + 8 (:-1)
1   libsystem_c.dylib               0x000000019ea040e4 nanosleep + 220 (nanosleep.c:104)
2   libsystem_c.dylib               0x000000019ea18388 sleep + 52 (sleep.c:62)
3   Application                     0x0000000102a9db74 monitorCachedData + 676 (SentryCrashCachedData.c:144)
4   libsystem_pthread.dylib         0x00000002052719ac _pthread_start + 148 (pthread.c:891)
5   libsystem_pthread.dylib         0x0000000205270e68 thread_start + 8 (:-1)

Thread 5 name:
Thread 5:
0   libsystem_kernel.dylib          0x00000001cb5034a0 mach_msg_trap + 8 (:-1)
1   libsystem_kernel.dylib          0x00000001cb503ae4 mach_msg + 76 (mach_msg.c:119)
2   libsystem_kernel.dylib          0x00000001cb50fa44 thread_suspend + 96 (thread_actUser.c:1016)
3   Application                     0x0000000102a99720 handleExceptions + 128 (SentryCrashMonitor_MachException.c:258)
4   libsystem_pthread.dylib         0x00000002052719ac _pthread_start + 148 (pthread.c:891)
5   libsystem_pthread.dylib         0x0000000205270e68 thread_start + 8 (:-1)

Thread 6 name:
Thread 6:
0   libsystem_kernel.dylib          0x00000001cb5034a0 mach_msg_trap + 8 (:-1)
1   libsystem_kernel.dylib          0x00000001cb503b70 mach_msg + 216 (mach_msg.c:137)
2   Application                     0x0000000102a9974c handleExceptions + 172 (SentryCrashMonitor_MachException.c:266)
3   libsystem_pthread.dylib         0x00000002052719ac _pthread_start + 148 (pthread.c:891)
4   libsystem_pthread.dylib         0x0000000205270e68 thread_start + 8 (:-1)

Thread 7 name:
Thread 7:
0   libsystem_kernel.dylib          0x00000001cb503a2c __semwait_signal + 8 (:-1)
1   libsystem_c.dylib               0x000000019ea040e4 nanosleep + 220 (nanosleep.c:104)
2   Foundation                      0x00000001950e7ce8 +[NSThread sleepForTimeInterval:] + 160 (NSThread.m:504)
3   Application                     0x0000000102a40220 -[SentryANRTracker detectANRs] + 448 (SentryANRTracker.m:75)
4   Foundation                      0x00000001950d541c __NSThread__start__ + 808 (NSThread.m:972)
5   libsystem_pthread.dylib         0x00000002052719ac _pthread_start + 148 (pthread.c:891)
6   libsystem_pthread.dylib         0x0000000205270e68 thread_start + 8 (:-1)

Thread 8 name:
Thread 8:
0   libboringssl.dylib              0x00000001adece2c0 bssl::ssl_send_alert_impl(ssl_st*, int, int) + 152 (s3_pkt.cc:417)
1   libboringssl.dylib              0x00000001aded9ad8 SSL_shutdown + 204 (ssl_lib.cc:1152)
2   libboringssl.dylib              0x00000001ade8bf5c boringssl_session_disconnect + 76 (boringssl_session.m:506)
3   libboringssl.dylib              0x00000001ade94a88 nw_protocol_boringssl_disconnect + 96 (protocol_boringssl.m:1346)
4   libnetwork.dylib                0x0000000194563020 -[NWConcrete_nw_endpoint_flow cancelWithHandler:forced:] + 304 (endpoint_flow.m:236)
5   libnetwork.dylib                0x000000019469ff58 nw_endpoint_handler_cancel + 1108 (endpoint_handler.m:1042)
6   libnetwork.dylib                0x000000019461ad74 __nw_connection_cancel_inner_block_invoke + 1168 (connection.m:2525)
7   libnetwork.dylib                0x00000001946274c0 nw_connection_cancel + 296 (connection.m:167)
8   libquic.dylib                   0x0000000204b62204 quic_drain_connection + 920 (protocol_quic.c:2441)
9   libquic.dylib                   0x0000000204b8cb90 quic_idle_timeout_fired + 1492 (protocol_quic.c:2134)
10  libquic.dylib                   0x0000000204b82e64 quic_timer_run + 220 (quic_timer.c:197)
11  libnetwork.dylib                0x0000000194afe238 __nw_protocol_instance_schedule_wakeup_block_invoke + 64 (protocol_implementation.m:4770)
12  libnetwork.dylib                0x00000001947749e0 __nw_context_reset_timer_block_with_time_block_invoke + 228 (context.m:1820)
13  libdispatch.dylib               0x0000000193574a30 _dispatch_client_callout + 20 (object.m:560)
14  libdispatch.dylib               0x0000000193577eec _dispatch_continuation_pop + 500 (inline_internal.h:2622)
15  libdispatch.dylib               0x000000019358b13c _dispatch_source_invoke + 1596 (source.c:596)
16  libdispatch.dylib               0x000000019357df80 _dispatch_workloop_invoke + 1784 (inline_internal.h:0)
17  libdispatch.dylib               0x0000000193587500 _dispatch_workloop_worker_thread + 648 (queue.c:6732)
18  libsystem_pthread.dylib         0x00000002052710bc _pthread_wqthread + 288 (pthread.c:2599)
19  libsystem_pthread.dylib         0x0000000205270e5c start_wqthread + 8 (:-1)

Thread 9 name:
Thread 9:
0   libsystem_kernel.dylib          0x00000001cb5034a0 mach_msg_trap + 8 (:-1)
1   libsystem_kernel.dylib          0x00000001cb503ae4 mach_msg + 76 (mach_msg.c:119)
2   CoreFoundation                  0x000000019387ad30 __CFRunLoopServiceMachPort + 372 (CFRunLoop.c:2646)
3   CoreFoundation                  0x000000019387f1bc __CFRunLoopRun + 1180 (CFRunLoop.c:3000)
4   CoreFoundation                  0x0000000193892bc8 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3268)
5   CFNetwork                       0x000000019430f1dc +[__CFN_CoreSchedulingSetRunnable _run:] + 472 (CoreSchedulingSet.mm:1372)
6   Foundation                      0x00000001950d541c __NSThread__start__ + 808 (NSThread.m:972)
7   libsystem_pthread.dylib         0x00000002052719ac _pthread_start + 148 (pthread.c:891)
8   libsystem_pthread.dylib         0x0000000205270e68 thread_start + 8 (:-1)

Thread 10 name:
Thread 10:
0   libsystem_kernel.dylib          0x00000001cb5034a0 mach_msg_trap + 8 (:-1)
1   libsystem_kernel.dylib          0x00000001cb503ae4 mach_msg + 76 (mach_msg.c:119)
2   CoreFoundation                  0x000000019387ad30 __CFRunLoopServiceMachPort + 372 (CFRunLoop.c:2646)
3   CoreFoundation                  0x000000019387f1bc __CFRunLoopRun + 1180 (CFRunLoop.c:3000)
4   CoreFoundation                  0x0000000193892bc8 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3268)
5   Foundation                      0x0000000195085444 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 236 (NSRunLoop.m:373)
6   Intercom                        0x00000001041bc008 -[IntercomSDK__SRRunLoopThread main] + 252
7   Foundation                      0x00000001950d541c __NSThread__start__ + 808 (NSThread.m:972)
8   libsystem_pthread.dylib         0x00000002052719ac _pthread_start + 148 (pthread.c:891)
9   libsystem_pthread.dylib         0x0000000205270e68 thread_start + 8 (:-1)

Thread 11 name:
Thread 11:
0   libsystem_kernel.dylib          0x00000001cb504164 select$DARWIN_EXTSN + 8 (:-1)
1   CoreFoundation                  0x000000019391eb68 __CFSocketManager + 644 (CFSocket.c:1343)
2   libsystem_pthread.dylib         0x00000002052719ac _pthread_start + 148 (pthread.c:891)
3   libsystem_pthread.dylib         0x0000000205270e68 thread_start + 8 (:-1)

Thread 12:
0   libsystem_pthread.dylib         0x0000000205270e54 start_wqthread + 0 (:-1)

Thread 13:
0   libsystem_pthread.dylib         0x0000000205270e54 start_wqthread + 0 (:-1)

Thread 14:
0   libsystem_pthread.dylib         0x0000000205270e54 start_wqthread + 0 (:-1)

Thread 15:
0   libsystem_pthread.dylib         0x0000000205270e54 start_wqthread + 0 (:-1)

Thread 16:
0   libsystem_pthread.dylib         0x0000000205270e54 start_wqthread + 0 (:-1)

Thread 17:
0   libsystem_pthread.dylib         0x0000000205270e54 start_wqthread + 0 (:-1)

Thread 18:
0   libsystem_pthread.dylib         0x0000000205270e54 start_wqthread + 0 (:-1)

Thread 19:
0   libsystem_pthread.dylib         0x0000000205270e54 start_wqthread + 0 (:-1)

Thread 20:
0   libsystem_pthread.dylib         0x0000000205270e54 start_wqthread + 0 (:-1)

Thread 21 name:
Thread 21:
0   libxpc.dylib                    0x000000020529a828 _xpc_connection_call_event_handler + 136 (connection.c:810)
1   libxpc.dylib                    0x0000000205296d0c do_mach_notify_port_destroyed + 144 (connection.c:1696)
2   libxpc.dylib                    0x00000002052b8208 _Xmach_notify_port_destroyed + 84 (notifyServer.c:253)
3   libxpc.dylib                    0x00000002052b83bc notify_server + 92 (notifyServer.c:516)
4   libxpc.dylib                    0x0000000205299aec _xpc_connection_pass2mig + 172 (connection.c:1508)
5   libxpc.dylib                    0x000000020529ac20 _xpc_connection_mach_event + 920 (connection.c:1547)
6   libdispatch.dylib               0x0000000193574af0 _dispatch_client_callout4 + 20 (object.m:600)
7   libdispatch.dylib               0x0000000193590b2c _dispatch_mach_msg_invoke + 464 (mach.c:2418)
8   libdispatch.dylib               0x000000019357c000 _dispatch_lane_serial_drain + 376 (inline_internal.h:0)
9   libdispatch.dylib               0x000000019359184c _dispatch_mach_invoke + 456 (mach.c:2740)
10  libdispatch.dylib               0x000000019357c000 _dispatch_lane_serial_drain + 376 (inline_internal.h:0)
11  libdispatch.dylib               0x000000019357cc80 _dispatch_lane_invoke + 392 (queue.c:3944)
12  libdispatch.dylib               0x0000000193587500 _dispatch_workloop_worker_thread + 648 (queue.c:6732)
13  libsystem_pthread.dylib         0x00000002052710bc _pthread_wqthread + 288 (pthread.c:2599)
14  libsystem_pthread.dylib         0x0000000205270e5c start_wqthread + 8 (:-1)

Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000000   x1: 0x0000000000000000   x2: 0x0000000000000000   x3: 0x0000000000000000
    x4: 0x00000001ac74c0f5   x5: 0x000000016d4a7f20   x6: 0x000000000000006e   x7: 0x0000000000000000
    x8: 0xc69fab57a3597269   x9: 0xc69fab56a18577e9  x10: 0x0000000000000200  x11: 0x000000000000000b
   x12: 0x000000000000000b  x13: 0x0000000193c4aa9f  x14: 0x00000001ac74c11b  x15: 0x0000000000000000
   x16: 0x0000000000000148  x17: 0x0000000102dc0580  x18: 0x0000000000000000  x19: 0x0000000000000006
   x20: 0x0000000000000103  x21: 0x0000000102dc0660  x22: 0x00000002802d83e0  x23: 0x0000000103e5dee0
   x24: 0x0000000280eb5770  x25: 0x0000000200000003  x26: 0x0000000000000001  x27: 0x0000000000001400
   x28: 0x0000000000000000   fp: 0x000000016d4a7e90   lr: 0x00000002052773bc
    sp: 0x000000016d4a7e70   pc: 0x00000001cb509b38 cpsr: 0x40001000
   esr: 0x56000080  Address size fault

Binary Images:
0x102954000 - 0x102b67fff Application arm64  <b9ffb35526fd3bde9b43f1c80627ca6d> /private/var/containers/Bundle/Application/55921F66-6A8B-4523-AAB3-4B85715B90C4/Application.app/Application
0x102d54000 - 0x102dabfff dyld arm64e  <66e1fb2668f8379ba052eb8b8291b5e1> /usr/lib/dyld
0x10411c000 - 0x1043a3fff Intercom arm64  <97c5fb2d3c3d3fe5b90a2180a2c2ccbc> /private/var/containers/Bundle/Application/55921F66-6A8B-4523-AAB3-4B85715B90C4/Application.app/Frameworks/Intercom.framework/Intercom
0x193571000 - 0x1935b6fff libdispatch.dylib arm64e  <e3ea4f635d11342aaf199f58dbc8e259> /usr/lib/system/libdispatch.dylib
0x193874000 - 0x193cc9fff CoreFoundation arm64e  <6b22dd8135853be6bc77ba19810ec0f2> /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
0x194097000 - 0x194558fff CFNetwork arm64e  <106410ffdd4f3527ad531980fe8b0ddd> /System/Library/Frameworks/CFNetwork.framework/CFNetwork
0x194559000 - 0x194fedfff libnetwork.dylib arm64e  <0dbe8d5848823c66b0310239c020ee4c> /usr/lib/libnetwork.dylib
0x19506c000 - 0x195376fff Foundation arm64e  <ee1abaf23d7137fb906715aa79528619> /System/Library/Frameworks/Foundation.framework/Foundation
0x195cf2000 - 0x19758ffff UIKitCore arm64e  <137a95aada6d332cbc01e13bb9b6e317> /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore
0x19b4ad000 - 0x19c544fff SwiftUI arm64e  <6ab6407f39eb3fb393d55e0c55af3a2d> /System/Library/Frameworks/SwiftUI.framework/SwiftUI
0x19e9ff000 - 0x19ea7efff libsystem_c.dylib arm64e  <86a1a24ace353769ba6960f28353281e> /usr/lib/system/libsystem_c.dylib
0x1ac627000 - 0x1ac663fff libobjc.A.dylib arm64e  <f6368be9109b3405b282624040529afd> /usr/lib/libobjc.A.dylib
0x1ac737000 - 0x1ac74efff libc++abi.dylib arm64e  <d00067b20a7a3cb9b4d407b160da261b> /usr/lib/libc++abi.dylib
0x1ade86000 - 0x1adf47fff libboringssl.dylib arm64e  <d912c7bbbb13308cab0130c67ab254c9> /usr/lib/libboringssl.dylib
0x1af9fd000 - 0x1afa05fff GraphicsServices arm64e  <a094e7b51d4037c5902756d86988ec4b> /System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices
0x1b3a19000 - 0x1b3a23fff libsystem_notify.dylib arm64e  <252db8f9aaef333ba181d492e14411b2> /usr/lib/system/libsystem_notify.dylib
0x1cb502000 - 0x1cb537fff libsystem_kernel.dylib arm64e  <1fb39303587b320eaeb8e51a54c8a4a9> /usr/lib/system/libsystem_kernel.dylib
0x204b4d000 - 0x204c0afff libquic.dylib arm64e  <852ce208b7dc3b72884bbc1f0a02c33d> /usr/lib/libquic.dylib
0x205270000 - 0x20527bfff libsystem_pthread.dylib arm64e  <adc41700002e3a2bb4a1eb5fbf575770> /usr/lib/system/libsystem_pthread.dylib
0x20528b000 - 0x2052c7fff libxpc.dylib arm64e  <b183213379dc3e42b704ef71f75a577e> /usr/lib/system/libxpc.dylib

EOF

```

Body:
Looking for some help here. Our application seems to be crashing in production as well as on our test flight builds. The crashes are seemingly random and almost in all cases happen while the app is backgrounded. We are unable to reproduce when connected to xcode and running the app on a physical device (both on dev & prod builds). The crash logs don't have much information other than some references that indicate our application may have been terminated due to memory issues. When we run the app through xcode and track the memory usage, it's completely normal (never goes above ~80 MB when using all sorts of features in the app). Any guidance on how to address this crash based on the logs? Thank you in advance!

Incident Identifier: 8E4EE038-4995-456F-A6E7-1F7894E5B7C5
Hardware Model:      iPhone13,2
Process:             Application [3842]
Path:                /private/var/containers/Bundle/Application/55921F66-6A8B-4523-AAB3-4B85715B90C4/Application.app/Application
Identifier:          com.Application.app
Version:             2022.13 (938)
AppStoreTools:       14B44
AppVariant:          1:iPhone13,2:15
Code Type:           ARM-64 (Native)
Role:                Non UI
Parent Process:      launchd [1]
Coalition:           com.Application.app [828]

Date/Time:           2022-12-16 02:18:26.3071 -0700
Launch Time:         2022-12-14 21:42:18.7547 -0700
OS Version:          iPhone OS 15.6.1 (19G82)
Release Type:        User
Baseband Version:    2.70.01
Report Version:      104

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note:  EXC_CORPSE_NOTIFY
Triggered by Thread:  0

Last Exception Backtrace:
0   CoreFoundation                  0x19390d288 __exceptionPreprocess + 220 (NSException.m:200)
1   libobjc.A.dylib                 0x1ac63d744 objc_exception_throw + 60 (objc-exception.mm:565)
2   Foundation                      0x1951a0edc _NSFileHandleRaiseOperationExceptionWhileReading + 280 (NSFileHandle.m:71)
3   Foundation                      0x1950cf8f8 -[NSConcreteFileHandle writeData:] + 312 (NSFileHandle.m:75)
4   Application                     0x102a705f4 -[SentryOutOfMemoryScopeObserver store:] + 92 (SentryOutOfMemoryScopeObserver.m:79)
5   Application                     0x102a707e0 -[SentryOutOfMemoryScopeObserver addSerializedBreadcrumb:] + 304 (SentryOutOfMemoryScopeObserver.m:100)
6   Application                     0x102a7df10 -[SentryScope addBreadcrumb:] + 484 (SentryScope.m:137)
7   Application                     0x102a64414 -[SentryHub addBreadcrumb:] + 200 (SentryHub.m:499)
8   Application                     0x102a7bfe4 +[SentrySDK addBreadcrumb:] + 60 (SentrySDK.m:337)
9   Application                     0x102a885a4 -[SentrySystemEventBreadcrumbs batteryStateChanged:] + 164 (SentrySystemEventBreadcrumbs.m:99)
10  CoreFoundation                  0x19389e834 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 28 (CFNotificationCenter.c:652)
11  CoreFoundation                  0x19393afd4 ___CFXRegistrationPost_block_invoke + 52 (CFNotificationCenter.c:173)
12  CoreFoundation                  0x19390e1d0 _CFXRegistrationPost + 456 (CFNotificationCenter.c:199)
13  CoreFoundation                  0x1938b48ac _CFXNotificationPost + 728 (CFNotificationCenter.c:1147)
14  Foundation                      0x195087734 -[NSNotificationCenter postNotificationName:object:userInfo:] + 96 (NSNotification.m:560)
15  UIKitCore                       0x195eea594 -[UIDevice(UIDevicePrivate) _setBatteryLevel:] + 144 (UIDevice.m:1369)
16  UIKitCore                       0x195ee37d8 _updateBatteryStatusBasedOnProperties + 300 (UIDevice.m:284)
17  UIKitCore                       0x1962c03e0 _3rdParty_batteryInformationChanged + 580 (UIDevice.m:439)
18  libsystem_notify.dylib          0x1b3a1c3b0 ___notify_dispatch_local_notification_block_invoke + 72 (notify_client.c:2033)
19  libdispatch.dylib               0x193583830 _dispatch_block_async_invoke2 + 148 (queue.c:560)
20  libdispatch.dylib               0x193574a30 _dispatch_client_callout + 20 (object.m:560)
21  libdispatch.dylib               0x193582f48 _dispatch_main_queue_drain + 928 (inline_internal.h:2622)
22  libdispatch.dylib               0x193582b98 _dispatch_main_queue_callback_4CF + 44 (queue.c:7770)
23  CoreFoundation                  0x1938c5800 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16 (CFRunLoop.c:1795)
24  CoreFoundation                  0x19387f704 __CFRunLoopRun + 2532 (CFRunLoop.c:3144)
25  CoreFoundation                  0x193892bc8 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3268)
26  GraphicsServices                0x1af9fe374 GSEventRunModal + 164 (GSEvent.c:2200)
27  UIKitCore                       0x196206b58 -[UIApplication _run] + 1100 (UIApplication.m:3511)
28  UIKitCore                       0x195f88090 UIApplicationMain + 364 (UIApplication.m:5064)
29  SwiftUI                         0x19b6ecf24 closure #1 in KitRendererCommon(_:) + 164 (UIKitApp.swift:35)
30  SwiftUI                         0x19b61ae08 runApp(_:) + 252 (<compiler-generated>:0)
31  SwiftUI                         0x19b5fc0f4 static App.main() + 128 (App.swift:114)
32  Application                     0x10295a51c static ApplicationApp.$main() + 28 (ApplicationApp.swift:13)
33  Application                     0x10295a51c main + 40 (AccessibleMessage+Extensions.swift:0)
34  dyld                            0x102d6dda4 start + 520 (dyldMain.cpp:879)

Thread 0 name:
Thread 0 Crashed:
0   libsystem_kernel.dylib          0x00000001cb509b38 __pthread_kill + 8 (:-1)
1   libsystem_pthread.dylib         0x00000002052773bc pthread_kill + 268 (pthread.c:1668)
2   libsystem_c.dylib               0x000000019ea1f524 abort + 168 (abort.c:118)
3   libc++abi.dylib                 0x00000001ac748b7c abort_message + 132 (abort_message.cpp:78)
4   libc++abi.dylib                 0x00000001ac7389c4 demangling_terminate_handler() + 336 (cxa_default_handlers.cpp:71)
5   libobjc.A.dylib                 0x00000001ac643c68 _objc_terminate() + 144 (objc-exception.mm:701)
6   Application                     0x0000000102a99020 CPPExceptionTerminate() + 132 (SentryCrashMonitor_CPPException.cpp:171)
7   libc++abi.dylib                 0x00000001ac747f18 std::__terminate(void (*)()) + 20 (cxa_handlers.cpp:59)
8   libc++abi.dylib                 0x00000001ac74ac1c __cxxabiv1::failed_throw(__cxxabiv1::__cxa_exception*) + 36 (cxa_exception.cpp:152)
9   libc++abi.dylib                 0x00000001ac74abc8 __cxa_throw + 140 (cxa_exception.cpp:283)
10  libobjc.A.dylib                 0x00000001ac63d8ac objc_exception_throw + 420 (objc-exception.mm:591)
11  Foundation                      0x00000001951a0edc _NSFileHandleRaiseOperationExceptionWhileReading + 280 (NSFileHandle.m:71)
12  Foundation                      0x00000001950cf8f8 -[NSConcreteFileHandle writeData:] + 312 (NSFileHandle.m:75)
13  Application                     0x0000000102a705f4 -[SentryOutOfMemoryScopeObserver store:] + 92 (SentryOutOfMemoryScopeObserver.m:79)
14  Application                     0x0000000102a707e0 -[SentryOutOfMemoryScopeObserver addSerializedBreadcrumb:] + 304 (SentryOutOfMemoryScopeObserver.m:100)
15  Application                     0x0000000102a7df10 -[SentryScope addBreadcrumb:] + 484 (SentryScope.m:137)
16  Application                     0x0000000102a64414 -[SentryHub addBreadcrumb:] + 200 (SentryHub.m:499)
17  Application                     0x0000000102a7bfe4 +[SentrySDK addBreadcrumb:] + 60 (SentrySDK.m:337)
18  Application                     0x0000000102a885a4 -[SentrySystemEventBreadcrumbs batteryStateChanged:] + 164 (SentrySystemEventBreadcrumbs.m:99)
19  CoreFoundation                  0x000000019389e834 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 28 (CFNotificationCenter.c:652)
20  CoreFoundation                  0x000000019393afd4 ___CFXRegistrationPost_block_invoke + 52 (CFNotificationCenter.c:173)
21  CoreFoundation                  0x000000019390e1d0 _CFXRegistrationPost + 456 (CFNotificationCenter.c:199)
22  CoreFoundation                  0x00000001938b48ac _CFXNotificationPost + 728 (CFNotificationCenter.c:1147)
23  Foundation                      0x0000000195087734 -[NSNotificationCenter postNotificationName:object:userInfo:] + 96 (NSNotification.m:560)
24  UIKitCore                       0x0000000195eea594 -[UIDevice(UIDevicePrivate) _setBatteryLevel:] + 144 (UIDevice.m:1369)
25  UIKitCore                       0x0000000195ee37d8 _updateBatteryStatusBasedOnProperties + 300 (UIDevice.m:284)
26  UIKitCore                       0x00000001962c03e0 _3rdParty_batteryInformationChanged + 580 (UIDevice.m:439)
27  libsystem_notify.dylib          0x00000001b3a1c3b0 ___notify_dispatch_local_notification_block_invoke + 72 (notify_client.c:2033)
28  libdispatch.dylib               0x0000000193583830 _dispatch_block_async_invoke2 + 148 (queue.c:560)
29  libdispatch.dylib               0x0000000193574a30 _dispatch_client_callout + 20 (object.m:560)
30  libdispatch.dylib               0x0000000193582f48 _dispatch_main_queue_drain + 928 (inline_internal.h:2622)
31  libdispatch.dylib               0x0000000193582b98 _dispatch_main_queue_callback_4CF + 44 (queue.c:7770)
32  CoreFoundation                  0x00000001938c5800 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16 (CFRunLoop.c:1795)
33  CoreFoundation                  0x000000019387f704 __CFRunLoopRun + 2532 (CFRunLoop.c:3144)
34  CoreFoundation                  0x0000000193892bc8 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3268)
35  GraphicsServices                0x00000001af9fe374 GSEventRunModal + 164 (GSEvent.c:2200)
36  UIKitCore                       0x0000000196206b58 -[UIApplication _run] + 1100 (UIApplication.m:3511)
37  UIKitCore                       0x0000000195f88090 UIApplicationMain + 364 (UIApplication.m:5064)
38  SwiftUI                         0x000000019b6ecf24 closure #1 in KitRendererCommon(_:) + 164 (UIKitApp.swift:35)
39  SwiftUI                         0x000000019b61ae08 runApp(_:) + 252 (<compiler-generated>:0)
40  SwiftUI                         0x000000019b5fc0f4 static App.main() + 128 (App.swift:114)
41  Application                     0x000000010295a51c static ApplicationApp.$main() + 28 (ApplicationApp.swift:13)
42  Application                     0x000000010295a51c main + 40 (AccessibleMessage+Extensions.swift:0)
43  dyld                            0x0000000102d6dda4 start + 520 (dyldMain.cpp:879)

Thread 1:
0   libsystem_pthread.dylib         0x0000000205270e54 start_wqthread + 0 (:-1)

Thread 2 name:
Thread 2:
0   libsystem_kernel.dylib          0x00000001cb503a2c __semwait_signal + 8 (:-1)
1   libsystem_c.dylib               0x000000019ea040e4 nanosleep + 220 (nanosleep.c:104)
2   libsystem_c.dylib               0x000000019ea04e14 usleep + 68 (usleep.c:52)
3   Application                     0x0000000102a37234 __40-[RSEventRepository __initiateProcessor]_block_invoke + 500 (RSEventRepository.m:0)
4   libdispatch.dylib               0x0000000193572e6c _dispatch_call_block_and_release + 32 (init.c:1517)
5   libdispatch.dylib               0x0000000193574a30 _dispatch_client_callout + 20 (object.m:560)
6   libdispatch.dylib               0x0000000193577b44 _dispatch_queue_override_invoke + 784 (inline_internal.h:2622)
7   libdispatch.dylib               0x0000000193586164 _dispatch_root_queue_drain + 396 (inline_internal.h:0)
8   libdispatch.dylib               0x000000019358696c _dispatch_worker_thread2 + 164 (queue.c:6935)
9   libsystem_pthread.dylib         0x0000000205271080 _pthread_wqthread + 228 (pthread.c:2612)
10  libsystem_pthread.dylib         0x0000000205270e5c start_wqthread + 8 (:-1)

Thread 3 name:
Thread 3:
0   libsystem_kernel.dylib          0x00000001cb5034a0 mach_msg_trap + 8 (:-1)
1   libsystem_kernel.dylib          0x00000001cb503ae4 mach_msg + 76 (mach_msg.c:119)
2   CoreFoundation                  0x000000019387ad30 __CFRunLoopServiceMachPort + 372 (CFRunLoop.c:2646)
3   CoreFoundation                  0x000000019387f1bc __CFRunLoopRun + 1180 (CFRunLoop.c:3000)
4   CoreFoundation                  0x0000000193892bc8 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3268)
5   Foundation                      0x0000000195085444 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 236 (NSRunLoop.m:373)
6   Foundation                      0x00000001950c6e0c -[NSRunLoop(NSRunLoop) runUntilDate:] + 92 (NSRunLoop.m:420)
7   UIKitCore                       0x0000000196180cc4 -[UIEventFetcher threadMain] + 524 (UIEventFetcher.m:1167)
8   Foundation                      0x00000001950d541c __NSThread__start__ + 808 (NSThread.m:972)
9   libsystem_pthread.dylib         0x00000002052719ac _pthread_start + 148 (pthread.c:891)
10  libsystem_pthread.dylib         0x0000000205270e68 thread_start + 8 (:-1)

Thread 4:
0   libsystem_kernel.dylib          0x00000001cb503a2c __semwait_signal + 8 (:-1)
1   libsystem_c.dylib               0x000000019ea040e4 nanosleep + 220 (nanosleep.c:104)
2   libsystem_c.dylib               0x000000019ea18388 sleep + 52 (sleep.c:62)
3   Application                     0x0000000102a9db74 monitorCachedData + 676 (SentryCrashCachedData.c:144)
4   libsystem_pthread.dylib         0x00000002052719ac _pthread_start + 148 (pthread.c:891)
5   libsystem_pthread.dylib         0x0000000205270e68 thread_start + 8 (:-1)

Thread 5 name:
Thread 5:
0   libsystem_kernel.dylib          0x00000001cb5034a0 mach_msg_trap + 8 (:-1)
1   libsystem_kernel.dylib          0x00000001cb503ae4 mach_msg + 76 (mach_msg.c:119)
2   libsystem_kernel.dylib          0x00000001cb50fa44 thread_suspend + 96 (thread_actUser.c:1016)
3   Application                     0x0000000102a99720 handleExceptions + 128 (SentryCrashMonitor_MachException.c:258)
4   libsystem_pthread.dylib         0x00000002052719ac _pthread_start + 148 (pthread.c:891)
5   libsystem_pthread.dylib         0x0000000205270e68 thread_start + 8 (:-1)

Thread 6 name:
Thread 6:
0   libsystem_kernel.dylib          0x00000001cb5034a0 mach_msg_trap + 8 (:-1)
1   libsystem_kernel.dylib          0x00000001cb503b70 mach_msg + 216 (mach_msg.c:137)
2   Application                     0x0000000102a9974c handleExceptions + 172 (SentryCrashMonitor_MachException.c:266)
3   libsystem_pthread.dylib         0x00000002052719ac _pthread_start + 148 (pthread.c:891)
4   libsystem_pthread.dylib         0x0000000205270e68 thread_start + 8 (:-1)

Thread 7 name:
Thread 7:
0   libsystem_kernel.dylib          0x00000001cb503a2c __semwait_signal + 8 (:-1)
1   libsystem_c.dylib               0x000000019ea040e4 nanosleep + 220 (nanosleep.c:104)
2   Foundation                      0x00000001950e7ce8 +[NSThread sleepForTimeInterval:] + 160 (NSThread.m:504)
3   Application                     0x0000000102a40220 -[SentryANRTracker detectANRs] + 448 (SentryANRTracker.m:75)
4   Foundation                      0x00000001950d541c __NSThread__start__ + 808 (NSThread.m:972)
5   libsystem_pthread.dylib         0x00000002052719ac _pthread_start + 148 (pthread.c:891)
6   libsystem_pthread.dylib         0x0000000205270e68 thread_start + 8 (:-1)

Thread 8 name:
Thread 8:
0   libboringssl.dylib              0x00000001adece2c0 bssl::ssl_send_alert_impl(ssl_st*, int, int) + 152 (s3_pkt.cc:417)
1   libboringssl.dylib              0x00000001aded9ad8 SSL_shutdown + 204 (ssl_lib.cc:1152)
2   libboringssl.dylib              0x00000001ade8bf5c boringssl_session_disconnect + 76 (boringssl_session.m:506)
3   libboringssl.dylib              0x00000001ade94a88 nw_protocol_boringssl_disconnect + 96 (protocol_boringssl.m:1346)
4   libnetwork.dylib                0x0000000194563020 -[NWConcrete_nw_endpoint_flow cancelWithHandler:forced:] + 304 (endpoint_flow.m:236)
5   libnetwork.dylib                0x000000019469ff58 nw_endpoint_handler_cancel + 1108 (endpoint_handler.m:1042)
6   libnetwork.dylib                0x000000019461ad74 __nw_connection_cancel_inner_block_invoke + 1168 (connection.m:2525)
7   libnetwork.dylib                0x00000001946274c0 nw_connection_cancel + 296 (connection.m:167)
8   libquic.dylib                   0x0000000204b62204 quic_drain_connection + 920 (protocol_quic.c:2441)
9   libquic.dylib                   0x0000000204b8cb90 quic_idle_timeout_fired + 1492 (protocol_quic.c:2134)
10  libquic.dylib                   0x0000000204b82e64 quic_timer_run + 220 (quic_timer.c:197)
11  libnetwork.dylib                0x0000000194afe238 __nw_protocol_instance_schedule_wakeup_block_invoke + 64 (protocol_implementation.m:4770)
12  libnetwork.dylib                0x00000001947749e0 __nw_context_reset_timer_block_with_time_block_invoke + 228 (context.m:1820)
13  libdispatch.dylib               0x0000000193574a30 _dispatch_client_callout + 20 (object.m:560)
14  libdispatch.dylib               0x0000000193577eec _dispatch_continuation_pop + 500 (inline_internal.h:2622)
15  libdispatch.dylib               0x000000019358b13c _dispatch_source_invoke + 1596 (source.c:596)
16  libdispatch.dylib               0x000000019357df80 _dispatch_workloop_invoke + 1784 (inline_internal.h:0)
17  libdispatch.dylib               0x0000000193587500 _dispatch_workloop_worker_thread + 648 (queue.c:6732)
18  libsystem_pthread.dylib         0x00000002052710bc _pthread_wqthread + 288 (pthread.c:2599)
19  libsystem_pthread.dylib         0x0000000205270e5c start_wqthread + 8 (:-1)

Thread 9 name:
Thread 9:
0   libsystem_kernel.dylib          0x00000001cb5034a0 mach_msg_trap + 8 (:-1)
1   libsystem_kernel.dylib          0x00000001cb503ae4 mach_msg + 76 (mach_msg.c:119)
2   CoreFoundation                  0x000000019387ad30 __CFRunLoopServiceMachPort + 372 (CFRunLoop.c:2646)
3   CoreFoundation                  0x000000019387f1bc __CFRunLoopRun + 1180 (CFRunLoop.c:3000)
4   CoreFoundation                  0x0000000193892bc8 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3268)
5   CFNetwork                       0x000000019430f1dc +[__CFN_CoreSchedulingSetRunnable _run:] + 472 (CoreSchedulingSet.mm:1372)
6   Foundation                      0x00000001950d541c __NSThread__start__ + 808 (NSThread.m:972)
7   libsystem_pthread.dylib         0x00000002052719ac _pthread_start + 148 (pthread.c:891)
8   libsystem_pthread.dylib         0x0000000205270e68 thread_start + 8 (:-1)

Thread 10 name:
Thread 10:
0   libsystem_kernel.dylib          0x00000001cb5034a0 mach_msg_trap + 8 (:-1)
1   libsystem_kernel.dylib          0x00000001cb503ae4 mach_msg + 76 (mach_msg.c:119)
2   CoreFoundation                  0x000000019387ad30 __CFRunLoopServiceMachPort + 372 (CFRunLoop.c:2646)
3   CoreFoundation                  0x000000019387f1bc __CFRunLoopRun + 1180 (CFRunLoop.c:3000)
4   CoreFoundation                  0x0000000193892bc8 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3268)
5   Foundation                      0x0000000195085444 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 236 (NSRunLoop.m:373)
6   Intercom                        0x00000001041bc008 -[IntercomSDK__SRRunLoopThread main] + 252
7   Foundation                      0x00000001950d541c __NSThread__start__ + 808 (NSThread.m:972)
8   libsystem_pthread.dylib         0x00000002052719ac _pthread_start + 148 (pthread.c:891)
9   libsystem_pthread.dylib         0x0000000205270e68 thread_start + 8 (:-1)

Thread 11 name:
Thread 11:
0   libsystem_kernel.dylib          0x00000001cb504164 select$DARWIN_EXTSN + 8 (:-1)
1   CoreFoundation                  0x000000019391eb68 __CFSocketManager + 644 (CFSocket.c:1343)
2   libsystem_pthread.dylib         0x00000002052719ac _pthread_start + 148 (pthread.c:891)
3   libsystem_pthread.dylib         0x0000000205270e68 thread_start + 8 (:-1)

Thread 12:
0   libsystem_pthread.dylib         0x0000000205270e54 start_wqthread + 0 (:-1)

Thread 13:
0   libsystem_pthread.dylib         0x0000000205270e54 start_wqthread + 0 (:-1)

Thread 14:
0   libsystem_pthread.dylib         0x0000000205270e54 start_wqthread + 0 (:-1)

Thread 15:
0   libsystem_pthread.dylib         0x0000000205270e54 start_wqthread + 0 (:-1)

Thread 16:
0   libsystem_pthread.dylib         0x0000000205270e54 start_wqthread + 0 (:-1)

Thread 17:
0   libsystem_pthread.dylib         0x0000000205270e54 start_wqthread + 0 (:-1)

Thread 18:
0   libsystem_pthread.dylib         0x0000000205270e54 start_wqthread + 0 (:-1)

Thread 19:
0   libsystem_pthread.dylib         0x0000000205270e54 start_wqthread + 0 (:-1)

Thread 20:
0   libsystem_pthread.dylib         0x0000000205270e54 start_wqthread + 0 (:-1)

Thread 21 name:
Thread 21:
0   libxpc.dylib                    0x000000020529a828 _xpc_connection_call_event_handler + 136 (connection.c:810)
1   libxpc.dylib                    0x0000000205296d0c do_mach_notify_port_destroyed + 144 (connection.c:1696)
2   libxpc.dylib                    0x00000002052b8208 _Xmach_notify_port_destroyed + 84 (notifyServer.c:253)
3   libxpc.dylib                    0x00000002052b83bc notify_server + 92 (notifyServer.c:516)
4   libxpc.dylib                    0x0000000205299aec _xpc_connection_pass2mig + 172 (connection.c:1508)
5   libxpc.dylib                    0x000000020529ac20 _xpc_connection_mach_event + 920 (connection.c:1547)
6   libdispatch.dylib               0x0000000193574af0 _dispatch_client_callout4 + 20 (object.m:600)
7   libdispatch.dylib               0x0000000193590b2c _dispatch_mach_msg_invoke + 464 (mach.c:2418)
8   libdispatch.dylib               0x000000019357c000 _dispatch_lane_serial_drain + 376 (inline_internal.h:0)
9   libdispatch.dylib               0x000000019359184c _dispatch_mach_invoke + 456 (mach.c:2740)
10  libdispatch.dylib               0x000000019357c000 _dispatch_lane_serial_drain + 376 (inline_internal.h:0)
11  libdispatch.dylib               0x000000019357cc80 _dispatch_lane_invoke + 392 (queue.c:3944)
12  libdispatch.dylib               0x0000000193587500 _dispatch_workloop_worker_thread + 648 (queue.c:6732)
13  libsystem_pthread.dylib         0x00000002052710bc _pthread_wqthread + 288 (pthread.c:2599)
14  libsystem_pthread.dylib         0x0000000205270e5c start_wqthread + 8 (:-1)

Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000000   x1: 0x0000000000000000   x2: 0x0000000000000000   x3: 0x0000000000000000
    x4: 0x00000001ac74c0f5   x5: 0x000000016d4a7f20   x6: 0x000000000000006e   x7: 0x0000000000000000
    x8: 0xc69fab57a3597269   x9: 0xc69fab56a18577e9  x10: 0x0000000000000200  x11: 0x000000000000000b
   x12: 0x000000000000000b  x13: 0x0000000193c4aa9f  x14: 0x00000001ac74c11b  x15: 0x0000000000000000
   x16: 0x0000000000000148  x17: 0x0000000102dc0580  x18: 0x0000000000000000  x19: 0x0000000000000006
   x20: 0x0000000000000103  x21: 0x0000000102dc0660  x22: 0x00000002802d83e0  x23: 0x0000000103e5dee0
   x24: 0x0000000280eb5770  x25: 0x0000000200000003  x26: 0x0000000000000001  x27: 0x0000000000001400
   x28: 0x0000000000000000   fp: 0x000000016d4a7e90   lr: 0x00000002052773bc
    sp: 0x000000016d4a7e70   pc: 0x00000001cb509b38 cpsr: 0x40001000
   esr: 0x56000080  Address size fault

Binary Images:
0x102954000 - 0x102b67fff Application arm64  <b9ffb35526fd3bde9b43f1c80627ca6d> /private/var/containers/Bundle/Application/55921F66-6A8B-4523-AAB3-4B85715B90C4/Application.app/Application
0x102d54000 - 0x102dabfff dyld arm64e  <66e1fb2668f8379ba052eb8b8291b5e1> /usr/lib/dyld
0x10411c000 - 0x1043a3fff Intercom arm64  <97c5fb2d3c3d3fe5b90a2180a2c2ccbc> /private/var/containers/Bundle/Application/55921F66-6A8B-4523-AAB3-4B85715B90C4/Application.app/Frameworks/Intercom.framework/Intercom
0x193571000 - 0x1935b6fff libdispatch.dylib arm64e  <e3ea4f635d11342aaf199f58dbc8e259> /usr/lib/system/libdispatch.dylib
0x193874000 - 0x193cc9fff CoreFoundation arm64e  <6b22dd8135853be6bc77ba19810ec0f2> /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
0x194097000 - 0x194558fff CFNetwork arm64e  <106410ffdd4f3527ad531980fe8b0ddd> /System/Library/Frameworks/CFNetwork.framework/CFNetwork
0x194559000 - 0x194fedfff libnetwork.dylib arm64e  <0dbe8d5848823c66b0310239c020ee4c> /usr/lib/libnetwork.dylib
0x19506c000 - 0x195376fff Foundation arm64e  <ee1abaf23d7137fb906715aa79528619> /System/Library/Frameworks/Foundation.framework/Foundation
0x195cf2000 - 0x19758ffff UIKitCore arm64e  <137a95aada6d332cbc01e13bb9b6e317> /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore
0x19b4ad000 - 0x19c544fff SwiftUI arm64e  <6ab6407f39eb3fb393d55e0c55af3a2d> /System/Library/Frameworks/SwiftUI.framework/SwiftUI
0x19e9ff000 - 0x19ea7efff libsystem_c.dylib arm64e  <86a1a24ace353769ba6960f28353281e> /usr/lib/system/libsystem_c.dylib
0x1ac627000 - 0x1ac663fff libobjc.A.dylib arm64e  <f6368be9109b3405b282624040529afd> /usr/lib/libobjc.A.dylib
0x1ac737000 - 0x1ac74efff libc++abi.dylib arm64e  <d00067b20a7a3cb9b4d407b160da261b> /usr/lib/libc++abi.dylib
0x1ade86000 - 0x1adf47fff libboringssl.dylib arm64e  <d912c7bbbb13308cab0130c67ab254c9> /usr/lib/libboringssl.dylib
0x1af9fd000 - 0x1afa05fff GraphicsServices arm64e  <a094e7b51d4037c5902756d86988ec4b> /System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices
0x1b3a19000 - 0x1b3a23fff libsystem_notify.dylib arm64e  <252db8f9aaef333ba181d492e14411b2> /usr/lib/system/libsystem_notify.dylib
0x1cb502000 - 0x1cb537fff libsystem_kernel.dylib arm64e  <1fb39303587b320eaeb8e51a54c8a4a9> /usr/lib/system/libsystem_kernel.dylib
0x204b4d000 - 0x204c0afff libquic.dylib arm64e  <852ce208b7dc3b72884bbc1f0a02c33d> /usr/lib/libquic.dylib
0x205270000 - 0x20527bfff libsystem_pthread.dylib arm64e  <adc41700002e3a2bb4a1eb5fbf575770> /usr/lib/system/libsystem_pthread.dylib
0x20528b000 - 0x2052c7fff libxpc.dylib arm64e  <b183213379dc3e42b704ef71f75a577e> /usr/lib/system/libxpc.dylib

EOF


问:
Cannot get Forge viewer measures labels in screenshot image
I am using the following code to take a screenshot out of the 3d viewer from Forge, I need to be able to get there the possible markups the user did or the measurments.

```<code>                viewer.loadExtension('Autodesk.Viewing.MarkupsCore').then(function (markupCore) {

                // load the markups
                // markupCore.show();
                // markupCore.loadMarkups(markupSVG, "layerName");

                // ideally should also restore state of Viewer for this markup

                // prepare to render the markups
                var canvas = document.getElementById('snapshot');
                canvas.width = viewer.container.clientWidth;
                canvas.height = viewer.container.clientHeight;
                var ctx = canvas.getContext('2d');
                ctx.clearRect(0, 0, canvas.width, canvas.height);
                ctx.drawImage(screenshot, 0, 0, canvas.width, canvas.height);
                try{
                    markupCore.renderToCanvas(ctx);
                }catch(error){
                        //)
                }

                // hide the markups
                // markupCore.hide();
            });
</code>```

This is working great for markups and for measurements but cannot get the labels of the measurements, is this possible? how?

Body:
I am using the following code to take a screenshot out of the 3d viewer from Forge, I need to be able to get there the possible markups the user did or the measurments.

                viewer.loadExtension('Autodesk.Viewing.MarkupsCore').then(function (markupCore) {

                // load the markups
                // markupCore.show();
                // markupCore.loadMarkups(markupSVG, "layerName");

                // ideally should also restore state of Viewer for this markup

                // prepare to render the markups
                var canvas = document.getElementById('snapshot');
                canvas.width = viewer.container.clientWidth;
                canvas.height = viewer.container.clientHeight;
                var ctx = canvas.getContext('2d');
                ctx.clearRect(0, 0, canvas.width, canvas.height);
                ctx.drawImage(screenshot, 0, 0, canvas.width, canvas.height);
                try{
                    markupCore.renderToCanvas(ctx);
                }catch(error){
                        //)
                }

                // hide the markups
                // markupCore.hide();
            });

This is working great for markups and for measurements but cannot get the labels of the measurements, is this possible? how?


问:
Blank page and the console showing me error message about routes
The client doesn't show me any problem but all I have is a blank page and an error message in the devtool that says Matched leaf route at location "/" does not have an element.

This means it will render an <Outlet /> with a null value by default resulting in an "empty" page." I know is a problem about the routes but I don't know what is it.

```<code>      <>
        <Routes>
          <Route
            path="/"
            exact
            render={(props) => {
              return (
                <>
                  <Hero merchant={merchant} />
                  { this.renderCartNav() }
                  {isCartVisible &&
                    <Cart
                      {...props}
                      cart={cart}
                      onUpdateCartQty={this.handleUpdateCartQty}
                      onRemoveFromCart={this.handleRemoveFromCart}
                      onEmptyCart={this.handleEmptyCart}
                    />
                  }
                  <ProductsList
                    {...props}
                    products={products}
                    onAddToCart={this.handleAddToCart}
                  />
                </>
              );
            }}
          />
          <Route
            path="/checkout"
            exact
            render={(props) => {
              return (
                <Checkout
                  {...props}
                  cart={cart}
                  onCaptureCheckout={this.handleCaptureCheckout}
                />
              )
            }}
          />
          <Route
            path="/confirmation"
            exact
            render={(props) => {
              if (!order) {
                return props.history.push('/');
              }
              return (
                <Confirmation
                  {...props}
                  order={order}
                  onBackToHome={() => window.localStorage.removeItem('order_receipt')}
                />
              )
            }}
          />
        </Routes>
      </>
    );
  }
};
</code>```

Body:
The client doesn't show me any problem but all I have is a blank page and an error message in the devtool that says Matched leaf route at location "/" does not have an element.

This means it will render an <Outlet /> with a null value by default resulting in an "empty" page." I know is a problem about the routes but I don't know what is it.

      <>
        <Routes>
          <Route
            path="/"
            exact
            render={(props) => {
              return (
                <>
                  <Hero merchant={merchant} />
                  { this.renderCartNav() }
                  {isCartVisible &&
                    <Cart
                      {...props}
                      cart={cart}
                      onUpdateCartQty={this.handleUpdateCartQty}
                      onRemoveFromCart={this.handleRemoveFromCart}
                      onEmptyCart={this.handleEmptyCart}
                    />
                  }
                  <ProductsList
                    {...props}
                    products={products}
                    onAddToCart={this.handleAddToCart}
                  />
                </>
              );
            }}
          />
          <Route
            path="/checkout"
            exact
            render={(props) => {
              return (
                <Checkout
                  {...props}
                  cart={cart}
                  onCaptureCheckout={this.handleCaptureCheckout}
                />
              )
            }}
          />
          <Route
            path="/confirmation"
            exact
            render={(props) => {
              if (!order) {
                return props.history.push('/');
              }
              return (
                <Confirmation
                  {...props}
                  order={order}
                  onBackToHome={() => window.localStorage.removeItem('order_receipt')}
                />
              )
            }}
          />
        </Routes>
      </>
    );
  }
};


问:
Rendering upscaled SVG with vector-effect: non-scaling-stroke on JS canvas in chrome results in border being too thick
I am trying to render a small SVG (width="3.0202789" height="2.5201435") on a canvas.
SVG file was created by importing some CAD render result into Inkscape, removing all unnecessary parts and clipping to the content so it contains weird transforms.
All paths have stroke-width of 1px and vector-effect set to non-scaling-stroke. As far as I understand SVG specs that shuould instruct the renderer to always keep stroke width at 1px in screen space units no matter of scale.
SVG is loaded into an  element then the the element's width and height are set to some sensible values.
It renders as intended in Firefox and using Node Canvas though in Chrome it looks like the ctx.drawImage method completely ignores the vector-effect="non-scaling-stroke" instruction and computes stroke-width in viewbox units. The upscaled  element is rendered as intended though:

Rendering results:

Firefox rendering (img on the left, canvas on the right)

Chrome rendering (img on the left, canvas on the right)

JSFiddle with a minimal example: https://jsfiddle.net/ucojz62n/

Chrome version used: Chromium 108.0.5359.124 (though the issue has been around for more than two years)

Firefox version used: 108.0 (though it worked great 2+ years ago as well)


问:
Permission denied when using 3 pvc with default storageClass in GCP
As can not use RMX mode directly , so I use 3 pvcs with default storage class for 3 pods.
But I can saw they are not working in the pod , or just 1 pvc worked as expected.
The pvc yaml as below , nothing special.I use get pvc then can see all the status are bound,but in the pod the error is "pod has unbound immediate PersistentVolumeClaims".

My understanding is , the pvc should be separate and independent even if use the same  storageClass.
The actual is pvc can not bounded in the pod , or only one pod can access the pvc ,the other still have errors.

```<code>kind: PersistentVolumeClaim
apiVersion: v1
metadata:
    name: demo-pvc
spec:
  accessModes:
    - ReadWriteOnce
  resources:
    requests:
      storage: 500Mi
</code>```

Body:
As can not use RMX mode directly , so I use 3 pvcs with default storage class for 3 pods.
But I can saw they are not working in the pod , or just 1 pvc worked as expected.
The pvc yaml as below , nothing special.I use get pvc then can see all the status are bound,but in the pod the error is "pod has unbound immediate PersistentVolumeClaims".

My understanding is , the pvc should be separate and independent even if use the same  storageClass.
The actual is pvc can not bounded in the pod , or only one pod can access the pvc ,the other still have errors.

kind: PersistentVolumeClaim
apiVersion: v1
metadata:
    name: demo-pvc
spec:
  accessModes:
    - ReadWriteOnce
  resources:
    requests:
      storage: 500Mi


问:
How to make Ubuntu bash script wait on password input when using scp command
I want to run a script that deletes a files on computer and copies over another file from a connected host using scp command

Here is the script:

```<code>#!/bin/bash
echo "Moving Production Folder Over"
cd ~
sudo rm -r Production
scp -r host@192.168.123.456:/home/user1/Documents/Production/file1 /home/user2/Production
</code>```

I would want to cd into the Production directory after it is copied over. How can I go about this? Thanks!

Body:
I want to run a script that deletes a files on computer and copies over another file from a connected host using scp command

Here is the script:

#!/bin/bash
echo "Moving Production Folder Over"
cd ~
sudo rm -r Production
scp -r host@192.168.123.456:/home/user1/Documents/Production/file1 /home/user2/Production

I would want to cd into the Production directory after it is copied over. How can I go about this? Thanks!


问:
Blazor Server App integrated with Azure AD: Public/Anonymous pages not working
I'm running a .net 6 core blazor server app.  Here's the situation.  Originally the whole site was to be protected using Azure Ad SSO.  Then arose a requirement to have some pages be publicly available.  I posted all the code examples in another forum so hopefully its okay to just link over to there so I don't have to type up the whole situation again - https://github.com/dotnet/aspnetcore/issues/45711

I followed an example I found online.  My public razor page will display, but if you look at the developer tools there are a few errors related to the Azure ad sso stuff.  Any clickable element on the razor page doesn't work because of the console errors. If I remove the azure ad sso code block from my Program.cs file, my public page runs just fine.

I tried declaring my 'Public' directory in my solution using  options.Conventions.AllowAnonymousToFolder("/Public") in my Program.cs file but that didn't do anything.

Any idea how to solve this?


问:
My Android studio App is not creating XL File in download folder in all mobiles
I have created an app which takes input and produces a XL file. There are some problems which are given below:

Problem 1. The file is created in the download folder of internal storage and can be seen by the file manager of droid max2 , but my laptop does show that file unless I reboot my mobile or move the file in another folder.

problem 2. This file is not created by motog9. motog9 has no sd card.

My Codes are given below;

```<code>

import android.Manifest;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.os.Environment;
import android.view.View;
import android.widget.EditText;

import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app.ActivityCompat;

import org.apache.poi.hssf.usermodel.HSSFCell;
import org.apache.poi.hssf.usermodel.HSSFRow;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;

import java.io.File;
import java.io.FileOutputStream;

public class MainActivity extends AppCompatActivity {

    private EditText editTextExcel;
    public File filePath = new File(Environment.getExternalStorageDirectory() + "/Download/mynew2.xlsx");

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE,
                Manifest.permission.READ_EXTERNAL_STORAGE}, PackageManager.PERMISSION_GRANTED);

        editTextExcel = findViewById(R.id.editText);
    }

    public void buttonCreateExcel(View view){
        HSSFWorkbook hssfWorkbook = new HSSFWorkbook();
        HSSFSheet hssfSheet = hssfWorkbook.createSheet("Custom Sheet");

        HSSFRow hssfRow = hssfSheet.createRow(0);
        HSSFCell hssfCell = hssfRow.createCell(0);

        hssfCell.setCellValue(editTextExcel.getText().toString());

        try {
            if (!filePath.exists()){
                filePath.createNewFile();
            }

            FileOutputStream fileOutputStream= new FileOutputStream(filePath);
            hssfWorkbook.write(fileOutputStream);
            fileOutputStream.flush();
            fileOutputStream.close();
            if (fileOutputStream!=null){
                fileOutputStream.close();
            }

        } catch (Exception e) {
            e.printStackTrace();
        }
    }

}
</code>```

If I do not use Download folder, the result is same.

Body:
I have created an app which takes input and produces a XL file. There are some problems which are given below:

Problem 1. The file is created in the download folder of internal storage and can be seen by the file manager of droid max2 , but my laptop does show that file unless I reboot my mobile or move the file in another folder.

problem 2. This file is not created by motog9. motog9 has no sd card.

My Codes are given below;

import android.Manifest;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.os.Environment;
import android.view.View;
import android.widget.EditText;

import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app.ActivityCompat;

import org.apache.poi.hssf.usermodel.HSSFCell;
import org.apache.poi.hssf.usermodel.HSSFRow;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;

import java.io.File;
import java.io.FileOutputStream;

public class MainActivity extends AppCompatActivity {

    private EditText editTextExcel;
    public File filePath = new File(Environment.getExternalStorageDirectory() + "/Download/mynew2.xlsx");

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE,
                Manifest.permission.READ_EXTERNAL_STORAGE}, PackageManager.PERMISSION_GRANTED);

        editTextExcel = findViewById(R.id.editText);
    }

    public void buttonCreateExcel(View view){
        HSSFWorkbook hssfWorkbook = new HSSFWorkbook();
        HSSFSheet hssfSheet = hssfWorkbook.createSheet("Custom Sheet");

        HSSFRow hssfRow = hssfSheet.createRow(0);
        HSSFCell hssfCell = hssfRow.createCell(0);

        hssfCell.setCellValue(editTextExcel.getText().toString());

        try {
            if (!filePath.exists()){
                filePath.createNewFile();
            }

            FileOutputStream fileOutputStream= new FileOutputStream(filePath);
            hssfWorkbook.write(fileOutputStream);
            fileOutputStream.flush();
            fileOutputStream.close();
            if (fileOutputStream!=null){
                fileOutputStream.close();
            }

        } catch (Exception e) {
            e.printStackTrace();
        }
    }

}

If I do not use Download folder, the result is same.


问:
Flyctl deploy fails setting up Kernel: not syncing: Attempted to kill init! exitcode=0x00000100
I am getting the following errors while deploying an app on fly.io using flyctl deploy.

I have no idea how to solve them or how to troubleshoot them.

Explanation
Explanation
Explanation

fly.toml:

```<code># fly.toml file generated for julius-goddard-full-stack-open-pokedex3 on 2022-12-22T15:06:25Z

app = "julius-goddard-full-stack-open-pokedex3"
kill_signal = "SIGINT"
kill_timeout = 5
processes = []

[build]
  image = "flyio/hellofly:latest"

[env]

[deploy]
  release_command = "npm run build"

[processes]
  app = "node app.js"

[experimental]
  allowed_public_ports = []
  auto_rollback = true

[[services]]
  http_checks = []
  internal_port = 8080
  processes = ["app"]
  protocol = "tcp"
  script_checks = []
  [services.concurrency]
    hard_limit = 25
    soft_limit = 20
    type = "connections"

  [[services.ports]]
    force_https = true
    handlers = ["http"]
    port = 80

  [[services.ports]]
    handlers = ["tls", "http"]
    port = 443

  [[services.tcp_checks]]
    grace_period = "1s"
    interval = "15s"
    restart_limit = 0
    timeout = "2
</code>```

s"

Body:
I am getting the following errors while deploying an app on fly.io using flyctl deploy.

I have no idea how to solve them or how to troubleshoot them.

Explanation
Explanation
Explanation

fly.toml:

# fly.toml file generated for julius-goddard-full-stack-open-pokedex3 on 2022-12-22T15:06:25Z

app = "julius-goddard-full-stack-open-pokedex3"
kill_signal = "SIGINT"
kill_timeout = 5
processes = []

[build]
  image = "flyio/hellofly:latest"

[env]

[deploy]
  release_command = "npm run build"

[processes]
  app = "node app.js"

[experimental]
  allowed_public_ports = []
  auto_rollback = true

[[services]]
  http_checks = []
  internal_port = 8080
  processes = ["app"]
  protocol = "tcp"
  script_checks = []
  [services.concurrency]
    hard_limit = 25
    soft_limit = 20
    type = "connections"

  [[services.ports]]
    force_https = true
    handlers = ["http"]
    port = 80

  [[services.ports]]
    handlers = ["tls", "http"]
    port = 443

  [[services.tcp_checks]]
    grace_period = "1s"
    interval = "15s"
    restart_limit = 0
    timeout = "2

s"


问:
Azkaban 3.44 conditional flow not working (including example on official documentation)
I'm try to use conditional flows on Azkaban. When I submit/upload my project inside web node I receive this error.

Validator Directory Flow reports errors: Error loading flow yaml file sample.flow:Cannot create property=nodes for JavaBean=NodeBean{name='null', config=null, dependsOn=null, type='null', nodes=null, trigger=null} in 'reader', line 1, column 1: nodes: ^ Cannot create property=condition for JavaBean=NodeBean{name='JobB', config=null, dependsOn=[JobA], type='command', nodes=null, trigger=null} in 'reader', line 7, column 4: - name: JobB ^ Unable to find property 'condition' on class: azkaban.project.NodeBean in 'reader', line 11, column 15: condition: ${JobA:param1} == 1 ^ in 'reader', line 2, column 2: - name: JobA ^

I have tried several to create different flows but it seems like a problem relating to the Keyword condition present inside the yaml file.

Questo è il flow di esempio presente anche sulla documentazione

`

```<code>nodes:
 - name: JobA
   type: command
   config:
     command: bash ./write_to_props.sh

 - name: JobB
   type: command
   dependsOn:
     - JobA
   config:
     command: echo “This is JobB.”
   condition: ${JobA:param1} == 1

 - name: JobC
   type: command
   dependsOn:
     - JobA
   config:
     command: echo “This is JobC.”
   condition: ${JobA:param1} == 2

 - name: JobD
   type: command
   dependsOn:
     - JobB
     - JobC
   config:
     command: pwd
   condition: one_success

</code>```

`

While this is the content of write_to_props.sh

`

```<code>echo '{"param1": "100"}' > $JOB_OUTPUT_PROP_FILE

</code>```

`

I expect that there are no syntactic errors as submissive to the Azkaban Web node and that the DAG is performed depending on the condition inserted.

Body:
I'm try to use conditional flows on Azkaban. When I submit/upload my project inside web node I receive this error.

Validator Directory Flow reports errors: Error loading flow yaml file sample.flow:Cannot create property=nodes for JavaBean=NodeBean{name='null', config=null, dependsOn=null, type='null', nodes=null, trigger=null} in 'reader', line 1, column 1: nodes: ^ Cannot create property=condition for JavaBean=NodeBean{name='JobB', config=null, dependsOn=[JobA], type='command', nodes=null, trigger=null} in 'reader', line 7, column 4: - name: JobB ^ Unable to find property 'condition' on class: azkaban.project.NodeBean in 'reader', line 11, column 15: condition: ${JobA:param1} == 1 ^ in 'reader', line 2, column 2: - name: JobA ^

I have tried several to create different flows but it seems like a problem relating to the Keyword condition present inside the yaml file.

Questo è il flow di esempio presente anche sulla documentazione

`

nodes:
 - name: JobA
   type: command
   config:
     command: bash ./write_to_props.sh

 - name: JobB
   type: command
   dependsOn:
     - JobA
   config:
     command: echo “This is JobB.”
   condition: ${JobA:param1} == 1

 - name: JobC
   type: command
   dependsOn:
     - JobA
   config:
     command: echo “This is JobC.”
   condition: ${JobA:param1} == 2

 - name: JobD
   type: command
   dependsOn:
     - JobB
     - JobC
   config:
     command: pwd
   condition: one_success

`

While this is the content of write_to_props.sh

`

echo '{"param1": "100"}' > $JOB_OUTPUT_PROP_FILE

`

I expect that there are no syntactic errors as submissive to the Azkaban Web node and that the DAG is performed depending on the condition inserted.


问:
Time complexity of decreasing elements in Math.max() in for-loop?
How do you assess the time complexity when the values continue to decrease? In this example, let's assume the length of the array can be any length so the length of the input array is of length n;

The for-loop is O(n) complexity

Math.max() in javascript is O(m) for the number of elements to assess (?)

So the total time complexity is O(n*m)?

Or do you assume only the worst case when m===n, so the time complexity is O(n^2)?

Contrived example below:

const arr = [1,2,3,4,5];
const n = arr.length;

for (let i=0; i<n; i++) {
   const max = Math.max(...arr);
   arr.pop();
   console.log({arr,max});
}
```


问:
SQL - How to group by and take first row of columns?
I have the following SQL query

```<code>select SI.C_NUMBER as 'Invoice Number'
,SI.C_DATE as 'Date'
, CU.C_NAME as 'Customer'
, SI.C_ALTERNATEREFERENCE as 'Customer Order Number'
, SIL.C_NETAMOUNT as 'Items Net'
,MAN.C_NAME as 'Manufacturer'
from T_SALESINVOICE as SI WITH(NOLOCK)
inner join T_SALESINVOICE_LINE as SIL WITH(NOLOCK) on SIL.C__OWNER_ = SI.C_ID
inner join T_PRODUCT as PR WITH(NOLOCK) on PR.C_ID = SIL.C_PRODUCT
inner join T_MANUFACTURER as MAN WITH(NOLOCK) on MAN.C_ID = PR.C_MANUFACTURER
inner join T_CUSTOMER as CU WITH(NOLOCK) on CU.C_ID = SI.C_CUSTOMER
where CU.C_NAME = 'TEST CUSTOMER'

</code>```

Which works perfectly, but I now need to Group by Invoice number, while taking the first result of Manufacturer, the reason for this is we have multiple item lines per invoice. Additionally, I need the Items Net to be the total of the 3 lines, while Manufacturer is only the first row.

So far I've tried;

```<code>select SI.C_NUMBER as 'Invoice Number'
,SI.C_DATE as 'Date'
, CU.C_NAME as 'Customer'
, SI.C_ALTERNATEREFERENCE as 'Customer Order Number'
, SUM(SIL.C_NETAMOUNT) as 'Items Net'
,MAN.C_NAME as 'Manufacturer'
from (
select SI.C_NUMBER
, SI.C_DATE
, CU.C_NAME
, SI.C_ALTERNATEREFERENCE
, SUM(SIL.C_NETAMOUNT)
, MAN.C_NAME
,row_number() over(partition by SI.C_NUMBER order by SI.C_DATE desc) as roworder
from T_SALESINVOICE as SI WITH(NOLOCK)
inner join T_SALESINVOICE_LINE as SIL WITH(NOLOCK) on SIL.C__OWNER_ = SI.C_ID
inner join T_PRODUCT as PR WITH(NOLOCK) on PR.C_ID = SIL.C_PRODUCT
inner join T_MANUFACTURER as MAN WITH(NOLOCK) on MAN.C_ID = PR.C_MANUFACTURER
inner join T_CUSTOMER as CU WITH(NOLOCK) on CU.C_ID = SI.C_CUSTOMER
) temp
where roworder = 1
and CU.C_NAME = 'TEST CUSTOMER'
</code>```

But unfortunately gee the error "Column 'T_SALESINVOICE.C_NUMBER' is invalid in the select list because it is not contained in either an aggregate function of the GROUP BY clause."
I know almost nothing of SQL, started trying to mess with this today.

Edit:
Example of current result;

Invoice Number
Customer
Order Number
Items Net
Manufacturer

1234
Test
PO999
659.00
Dell

1234
Test
PO999
123.00
HP

1235
Test
PO998
451.00
Dell

1236
Test
PO997
871.00
Lenovo

1236
Test
PO997
253.00
Dell

Desired result;

Invoice Number
Customer
Order Number
Items Net
Manufacturer

1234
Test
PO999
782.00
Dell

1235
Test
PO998
451.00
Dell

1236
Test
PO997
1124.00
Lenovo

Hope this clears things up!

Body:
I have the following SQL query

select SI.C_NUMBER as 'Invoice Number'
,SI.C_DATE as 'Date'
, CU.C_NAME as 'Customer'
, SI.C_ALTERNATEREFERENCE as 'Customer Order Number'
, SIL.C_NETAMOUNT as 'Items Net'
,MAN.C_NAME as 'Manufacturer'
from T_SALESINVOICE as SI WITH(NOLOCK)
inner join T_SALESINVOICE_LINE as SIL WITH(NOLOCK) on SIL.C__OWNER_ = SI.C_ID
inner join T_PRODUCT as PR WITH(NOLOCK) on PR.C_ID = SIL.C_PRODUCT
inner join T_MANUFACTURER as MAN WITH(NOLOCK) on MAN.C_ID = PR.C_MANUFACTURER
inner join T_CUSTOMER as CU WITH(NOLOCK) on CU.C_ID = SI.C_CUSTOMER
where CU.C_NAME = 'TEST CUSTOMER'

Which works perfectly, but I now need to Group by Invoice number, while taking the first result of Manufacturer, the reason for this is we have multiple item lines per invoice. Additionally, I need the Items Net to be the total of the 3 lines, while Manufacturer is only the first row.

So far I've tried;

select SI.C_NUMBER as 'Invoice Number'
,SI.C_DATE as 'Date'
, CU.C_NAME as 'Customer'
, SI.C_ALTERNATEREFERENCE as 'Customer Order Number'
, SUM(SIL.C_NETAMOUNT) as 'Items Net'
,MAN.C_NAME as 'Manufacturer'
from (
select SI.C_NUMBER
, SI.C_DATE
, CU.C_NAME
, SI.C_ALTERNATEREFERENCE
, SUM(SIL.C_NETAMOUNT)
, MAN.C_NAME
,row_number() over(partition by SI.C_NUMBER order by SI.C_DATE desc) as roworder
from T_SALESINVOICE as SI WITH(NOLOCK)
inner join T_SALESINVOICE_LINE as SIL WITH(NOLOCK) on SIL.C__OWNER_ = SI.C_ID
inner join T_PRODUCT as PR WITH(NOLOCK) on PR.C_ID = SIL.C_PRODUCT
inner join T_MANUFACTURER as MAN WITH(NOLOCK) on MAN.C_ID = PR.C_MANUFACTURER
inner join T_CUSTOMER as CU WITH(NOLOCK) on CU.C_ID = SI.C_CUSTOMER
) temp
where roworder = 1
and CU.C_NAME = 'TEST CUSTOMER'

But unfortunately gee the error "Column 'T_SALESINVOICE.C_NUMBER' is invalid in the select list because it is not contained in either an aggregate function of the GROUP BY clause."
I know almost nothing of SQL, started trying to mess with this today.

Edit:
Example of current result;

Invoice Number
Customer
Order Number
Items Net
Manufacturer

1234
Test
PO999
659.00
Dell

1234
Test
PO999
123.00
HP

1235
Test
PO998
451.00
Dell

1236
Test
PO997
871.00
Lenovo

1236
Test
PO997
253.00
Dell

Desired result;

Invoice Number
Customer
Order Number
Items Net
Manufacturer

1234
Test
PO999
782.00
Dell

1235
Test
PO998
451.00
Dell

1236
Test
PO997
1124.00
Lenovo

Hope this clears things up!


问:
How can I find out the name of the screen that navigation.goBack() will return to?
As you know goBack sends you back to the previous screen. So where does this keep the information of the screen it will go back to? How can I find out the name of the screen that goBack will return to?

const InfoScreen = ({ navigation }) => {

    return (
        <SafeAreaView style={styles.safeArea}>
            <AppHeader onPressLeft={() => {
                navigation.goBack()
Ï            }}
            />
        </SafeAreaView>
    )
}

export default InfoScreen```


问:
When uploading multiple images then without saving images 403 error appered
I'm uploading multiple images on server but instead of saving images in database and folder a 403 error occured. so please help me how to resolve it.

This is the Form & Controller code:

```<code><form method="POST" action="{{ route('AddImages') }}" id="smart" enctype="multipart/form-data">
                @csrf
                <input type="hidden" name="id" value="{{$id}}">
                <div class="form-body">
                    <div class="form-row">
                        <div class="section col-6">
                            <label for="bname" class="field-label">Image</label>
                            <label for="bname" class="field prepend-icon">
                                <input type="file" name="image[]" class="gui-input" multiple required>
                                <span class="field-icon"><i class="fas fa-circle"></i></span>
                            </label>
                        </div><!-- end section -->
                    </div>
                </div><!-- end .form-body section -->

                <div class="form-footer">
                    <button type="submit" class="button btn-primary"> Save</button>
                    <button type="reset" class="button"> Cancel</button>
                </div><!-- end .form-footer section -->
            </form>
</code>```
```<code>        $images = $request->file('image');
        $num = 0;

        foreach ($images as $im) {
            $files = $im->getClientOriginalExtension();

            foreach ($request->image as $file) {
                $image = new ClassImage();
                $file_name = time() . rand(1, 999) . '.' . $file->getClientOriginalExtension();
                $path = base_path('backend/images/class_images/');
                $image->image = $file_name;
                $image->class_id = $request->id;
                try {
                    $file->move($path, $file_name);
                    $image->save();
                    $num++;
                } catch (Exception $e) {
                    echo $e;
                }
            }
        }
        return redirect('ShowImages/'.$request->id);
</code>```

I don't know what is the error in this code because on local server this code working fine but on server the problem 403 (Access denied) Occured.

Body:
I'm uploading multiple images on server but instead of saving images in database and folder a 403 error occured. so please help me how to resolve it.

This is the Form & Controller code:

<form method="POST" action="{{ route('AddImages') }}" id="smart" enctype="multipart/form-data">
                @csrf
                <input type="hidden" name="id" value="{{$id}}">

                            Image

                                <input type="file" name="image[]" class="gui-input" multiple required>

                    <button type="submit" class="button btn-primary"> Save</button>
                    <button type="reset" class="button"> Cancel</button>

            </form>

        $images = $request->file('image');
        $num = 0;

        foreach ($images as $im) {
            $files = $im->getClientOriginalExtension();

            foreach ($request->image as $file) {
                $image = new ClassImage();
                $file_name = time() . rand(1, 999) . '.' . $file->getClientOriginalExtension();
                $path = base_path('backend/images/class_images/');
                $image->image = $file_name;
                $image->class_id = $request->id;
                try {
                    $file->move($path, $file_name);
                    $image->save();
                    $num++;
                } catch (Exception $e) {
                    echo $e;
                }
            }
        }
        return redirect('ShowImages/'.$request->id);

I don't know what is the error in this code because on local server this code working fine but on server the problem 403 (Access denied) Occured.