问:
Unable to build my react-native IOS App (Crash)
I've been trying for 1 week to build my app to put it on the App Store but it doesn't work because the app crashes in TestFlight.

I developed this application in react-native, tests were done thanks to expo. All the tests were done on expo and everything works, the application crashes only when I build it and test it with TestFlight

Here is my crash report :
`

```<code>Incident Identifier: 10796AEF-CDF7-4D86-9DB1-18405F8A9C61
Hardware Model:      iPhone13,4
Process:             SorayaBeachResale [2567]
Path:                /private/var/containers/Bundle/Application/33474E86-7EB5-4FF6-A83E-59B2582BD8B1/SorayaBeachResale.app/SorayaBeachResale
Identifier:          com.sorayabeach.resale
Version:             1.0.0 (6)
AppStoreTools:       14C17
AppVariant:          1:iPhone13,4:15
Beta:                YES
Code Type:           ARM-64 (Native)
Role:                Foreground
Parent Process:      launchd [1]
Coalition:           com.sorayabeach.resale [766]

Date/Time:           2022-12-26 14:38:15.6109 +0100
Launch Time:         2022-12-26 14:38:15.0097 +0100
OS Version:          iPhone OS 15.7.1 (19H115)
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:  6

Last Exception Backtrace:
0   CoreFoundation                  0x1894c91ec __exceptionPreprocess + 220 (NSException.m:200)
1   libobjc.A.dylib                 0x1a21fe744 objc_exception_throw + 60 (objc-exception.mm:565)
2   SorayaBeachResale               0x10480bfe0 -[EXUpdatesAppController throwException:] + 24 (EXUpdatesAppController.m:485)
3   SorayaBeachResale               0x10481d7e4 -[EXUpdatesErrorRecovery _crash] + 768 (EXUpdatesErrorRecovery.m:268)
4   SorayaBeachResale               0x10481d02c -[EXUpdatesErrorRecovery _runNextTask] + 200 (EXUpdatesErrorRecovery.m:184)
5   libdispatch.dylib               0x18912ee6c _dispatch_call_block_and_release + 32 (init.c:1517)
6   libdispatch.dylib               0x189130a30 _dispatch_client_callout + 20 (object.m:560)
7   libdispatch.dylib               0x189138124 _dispatch_lane_serial_drain + 668 (inline_internal.h:2622)
8   libdispatch.dylib               0x189138c80 _dispatch_lane_invoke + 392 (queue.c:3944)
9   libdispatch.dylib               0x189143500 _dispatch_workloop_worker_thread + 648 (queue.c:6732)
10  libsystem_pthread.dylib         0x1fae310bc _pthread_wqthread + 288 (pthread.c:2599)
11  libsystem_pthread.dylib         0x1fae30e5c start_wqthread + 8 (:-1)

Kernel Triage:
VM - pmap_enter failed with resource shortage

Thread 0 name:
Thread 0:
0   libsystem_kernel.dylib          0x00000001c10c64a0 mach_msg_trap + 8 (:-1)
1   libsystem_kernel.dylib          0x00000001c10c6ae4 mach_msg + 76 (mach_msg.c:119)
2   CoreFoundation                  0x0000000189436c70 __CFRunLoopServiceMachPort + 372 (CFRunLoop.c:2646)
3   CoreFoundation                  0x000000018943b0fc __CFRunLoopRun + 1180 (CFRunLoop.c:3000)
4   CoreFoundation                  0x000000018944eb0c CFRunLoopRunSpecific + 600 (CFRunLoop.c:3268)
5   GraphicsServices                0x00000001a55bf374 GSEventRunModal + 164 (GSEvent.c:2200)
6   UIKitCore                       0x000000018bdc5b58 -[UIApplication _run] + 1100 (UIApplication.m:3511)
7   UIKitCore                       0x000000018bb47098 UIApplicationMain + 364 (UIApplication.m:5064)
8   SorayaBeachResale               0x00000001047de7c0 main + 80 (main.m:7)
9   dyld                            0x0000000104e41da4 start + 520 (dyldMain.cpp:879)

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

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

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

Thread 4 name:
Thread 4:
0   libsystem_kernel.dylib          0x00000001c10c64a0 mach_msg_trap + 8 (:-1)
1   libsystem_kernel.dylib          0x00000001c10c6ae4 mach_msg + 76 (mach_msg.c:119)
2   CoreFoundation                  0x0000000189436c70 __CFRunLoopServiceMachPort + 372 (CFRunLoop.c:2646)
3   CoreFoundation                  0x000000018943b0fc __CFRunLoopRun + 1180 (CFRunLoop.c:3000)
4   CoreFoundation                  0x000000018944eb0c CFRunLoopRunSpecific + 600 (CFRunLoop.c:3268)
5   Foundation                      0x000000018ac413f4 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 236 (NSRunLoop.m:373)
6   Foundation                      0x000000018ac82dcc -[NSRunLoop(NSRunLoop) runUntilDate:] + 92 (NSRunLoop.m:420)
7   UIKitCore                       0x000000018bd3fcc4 -[UIEventFetcher threadMain] + 524 (UIEventFetcher.m:1167)
8   Foundation                      0x000000018ac913dc __NSThread__start__ + 808 (NSThread.m:972)
9   libsystem_pthread.dylib         0x00000001fae319ac _pthread_start + 148 (pthread.c:891)
10  libsystem_pthread.dylib         0x00000001fae30e68 thread_start + 8 (:-1)

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

Thread 6 name:
Thread 6 Crashed:
0   libsystem_kernel.dylib          0x00000001c10ccb38 __pthread_kill + 8 (:-1)
1   libsystem_pthread.dylib         0x00000001fae373bc pthread_kill + 268 (pthread.c:1668)
2   libsystem_c.dylib               0x00000001945de524 abort + 168 (abort.c:118)
3   libc++abi.dylib                 0x00000001a2309b7c abort_message + 132 (abort_message.cpp:78)
4   libc++abi.dylib                 0x00000001a22f99c4 demangling_terminate_handler() + 336 (cxa_default_handlers.cpp:71)
5   libobjc.A.dylib                 0x00000001a2204c68 _objc_terminate() + 144 (objc-exception.mm:701)
6   libc++abi.dylib                 0x00000001a2308f18 std::__terminate(void (*)()) + 20 (cxa_handlers.cpp:59)
7   libc++abi.dylib                 0x00000001a2308eb4 std::terminate() + 64 (cxa_handlers.cpp:88)
8   libdispatch.dylib               0x0000000189130a44 _dispatch_client_callout + 40 (object.m:563)
9   libdispatch.dylib               0x0000000189138124 _dispatch_lane_serial_drain + 668 (inline_internal.h:2622)
10  libdispatch.dylib               0x0000000189138c80 _dispatch_lane_invoke + 392 (queue.c:3944)
11  libdispatch.dylib               0x0000000189143500 _dispatch_workloop_worker_thread + 648 (queue.c:6732)
12  libsystem_pthread.dylib         0x00000001fae310bc _pthread_wqthread + 288 (pthread.c:2599)
13  libsystem_pthread.dylib         0x00000001fae30e5c start_wqthread + 8 (:-1)

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

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

Thread 9 name:
Thread 9:
0   libsystem_kernel.dylib          0x00000001c10c64a0 mach_msg_trap + 8 (:-1)
1   libsystem_kernel.dylib          0x00000001c10c6ae4 mach_msg + 76 (mach_msg.c:119)
2   CoreFoundation                  0x0000000189436c70 __CFRunLoopServiceMachPort + 372 (CFRunLoop.c:2646)
3   CoreFoundation                  0x000000018943b0fc __CFRunLoopRun + 1180 (CFRunLoop.c:3000)
4   CoreFoundation                  0x000000018944eb0c CFRunLoopRunSpecific + 600 (CFRunLoop.c:3268)
5   SorayaBeachResale               0x00000001048d4510 +[RCTCxxBridge runRunLoop] + 212 (RCTCxxBridge.mm:335)
6   Foundation                      0x000000018ac913dc __NSThread__start__ + 808 (NSThread.m:972)
7   libsystem_pthread.dylib         0x00000001fae319ac _pthread_start + 148 (pthread.c:891)
8   libsystem_pthread.dylib         0x00000001fae30e68 thread_start + 8 (:-1)

Thread 10 name:
Thread 10:
0   libsystem_kernel.dylib          0x00000001c10c6f24 __psynch_cvwait + 8 (:-1)
1   libsystem_pthread.dylib         0x00000001fae38298 _pthread_cond_wait + 1236 (pthread_cond.c:636)
2   JavaScriptCore                  0x0000000194780448 scavenger_thread_main + 1088 (pas_scavenger.c:135)
3   libsystem_pthread.dylib         0x00000001fae319ac _pthread_start + 148 (pthread.c:891)
4   libsystem_pthread.dylib         0x00000001fae30e68 thread_start + 8 (:-1)

Thread 11 name:
Thread 11:
0   libsystem_kernel.dylib          0x00000001c10c6f24 __psynch_cvwait + 8 (:-1)
1   libsystem_pthread.dylib         0x00000001fae38298 _pthread_cond_wait + 1236 (pthread_cond.c:636)
2   JavaScriptCore                  0x00000001946defb0 WTF::ParkingLot::parkConditionallyImpl(void const*, WTF::ScopedLambda<bool ()> const&, WTF::ScopedLambda<void ()> const&, WTF::TimeWithDynamicClockType const&) + 1844 (ThreadingPOSIX.cpp:622)
3   JavaScriptCore                  0x00000001946a3fa8 bool WTF::Condition::waitUntilUnchecked<WTF::Lock>(WTF::Lock&, WTF::TimeWithDynamicClockType const&) + 308 (ParkingLot.h:82)
4   JavaScriptCore                  0x00000001946a4430 WTF::Detail::CallableWrapper<WTF::AutomaticThread::start(WTF::AbstractLocker const&)::$_0, void>::call() + 260 (Condition.h:77)
5   JavaScriptCore                  0x0000000194700154 WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*) + 352 (Function.h:82)
6   JavaScriptCore                  0x0000000194702460 WTF::wtfThreadEntryPoint(void*) + 16 (ThreadingPOSIX.cpp:242)
7   libsystem_pthread.dylib         0x00000001fae319ac _pthread_start + 148 (pthread.c:891)
8   libsystem_pthread.dylib         0x00000001fae30e68 thread_start + 8 (:-1)

Thread 12 name:
Thread 12:
0   libsystem_kernel.dylib          0x00000001c10c6f24 __psynch_cvwait + 8 (:-1)
1   libsystem_pthread.dylib         0x00000001fae38298 _pthread_cond_wait + 1236 (pthread_cond.c:636)
2   JavaScriptCore                  0x00000001946defb0 WTF::ParkingLot::parkConditionallyImpl(void const*, WTF::ScopedLambda<bool ()> const&, WTF::ScopedLambda<void ()> const&, WTF::TimeWithDynamicClockType const&) + 1844 (ThreadingPOSIX.cpp:622)
3   JavaScriptCore                  0x00000001946a3fa8 bool WTF::Condition::waitUntilUnchecked<WTF::Lock>(WTF::Lock&, WTF::TimeWithDynamicClockType const&) + 308 (ParkingLot.h:82)
4   JavaScriptCore                  0x00000001946a4430 WTF::Detail::CallableWrapper<WTF::AutomaticThread::start(WTF::AbstractLocker const&)::$_0, void>::call() + 260 (Condition.h:77)
5   JavaScriptCore                  0x0000000194700154 WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*) + 352 (Function.h:82)
6   JavaScriptCore                  0x0000000194702460 WTF::wtfThreadEntryPoint(void*) + 16 (ThreadingPOSIX.cpp:242)
7   libsystem_pthread.dylib         0x00000001fae319ac _pthread_start + 148 (pthread.c:891)
8   libsystem_pthread.dylib         0x00000001fae30e68 thread_start + 8 (:-1)

Thread 13 name:
Thread 13:
0   libsystem_kernel.dylib          0x00000001c10c6f24 __psynch_cvwait + 8 (:-1)
1   libsystem_pthread.dylib         0x00000001fae38298 _pthread_cond_wait + 1236 (pthread_cond.c:636)
2   JavaScriptCore                  0x00000001946defb0 WTF::ParkingLot::parkConditionallyImpl(void const*, WTF::ScopedLambda<bool ()> const&, WTF::ScopedLambda<void ()> const&, WTF::TimeWithDynamicClockType const&) + 1844 (ThreadingPOSIX.cpp:622)
3   JavaScriptCore                  0x00000001946a3fa8 bool WTF::Condition::waitUntilUnchecked<WTF::Lock>(WTF::Lock&, WTF::TimeWithDynamicClockType const&) + 308 (ParkingLot.h:82)
4   JavaScriptCore                  0x00000001946a4430 WTF::Detail::CallableWrapper<WTF::AutomaticThread::start(WTF::AbstractLocker const&)::$_0, void>::call() + 260 (Condition.h:77)
5   JavaScriptCore                  0x0000000194700154 WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*) + 352 (Function.h:82)
6   JavaScriptCore                  0x0000000194702460 WTF::wtfThreadEntryPoint(void*) + 16 (ThreadingPOSIX.cpp:242)
7   libsystem_pthread.dylib         0x00000001fae319ac _pthread_start + 148 (pthread.c:891)
8   libsystem_pthread.dylib         0x00000001fae30e68 thread_start + 8 (:-1)

Thread 14 name:
Thread 14:
0   libsystem_kernel.dylib          0x00000001c10c6f24 __psynch_cvwait + 8 (:-1)
1   libsystem_pthread.dylib         0x00000001fae38298 _pthread_cond_wait + 1236 (pthread_cond.c:636)
2   JavaScriptCore                  0x00000001946defb0 WTF::ParkingLot::parkConditionallyImpl(void const*, WTF::ScopedLambda<bool ()> const&, WTF::ScopedLambda<void ()> const&, WTF::TimeWithDynamicClockType const&) + 1844 (ThreadingPOSIX.cpp:622)
3   JavaScriptCore                  0x00000001946a3fa8 bool WTF::Condition::waitUntilUnchecked<WTF::Lock>(WTF::Lock&, WTF::TimeWithDynamicClockType const&) + 308 (ParkingLot.h:82)
4   JavaScriptCore                  0x00000001946a4430 WTF::Detail::CallableWrapper<WTF::AutomaticThread::start(WTF::AbstractLocker const&)::$_0, void>::call() + 260 (Condition.h:77)
5   JavaScriptCore                  0x0000000194700154 WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*) + 352 (Function.h:82)
6   JavaScriptCore                  0x0000000194702460 WTF::wtfThreadEntryPoint(void*) + 16 (ThreadingPOSIX.cpp:242)
7   libsystem_pthread.dylib         0x00000001fae319ac _pthread_start + 148 (pthread.c:891)
8   libsystem_pthread.dylib         0x00000001fae30e68 thread_start + 8 (:-1)

Thread 15 name:
Thread 15:
0   libsystem_kernel.dylib          0x00000001c10c6f24 __psynch_cvwait + 8 (:-1)
1   libsystem_pthread.dylib         0x00000001fae38298 _pthread_cond_wait + 1236 (pthread_cond.c:636)
2   JavaScriptCore                  0x00000001946defb0 WTF::ParkingLot::parkConditionallyImpl(void const*, WTF::ScopedLambda<bool ()> const&, WTF::ScopedLambda<void ()> const&, WTF::TimeWithDynamicClockType const&) + 1844 (ThreadingPOSIX.cpp:622)
3   JavaScriptCore                  0x00000001946a3fa8 bool WTF::Condition::waitUntilUnchecked<WTF::Lock>(WTF::Lock&, WTF::TimeWithDynamicClockType const&) + 308 (ParkingLot.h:82)
4   JavaScriptCore                  0x00000001946a4430 WTF::Detail::CallableWrapper<WTF::AutomaticThread::start(WTF::AbstractLocker const&)::$_0, void>::call() + 260 (Condition.h:77)
5   JavaScriptCore                  0x0000000194700154 WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*) + 352 (Function.h:82)
6   JavaScriptCore                  0x0000000194702460 WTF::wtfThreadEntryPoint(void*) + 16 (ThreadingPOSIX.cpp:242)
7   libsystem_pthread.dylib         0x00000001fae319ac _pthread_start + 148 (pthread.c:891)
8   libsystem_pthread.dylib         0x00000001fae30e68 thread_start + 8 (:-1)

Thread 16 name:
Thread 16:
0   libsystem_kernel.dylib          0x00000001c10c6f24 __psynch_cvwait + 8 (:-1)
1   libsystem_pthread.dylib         0x00000001fae38298 _pthread_cond_wait + 1236 (pthread_cond.c:636)
2   JavaScriptCore                  0x00000001946defb0 WTF::ParkingLot::parkConditionallyImpl(void const*, WTF::ScopedLambda<bool ()> const&, WTF::ScopedLambda<void ()> const&, WTF::TimeWithDynamicClockType const&) + 1844 (ThreadingPOSIX.cpp:622)
3   JavaScriptCore                  0x00000001946a3fa8 bool WTF::Condition::waitUntilUnchecked<WTF::Lock>(WTF::Lock&, WTF::TimeWithDynamicClockType const&) + 308 (ParkingLot.h:82)
4   JavaScriptCore                  0x00000001946a4430 WTF::Detail::CallableWrapper<WTF::AutomaticThread::start(WTF::AbstractLocker const&)::$_0, void>::call() + 260 (Condition.h:77)
5   JavaScriptCore                  0x0000000194700154 WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*) + 352 (Function.h:82)
6   JavaScriptCore                  0x0000000194702460 WTF::wtfThreadEntryPoint(void*) + 16 (ThreadingPOSIX.cpp:242)
7   libsystem_pthread.dylib         0x00000001fae319ac _pthread_start + 148 (pthread.c:891)
8   libsystem_pthread.dylib         0x00000001fae30e68 thread_start + 8 (:-1)

Thread 6 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000000   x1: 0x0000000000000000   x2: 0x0000000000000000   x3: 0x0000000000000000
    x4: 0x00000001a230d0f5   x5: 0x000000016b96a430   x6: 0x000000000000006e   x7: 0x0000000000000900
    x8: 0xa980fd5f5e27c1e3   x9: 0xa980fd5e35b171e3  x10: 0x0000000000000200  x11: 0x000000000000000b
   x12: 0x000000000000000b  x13: 0x0000000189806a9f  x14: 0x00000001a230d11b  x15: 0x0000000000000000
   x16: 0x0000000000000148  x17: 0x000000016b96b000  x18: 0x0000000000000000  x19: 0x0000000000000006
   x20: 0x0000000000004a03  x21: 0x000000016b96b0e0  x22: 0x0000000000000000  x23: 0x000000016b96b0e0
   x24: 0x0000000000000000  x25: 0x0000000283c638e8  x26: 0x0000000000000114  x27: 0x0000000000000000
   x28: 0x000000028077e140   fp: 0x000000016b96a3a0   lr: 0x00000001fae373bc
    sp: 0x000000016b96a380   pc: 0x00000001c10ccb38 cpsr: 0x40001000
   esr: 0x56000080  Address size fault

Binary Images:
0x1047d8000 - 0x104b0bfff SorayaBeachResale arm64  <53501a096f4c3dfa90dee71e41ba2209> /private/var/containers/Bundle/Application/33474E86-7EB5-4FF6-A83E-59B2582BD8B1/SorayaBeachResale.app/SorayaBeachResale
0x104e28000 - 0x104e7ffff dyld arm64e  <00afc5ae3fe732efb40c561f3f3a9628> /usr/lib/dyld
0x18912d000 - 0x189172fff libdispatch.dylib arm64e  <2d55ad2f6aff303d8e82088ada4695b2> /usr/lib/system/libdispatch.dylib
0x189430000 - 0x189885fff CoreFoundation arm64e  <3d87d387d1c630a18fc8e3fffb9c6828> /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
0x18ac28000 - 0x18af32fff Foundation arm64e  <7b335f14bf973d56b577c2446b84a636> /System/Library/Frameworks/Foundation.framework/Foundation
0x18b8b1000 - 0x18d14efff UIKitCore arm64e  <2a0536acdc79368abe353934c48694c1> /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore
0x1945be000 - 0x19463dfff libsystem_c.dylib arm64e  <07b35aa1e88436b0902755c91bacaa46> /usr/lib/system/libsystem_c.dylib
0x194696000 - 0x195b1afff JavaScriptCore arm64e  <335c9fb6f06331598d28b5dab323ced0> /System/Library/Frameworks/JavaScriptCore.framework/JavaScriptCore
0x1a21e8000 - 0x1a2224fff libobjc.A.dylib arm64e  <e59c2c92a9dd3af096f7c9837d7e0b27> /usr/lib/libobjc.A.dylib
0x1a22f8000 - 0x1a230ffff libc++abi.dylib arm64e  <56952b9c633f3f2e96d7b67ba063bbfa> /usr/lib/libc++abi.dylib
0x1a55be000 - 0x1a55c6fff GraphicsServices arm64e  <72f2e29c6aae3587adf9614b48586e5a> /System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices
0x1c10c5000 - 0x1c10fafff libsystem_kernel.dylib arm64e  <f17a78429bd637cc9af9e2b1f512385d> /usr/lib/system/libsystem_kernel.dylib
0x1fae30000 - 0x1fae3bfff libsystem_pthread.dylib arm64e  <a0e1a3cea5de35b183874daf7a80c396> /usr/lib/system/libsystem_pthread.dylib

EOF
</code>```

`

How can I solve my problem please ?
Thank you for your answers.

Body:
I've been trying for 1 week to build my app to put it on the App Store but it doesn't work because the app crashes in TestFlight.

I developed this application in react-native, tests were done thanks to expo. All the tests were done on expo and everything works, the application crashes only when I build it and test it with TestFlight

Here is my crash report :
`

Incident Identifier: 10796AEF-CDF7-4D86-9DB1-18405F8A9C61
Hardware Model:      iPhone13,4
Process:             SorayaBeachResale [2567]
Path:                /private/var/containers/Bundle/Application/33474E86-7EB5-4FF6-A83E-59B2582BD8B1/SorayaBeachResale.app/SorayaBeachResale
Identifier:          com.sorayabeach.resale
Version:             1.0.0 (6)
AppStoreTools:       14C17
AppVariant:          1:iPhone13,4:15
Beta:                YES
Code Type:           ARM-64 (Native)
Role:                Foreground
Parent Process:      launchd [1]
Coalition:           com.sorayabeach.resale [766]

Date/Time:           2022-12-26 14:38:15.6109 +0100
Launch Time:         2022-12-26 14:38:15.0097 +0100
OS Version:          iPhone OS 15.7.1 (19H115)
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:  6

Last Exception Backtrace:
0   CoreFoundation                  0x1894c91ec __exceptionPreprocess + 220 (NSException.m:200)
1   libobjc.A.dylib                 0x1a21fe744 objc_exception_throw + 60 (objc-exception.mm:565)
2   SorayaBeachResale               0x10480bfe0 -[EXUpdatesAppController throwException:] + 24 (EXUpdatesAppController.m:485)
3   SorayaBeachResale               0x10481d7e4 -[EXUpdatesErrorRecovery _crash] + 768 (EXUpdatesErrorRecovery.m:268)
4   SorayaBeachResale               0x10481d02c -[EXUpdatesErrorRecovery _runNextTask] + 200 (EXUpdatesErrorRecovery.m:184)
5   libdispatch.dylib               0x18912ee6c _dispatch_call_block_and_release + 32 (init.c:1517)
6   libdispatch.dylib               0x189130a30 _dispatch_client_callout + 20 (object.m:560)
7   libdispatch.dylib               0x189138124 _dispatch_lane_serial_drain + 668 (inline_internal.h:2622)
8   libdispatch.dylib               0x189138c80 _dispatch_lane_invoke + 392 (queue.c:3944)
9   libdispatch.dylib               0x189143500 _dispatch_workloop_worker_thread + 648 (queue.c:6732)
10  libsystem_pthread.dylib         0x1fae310bc _pthread_wqthread + 288 (pthread.c:2599)
11  libsystem_pthread.dylib         0x1fae30e5c start_wqthread + 8 (:-1)

Kernel Triage:
VM - pmap_enter failed with resource shortage

Thread 0 name:
Thread 0:
0   libsystem_kernel.dylib          0x00000001c10c64a0 mach_msg_trap + 8 (:-1)
1   libsystem_kernel.dylib          0x00000001c10c6ae4 mach_msg + 76 (mach_msg.c:119)
2   CoreFoundation                  0x0000000189436c70 __CFRunLoopServiceMachPort + 372 (CFRunLoop.c:2646)
3   CoreFoundation                  0x000000018943b0fc __CFRunLoopRun + 1180 (CFRunLoop.c:3000)
4   CoreFoundation                  0x000000018944eb0c CFRunLoopRunSpecific + 600 (CFRunLoop.c:3268)
5   GraphicsServices                0x00000001a55bf374 GSEventRunModal + 164 (GSEvent.c:2200)
6   UIKitCore                       0x000000018bdc5b58 -[UIApplication _run] + 1100 (UIApplication.m:3511)
7   UIKitCore                       0x000000018bb47098 UIApplicationMain + 364 (UIApplication.m:5064)
8   SorayaBeachResale               0x00000001047de7c0 main + 80 (main.m:7)
9   dyld                            0x0000000104e41da4 start + 520 (dyldMain.cpp:879)

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

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

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

Thread 4 name:
Thread 4:
0   libsystem_kernel.dylib          0x00000001c10c64a0 mach_msg_trap + 8 (:-1)
1   libsystem_kernel.dylib          0x00000001c10c6ae4 mach_msg + 76 (mach_msg.c:119)
2   CoreFoundation                  0x0000000189436c70 __CFRunLoopServiceMachPort + 372 (CFRunLoop.c:2646)
3   CoreFoundation                  0x000000018943b0fc __CFRunLoopRun + 1180 (CFRunLoop.c:3000)
4   CoreFoundation                  0x000000018944eb0c CFRunLoopRunSpecific + 600 (CFRunLoop.c:3268)
5   Foundation                      0x000000018ac413f4 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 236 (NSRunLoop.m:373)
6   Foundation                      0x000000018ac82dcc -[NSRunLoop(NSRunLoop) runUntilDate:] + 92 (NSRunLoop.m:420)
7   UIKitCore                       0x000000018bd3fcc4 -[UIEventFetcher threadMain] + 524 (UIEventFetcher.m:1167)
8   Foundation                      0x000000018ac913dc __NSThread__start__ + 808 (NSThread.m:972)
9   libsystem_pthread.dylib         0x00000001fae319ac _pthread_start + 148 (pthread.c:891)
10  libsystem_pthread.dylib         0x00000001fae30e68 thread_start + 8 (:-1)

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

Thread 6 name:
Thread 6 Crashed:
0   libsystem_kernel.dylib          0x00000001c10ccb38 __pthread_kill + 8 (:-1)
1   libsystem_pthread.dylib         0x00000001fae373bc pthread_kill + 268 (pthread.c:1668)
2   libsystem_c.dylib               0x00000001945de524 abort + 168 (abort.c:118)
3   libc++abi.dylib                 0x00000001a2309b7c abort_message + 132 (abort_message.cpp:78)
4   libc++abi.dylib                 0x00000001a22f99c4 demangling_terminate_handler() + 336 (cxa_default_handlers.cpp:71)
5   libobjc.A.dylib                 0x00000001a2204c68 _objc_terminate() + 144 (objc-exception.mm:701)
6   libc++abi.dylib                 0x00000001a2308f18 std::__terminate(void (*)()) + 20 (cxa_handlers.cpp:59)
7   libc++abi.dylib                 0x00000001a2308eb4 std::terminate() + 64 (cxa_handlers.cpp:88)
8   libdispatch.dylib               0x0000000189130a44 _dispatch_client_callout + 40 (object.m:563)
9   libdispatch.dylib               0x0000000189138124 _dispatch_lane_serial_drain + 668 (inline_internal.h:2622)
10  libdispatch.dylib               0x0000000189138c80 _dispatch_lane_invoke + 392 (queue.c:3944)
11  libdispatch.dylib               0x0000000189143500 _dispatch_workloop_worker_thread + 648 (queue.c:6732)
12  libsystem_pthread.dylib         0x00000001fae310bc _pthread_wqthread + 288 (pthread.c:2599)
13  libsystem_pthread.dylib         0x00000001fae30e5c start_wqthread + 8 (:-1)

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

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

Thread 9 name:
Thread 9:
0   libsystem_kernel.dylib          0x00000001c10c64a0 mach_msg_trap + 8 (:-1)
1   libsystem_kernel.dylib          0x00000001c10c6ae4 mach_msg + 76 (mach_msg.c:119)
2   CoreFoundation                  0x0000000189436c70 __CFRunLoopServiceMachPort + 372 (CFRunLoop.c:2646)
3   CoreFoundation                  0x000000018943b0fc __CFRunLoopRun + 1180 (CFRunLoop.c:3000)
4   CoreFoundation                  0x000000018944eb0c CFRunLoopRunSpecific + 600 (CFRunLoop.c:3268)
5   SorayaBeachResale               0x00000001048d4510 +[RCTCxxBridge runRunLoop] + 212 (RCTCxxBridge.mm:335)
6   Foundation                      0x000000018ac913dc __NSThread__start__ + 808 (NSThread.m:972)
7   libsystem_pthread.dylib         0x00000001fae319ac _pthread_start + 148 (pthread.c:891)
8   libsystem_pthread.dylib         0x00000001fae30e68 thread_start + 8 (:-1)

Thread 10 name:
Thread 10:
0   libsystem_kernel.dylib          0x00000001c10c6f24 __psynch_cvwait + 8 (:-1)
1   libsystem_pthread.dylib         0x00000001fae38298 _pthread_cond_wait + 1236 (pthread_cond.c:636)
2   JavaScriptCore                  0x0000000194780448 scavenger_thread_main + 1088 (pas_scavenger.c:135)
3   libsystem_pthread.dylib         0x00000001fae319ac _pthread_start + 148 (pthread.c:891)
4   libsystem_pthread.dylib         0x00000001fae30e68 thread_start + 8 (:-1)

Thread 11 name:
Thread 11:
0   libsystem_kernel.dylib          0x00000001c10c6f24 __psynch_cvwait + 8 (:-1)
1   libsystem_pthread.dylib         0x00000001fae38298 _pthread_cond_wait + 1236 (pthread_cond.c:636)
2   JavaScriptCore                  0x00000001946defb0 WTF::ParkingLot::parkConditionallyImpl(void const*, WTF::ScopedLambda<bool ()> const&, WTF::ScopedLambda<void ()> const&, WTF::TimeWithDynamicClockType const&) + 1844 (ThreadingPOSIX.cpp:622)
3   JavaScriptCore                  0x00000001946a3fa8 bool WTF::Condition::waitUntilUnchecked<WTF::Lock>(WTF::Lock&, WTF::TimeWithDynamicClockType const&) + 308 (ParkingLot.h:82)
4   JavaScriptCore                  0x00000001946a4430 WTF::Detail::CallableWrapper<WTF::AutomaticThread::start(WTF::AbstractLocker const&)::$_0, void>::call() + 260 (Condition.h:77)
5   JavaScriptCore                  0x0000000194700154 WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*) + 352 (Function.h:82)
6   JavaScriptCore                  0x0000000194702460 WTF::wtfThreadEntryPoint(void*) + 16 (ThreadingPOSIX.cpp:242)
7   libsystem_pthread.dylib         0x00000001fae319ac _pthread_start + 148 (pthread.c:891)
8   libsystem_pthread.dylib         0x00000001fae30e68 thread_start + 8 (:-1)

Thread 12 name:
Thread 12:
0   libsystem_kernel.dylib          0x00000001c10c6f24 __psynch_cvwait + 8 (:-1)
1   libsystem_pthread.dylib         0x00000001fae38298 _pthread_cond_wait + 1236 (pthread_cond.c:636)
2   JavaScriptCore                  0x00000001946defb0 WTF::ParkingLot::parkConditionallyImpl(void const*, WTF::ScopedLambda<bool ()> const&, WTF::ScopedLambda<void ()> const&, WTF::TimeWithDynamicClockType const&) + 1844 (ThreadingPOSIX.cpp:622)
3   JavaScriptCore                  0x00000001946a3fa8 bool WTF::Condition::waitUntilUnchecked<WTF::Lock>(WTF::Lock&, WTF::TimeWithDynamicClockType const&) + 308 (ParkingLot.h:82)
4   JavaScriptCore                  0x00000001946a4430 WTF::Detail::CallableWrapper<WTF::AutomaticThread::start(WTF::AbstractLocker const&)::$_0, void>::call() + 260 (Condition.h:77)
5   JavaScriptCore                  0x0000000194700154 WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*) + 352 (Function.h:82)
6   JavaScriptCore                  0x0000000194702460 WTF::wtfThreadEntryPoint(void*) + 16 (ThreadingPOSIX.cpp:242)
7   libsystem_pthread.dylib         0x00000001fae319ac _pthread_start + 148 (pthread.c:891)
8   libsystem_pthread.dylib         0x00000001fae30e68 thread_start + 8 (:-1)

Thread 13 name:
Thread 13:
0   libsystem_kernel.dylib          0x00000001c10c6f24 __psynch_cvwait + 8 (:-1)
1   libsystem_pthread.dylib         0x00000001fae38298 _pthread_cond_wait + 1236 (pthread_cond.c:636)
2   JavaScriptCore                  0x00000001946defb0 WTF::ParkingLot::parkConditionallyImpl(void const*, WTF::ScopedLambda<bool ()> const&, WTF::ScopedLambda<void ()> const&, WTF::TimeWithDynamicClockType const&) + 1844 (ThreadingPOSIX.cpp:622)
3   JavaScriptCore                  0x00000001946a3fa8 bool WTF::Condition::waitUntilUnchecked<WTF::Lock>(WTF::Lock&, WTF::TimeWithDynamicClockType const&) + 308 (ParkingLot.h:82)
4   JavaScriptCore                  0x00000001946a4430 WTF::Detail::CallableWrapper<WTF::AutomaticThread::start(WTF::AbstractLocker const&)::$_0, void>::call() + 260 (Condition.h:77)
5   JavaScriptCore                  0x0000000194700154 WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*) + 352 (Function.h:82)
6   JavaScriptCore                  0x0000000194702460 WTF::wtfThreadEntryPoint(void*) + 16 (ThreadingPOSIX.cpp:242)
7   libsystem_pthread.dylib         0x00000001fae319ac _pthread_start + 148 (pthread.c:891)
8   libsystem_pthread.dylib         0x00000001fae30e68 thread_start + 8 (:-1)

Thread 14 name:
Thread 14:
0   libsystem_kernel.dylib          0x00000001c10c6f24 __psynch_cvwait + 8 (:-1)
1   libsystem_pthread.dylib         0x00000001fae38298 _pthread_cond_wait + 1236 (pthread_cond.c:636)
2   JavaScriptCore                  0x00000001946defb0 WTF::ParkingLot::parkConditionallyImpl(void const*, WTF::ScopedLambda<bool ()> const&, WTF::ScopedLambda<void ()> const&, WTF::TimeWithDynamicClockType const&) + 1844 (ThreadingPOSIX.cpp:622)
3   JavaScriptCore                  0x00000001946a3fa8 bool WTF::Condition::waitUntilUnchecked<WTF::Lock>(WTF::Lock&, WTF::TimeWithDynamicClockType const&) + 308 (ParkingLot.h:82)
4   JavaScriptCore                  0x00000001946a4430 WTF::Detail::CallableWrapper<WTF::AutomaticThread::start(WTF::AbstractLocker const&)::$_0, void>::call() + 260 (Condition.h:77)
5   JavaScriptCore                  0x0000000194700154 WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*) + 352 (Function.h:82)
6   JavaScriptCore                  0x0000000194702460 WTF::wtfThreadEntryPoint(void*) + 16 (ThreadingPOSIX.cpp:242)
7   libsystem_pthread.dylib         0x00000001fae319ac _pthread_start + 148 (pthread.c:891)
8   libsystem_pthread.dylib         0x00000001fae30e68 thread_start + 8 (:-1)

Thread 15 name:
Thread 15:
0   libsystem_kernel.dylib          0x00000001c10c6f24 __psynch_cvwait + 8 (:-1)
1   libsystem_pthread.dylib         0x00000001fae38298 _pthread_cond_wait + 1236 (pthread_cond.c:636)
2   JavaScriptCore                  0x00000001946defb0 WTF::ParkingLot::parkConditionallyImpl(void const*, WTF::ScopedLambda<bool ()> const&, WTF::ScopedLambda<void ()> const&, WTF::TimeWithDynamicClockType const&) + 1844 (ThreadingPOSIX.cpp:622)
3   JavaScriptCore                  0x00000001946a3fa8 bool WTF::Condition::waitUntilUnchecked<WTF::Lock>(WTF::Lock&, WTF::TimeWithDynamicClockType const&) + 308 (ParkingLot.h:82)
4   JavaScriptCore                  0x00000001946a4430 WTF::Detail::CallableWrapper<WTF::AutomaticThread::start(WTF::AbstractLocker const&)::$_0, void>::call() + 260 (Condition.h:77)
5   JavaScriptCore                  0x0000000194700154 WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*) + 352 (Function.h:82)
6   JavaScriptCore                  0x0000000194702460 WTF::wtfThreadEntryPoint(void*) + 16 (ThreadingPOSIX.cpp:242)
7   libsystem_pthread.dylib         0x00000001fae319ac _pthread_start + 148 (pthread.c:891)
8   libsystem_pthread.dylib         0x00000001fae30e68 thread_start + 8 (:-1)

Thread 16 name:
Thread 16:
0   libsystem_kernel.dylib          0x00000001c10c6f24 __psynch_cvwait + 8 (:-1)
1   libsystem_pthread.dylib         0x00000001fae38298 _pthread_cond_wait + 1236 (pthread_cond.c:636)
2   JavaScriptCore                  0x00000001946defb0 WTF::ParkingLot::parkConditionallyImpl(void const*, WTF::ScopedLambda<bool ()> const&, WTF::ScopedLambda<void ()> const&, WTF::TimeWithDynamicClockType const&) + 1844 (ThreadingPOSIX.cpp:622)
3   JavaScriptCore                  0x00000001946a3fa8 bool WTF::Condition::waitUntilUnchecked<WTF::Lock>(WTF::Lock&, WTF::TimeWithDynamicClockType const&) + 308 (ParkingLot.h:82)
4   JavaScriptCore                  0x00000001946a4430 WTF::Detail::CallableWrapper<WTF::AutomaticThread::start(WTF::AbstractLocker const&)::$_0, void>::call() + 260 (Condition.h:77)
5   JavaScriptCore                  0x0000000194700154 WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*) + 352 (Function.h:82)
6   JavaScriptCore                  0x0000000194702460 WTF::wtfThreadEntryPoint(void*) + 16 (ThreadingPOSIX.cpp:242)
7   libsystem_pthread.dylib         0x00000001fae319ac _pthread_start + 148 (pthread.c:891)
8   libsystem_pthread.dylib         0x00000001fae30e68 thread_start + 8 (:-1)

Thread 6 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000000   x1: 0x0000000000000000   x2: 0x0000000000000000   x3: 0x0000000000000000
    x4: 0x00000001a230d0f5   x5: 0x000000016b96a430   x6: 0x000000000000006e   x7: 0x0000000000000900
    x8: 0xa980fd5f5e27c1e3   x9: 0xa980fd5e35b171e3  x10: 0x0000000000000200  x11: 0x000000000000000b
   x12: 0x000000000000000b  x13: 0x0000000189806a9f  x14: 0x00000001a230d11b  x15: 0x0000000000000000
   x16: 0x0000000000000148  x17: 0x000000016b96b000  x18: 0x0000000000000000  x19: 0x0000000000000006
   x20: 0x0000000000004a03  x21: 0x000000016b96b0e0  x22: 0x0000000000000000  x23: 0x000000016b96b0e0
   x24: 0x0000000000000000  x25: 0x0000000283c638e8  x26: 0x0000000000000114  x27: 0x0000000000000000
   x28: 0x000000028077e140   fp: 0x000000016b96a3a0   lr: 0x00000001fae373bc
    sp: 0x000000016b96a380   pc: 0x00000001c10ccb38 cpsr: 0x40001000
   esr: 0x56000080  Address size fault

Binary Images:
0x1047d8000 - 0x104b0bfff SorayaBeachResale arm64  <53501a096f4c3dfa90dee71e41ba2209> /private/var/containers/Bundle/Application/33474E86-7EB5-4FF6-A83E-59B2582BD8B1/SorayaBeachResale.app/SorayaBeachResale
0x104e28000 - 0x104e7ffff dyld arm64e  <00afc5ae3fe732efb40c561f3f3a9628> /usr/lib/dyld
0x18912d000 - 0x189172fff libdispatch.dylib arm64e  <2d55ad2f6aff303d8e82088ada4695b2> /usr/lib/system/libdispatch.dylib
0x189430000 - 0x189885fff CoreFoundation arm64e  <3d87d387d1c630a18fc8e3fffb9c6828> /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
0x18ac28000 - 0x18af32fff Foundation arm64e  <7b335f14bf973d56b577c2446b84a636> /System/Library/Frameworks/Foundation.framework/Foundation
0x18b8b1000 - 0x18d14efff UIKitCore arm64e  <2a0536acdc79368abe353934c48694c1> /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore
0x1945be000 - 0x19463dfff libsystem_c.dylib arm64e  <07b35aa1e88436b0902755c91bacaa46> /usr/lib/system/libsystem_c.dylib
0x194696000 - 0x195b1afff JavaScriptCore arm64e  <335c9fb6f06331598d28b5dab323ced0> /System/Library/Frameworks/JavaScriptCore.framework/JavaScriptCore
0x1a21e8000 - 0x1a2224fff libobjc.A.dylib arm64e  <e59c2c92a9dd3af096f7c9837d7e0b27> /usr/lib/libobjc.A.dylib
0x1a22f8000 - 0x1a230ffff libc++abi.dylib arm64e  <56952b9c633f3f2e96d7b67ba063bbfa> /usr/lib/libc++abi.dylib
0x1a55be000 - 0x1a55c6fff GraphicsServices arm64e  <72f2e29c6aae3587adf9614b48586e5a> /System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices
0x1c10c5000 - 0x1c10fafff libsystem_kernel.dylib arm64e  <f17a78429bd637cc9af9e2b1f512385d> /usr/lib/system/libsystem_kernel.dylib
0x1fae30000 - 0x1fae3bfff libsystem_pthread.dylib arm64e  <a0e1a3cea5de35b183874daf7a80c396> /usr/lib/system/libsystem_pthread.dylib

EOF

`

How can I solve my problem please ?
Thank you for your answers.


来源: stackexchange

问:
Attribute error: 'built-in function or method' object has no attribute 'split'
In the following program, I got attribute error from interpreter stating that split() function cannot be used.

N= int(input())
for I in range (0, N, 1) :
val=list(map(int,input.split()))
print(max(val))

I was writing a program to accept N as input and N integers as input and print the greatest integer as output.
I got the list of N integers and tried to use max function to get the greatest number

ContentLicense: CC BY-SA 4.0


问:
rollup.js: crypto.getRandomValues() not supported
I am working on an Obsidian plugin that requires bundling using rollup.js. This plugin needs to import inrupt solid libraries that, when imported, are causing the following error:

```<code>Error: crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported
    at rng (/Users/candide/work/sekund/solid-build-issues/main_rollup.js:16740:10)
    at v4 (/Users/candide/work/sekund/solid-build-issues/main_rollup.js:17186:53)
    at new Session (/Users/candide/work/sekund/solid-build-issues/main_rollup.js:23526:88)
    at Repro.<anonymous> (/Users/candide/work/sekund/solid-build-issues/main_rollup.js:23669:17)
    at step (/Users/candide/work/sekund/solid-build-issues/main_rollup.js:160:15)
    at Object.next (/Users/candide/work/sekund/solid-build-issues/main_rollup.js:111:11)
    at /Users/candide/work/sekund/solid-build-issues/main_rollup.js:83:65
    at new Promise (<anonymous>)
    at __awaiter (/Users/candide/work/sekund/solid-build-issues/main_rollup.js:65:9)
    at Repro.login (/Users/candide/work/sekund/solid-build-issues/main_rollup.js:23664:10)
</code>```

When debugging the code, it turns out that the crypto constant is not defined. However, at the start of the generated bundle, I can see:

```<code>var crypto_1 = require("crypto");

</code>```

So it looks like my problem basically boils down to rollup redefining global variables when it should not.

Indeed, using the typescript compiler (tsc) on the same source file outputs a perfectly working program.

Here's my rollup config:

```<code>import commonjs from "@rollup/plugin-commonjs";
import json from "@rollup/plugin-json";
import { nodeResolve } from "@rollup/plugin-node-resolve";
import typescript from "@rollup/plugin-typescript";

const banner = `/*
THIS IS A GENERATED/BUNDLED FILE BY ROLLUP
if you want to view the source visit the plugins github repository
*/
`;

export default {
    input: "src/main.ts",
    inlineDynamicImports: true,
    output: [
        {
            file: "main.js",
            sourcemap: "inline",
            format: "cjs",
            exports: "default",
            banner,
        },
    ],
    external: ["obsidian", "fs", "os", "path"],
    plugins: [json(), nodeResolve({ preferBuiltins: true }), commonjs(), typescript({ sourceMap: true })],
};
</code>```

I created a repro repo at https://github.com/ckemmler/solid-build-issues

Body:
I am working on an Obsidian plugin that requires bundling using rollup.js. This plugin needs to import inrupt solid libraries that, when imported, are causing the following error:

Error: crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported
    at rng (/Users/candide/work/sekund/solid-build-issues/main_rollup.js:16740:10)
    at v4 (/Users/candide/work/sekund/solid-build-issues/main_rollup.js:17186:53)
    at new Session (/Users/candide/work/sekund/solid-build-issues/main_rollup.js:23526:88)
    at Repro.<anonymous> (/Users/candide/work/sekund/solid-build-issues/main_rollup.js:23669:17)
    at step (/Users/candide/work/sekund/solid-build-issues/main_rollup.js:160:15)
    at Object.next (/Users/candide/work/sekund/solid-build-issues/main_rollup.js:111:11)
    at /Users/candide/work/sekund/solid-build-issues/main_rollup.js:83:65
    at new Promise (<anonymous>)
    at __awaiter (/Users/candide/work/sekund/solid-build-issues/main_rollup.js:65:9)
    at Repro.login (/Users/candide/work/sekund/solid-build-issues/main_rollup.js:23664:10)

When debugging the code, it turns out that the crypto constant is not defined. However, at the start of the generated bundle, I can see:

var crypto_1 = require("crypto");

So it looks like my problem basically boils down to rollup redefining global variables when it should not.

Indeed, using the typescript compiler (tsc) on the same source file outputs a perfectly working program.

Here's my rollup config:

import commonjs from "@rollup/plugin-commonjs";
import json from "@rollup/plugin-json";
import { nodeResolve } from "@rollup/plugin-node-resolve";
import typescript from "@rollup/plugin-typescript";

const banner = `/*
THIS IS A GENERATED/BUNDLED FILE BY ROLLUP
if you want to view the source visit the plugins github repository
*/
`;

export default {
    input: "src/main.ts",
    inlineDynamicImports: true,
    output: [
        {
            file: "main.js",
            sourcemap: "inline",
            format: "cjs",
            exports: "default",
            banner,
        },
    ],
    external: ["obsidian", "fs", "os", "path"],
    plugins: [json(), nodeResolve({ preferBuiltins: true }), commonjs(), typescript({ sourceMap: true })],
};

I created a repro repo at https://github.com/ckemmler/solid-build-issues


问:
Error setting up the LATEX fancy header - inconsistent results
I have a question regarding the fancy header in Latex. The header shows up inconsistently with the following code (e.g. doesn't show the section name for the Abstract; isn't showing at all on the first page of table of contents etc)

My code:

```<code>%from settings
\pagestyle{fancy}
\fancyhf{}
\rhead{\thepage}
\lhead{\nouppercase\leftmark}

%code Abstract
\pagenumbering{roman}
\thispagestyle{fancy}
\section*{Abstract}
\lipsum[1]
\phantomsection
\addcontentsline{toc}{section}{Abstract}

%code Table of Content
\newpage
\phantomsection
\renewcommand{\contentsname}{Table of Contents}
\addcontentsline{toc}{section}{Table of Contents}
\tableofcontents\thispagestyle{fancy}
</code>```

Thanks a lot

Body:
I have a question regarding the fancy header in Latex. The header shows up inconsistently with the following code (e.g. doesn't show the section name for the Abstract; isn't showing at all on the first page of table of contents etc)

My code:

%from settings
\pagestyle{fancy}
\fancyhf{}
\rhead{\thepage}
\lhead{\nouppercase\leftmark}

%code Abstract
\pagenumbering{roman}
\thispagestyle{fancy}
\section*{Abstract}
\lipsum[1]
\phantomsection
\addcontentsline{toc}{section}{Abstract}

%code Table of Content
\newpage
\phantomsection
\renewcommand{\contentsname}{Table of Contents}
\addcontentsline{toc}{section}{Table of Contents}
\tableofcontents\thispagestyle{fancy}

Thanks a lot


问:
The system cannot find the path specified. node:internal/modules/cjs/loader:998
I'm new to web development and nodejs stuffs.

I tried to create a react typescript app with vite & tailwindcss install.
But I got this error when I run

npm create vite@latest

cd to project

npm install

npm run dev

```<code>The system cannot find the path specified.
node:internal/modules/cjs/loader:998
  throw err;
  ^

Error: Cannot find module 'D:\Au Personal Folder\vite\bin\vite.js'
    at Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
    at Module._load (node:internal/modules/cjs/loader:841:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:23:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v18.12.1

</code>```

Thanks for every answers :)

Body:
I'm new to web development and nodejs stuffs.

I tried to create a react typescript app with vite & tailwindcss install.
But I got this error when I run

npm create vite@latest

cd to project

npm install

npm run dev

The system cannot find the path specified.
node:internal/modules/cjs/loader:998
  throw err;
  ^

Error: Cannot find module 'D:\Au Personal Folder\vite\bin\vite.js'
    at Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
    at Module._load (node:internal/modules/cjs/loader:841:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:23:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v18.12.1

Thanks for every answers :)


问:
How to open a specific ePub in Books from SwiftUI?
I would like open iPadOS' Books app with a specific ePub from SwiftUI. I can easily open Books like this:

```<code>UIApplication.shared.open(URL(string: "itms-books://")!, options: [:], completionHandler: nil)
</code>```

Are there any options or URL scheme that can be used to specify a file?

Body:
I would like open iPadOS' Books app with a specific ePub from SwiftUI. I can easily open Books like this:

UIApplication.shared.open(URL(string: "itms-books://")!, options: [:], completionHandler: nil)

Are there any options or URL scheme that can be used to specify a file?


问:
aws boto3 python - get all resources running
i am trying to connect to an aws region and want to find all resources running in that. the resources can be any thing from the list of services provided by aws (ec2, rds...). Now that i am writing python code to create a client for every service and getting the list. if i have to write the code for all services, it will  be huge. please suggest me a best approach to grab the details with python. i cant use the aws config or resource manager as these are not whitelisted yet.</p>


问:
How to fix the Argument list too long error(Jest + Github CI)
I need to run ~400 test suites in my Github CI. I receive the plain string with tests e.g /folder/test1.tsx /anotherFolder/anotherTest.tsx" from the specific job as output and then I'm trying to run them via --runTestsByPath ${{ inputs.SOME_TEST_ARR }} command . But receive the error, does anyone know how I can fix this?

I can run this command with 400 tests locally, but github CLI doesn’t allow me to do it


问:
Chrome text render bug
Examples of text glitch :

If hover on element the glitch is fade out.

I tried all value of -webkit-font-smoothing and text-rendering stop on this one

```<code>-webkit-font-smoothing: subpixel-antialiased;
text-rendering: geometricPrecision;
</code>```

better but don't fix the problem.

font importing like this

```<code>@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 900;
  src: local(''),
  url('../fonts/inter-v12-latin-900.woff2') format('woff2'),
  url('../fonts/inter-v12-latin-900.woff') format('woff'),
  url('../fonts/inter-v12-latin-900.ttf') format('truetype'),
  url('../fonts/inter-v12-latin-900.eot?#iefix') format('eot'),
  url('../fonts/inter-v12-latin-900.svg#Inter') format('svg');
}
</code>```

hardware acceleration make it better but don't fix it too

Title: Chrome text render bug

Body:
Examples of text glitch :

If hover on element the glitch is fade out.

I tried all value of -webkit-font-smoothing and text-rendering stop on this one

-webkit-font-smoothing: subpixel-antialiased;
text-rendering: geometricPrecision;

better but don't fix the problem.

font importing like this

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 900;
  src: local(''),
  url('../fonts/inter-v12-latin-900.woff2') format('woff2'),
  url('../fonts/inter-v12-latin-900.woff') format('woff'),
  url('../fonts/inter-v12-latin-900.ttf') format('truetype'),
  url('../fonts/inter-v12-latin-900.eot?#iefix') format('eot'),
  url('../fonts/inter-v12-latin-900.svg#Inter') format('svg');
}

hardware acceleration make it better but don't fix it too


问:
Liquid Warning: Liquid syntax error (line 1): Unexpected character in "{{site.pages, group_by: "category" }}"
I'm trying to make a site in jekyll. The following code seems to work, but it clutters logs with this error:

```<code>Liquid Warning: Liquid syntax error (line 1): Unexpected character   in "{{site.pages | group_by: "category" }}" in /home/why/projects/jekyll-gitbook/_pages/categories.md
</code>```

The page code:

```<code>---
title: categories
layout: post
category: Guides
permalink: /categories/
lang: en
---
{% assign categories = site.pages | group_by: 'category' %}
{% for category in categories %}
  * {{ category.name }}
    {% for page in category.items %}
      * <a href="{{site.baseurl}}{{page.url}}">{{ page.title | escape }}</a>
    {% endfor %}
{% endfor %}

</code>```

How to get rid of this warning?

Body:
I'm trying to make a site in jekyll. The following code seems to work, but it clutters logs with this error:

Liquid Warning: Liquid syntax error (line 1): Unexpected character   in "{{site.pages | group_by: "category" }}" in /home/why/projects/jekyll-gitbook/_pages/categories.md

The page code:

---
title: categories
layout: post
category: Guides
permalink: /categories/
lang: en
---
{% assign categories = site.pages | group_by: 'category' %}
{% for category in categories %}
  * {{ category.name }}
    {% for page in category.items %}
      * {{ page.title | escape }}
    {% endfor %}
{% endfor %}

How to get rid of this warning?


问:
How to enable Elementor editor within Memberpress courses page?
Happy Xmas, everyone :)

I have WordPress website with MemberPress, Courses extension, and Elementor installed.
Elementor editor is working fine on regular pages.

I have enabled Elementor editor for "Lessons": https://prnt.sc/EunVEGQXEEig

It seems to be working to some extent. However, MemberPress Courses is not loading CSS files for the editor.
https://prnt.sc/aOMH1IMQSQ55

I have checked PHP file and it seems like MemberPress Courses is loading only it's own CSS in editor.

https://prnt.sc/Zn6zRJGn2P8x

How can I enable loading Elementor editor CSS styles, the way, it is used on regular WordPress pages?


问:
nginx proxy_pass not working with variable

I am trying to configure proxy pass in Nginx with query argument, variable is valid, but proxy pass not working.

Working

```<code>location / {
    proxy_pass http://192.168.1.115:1111/;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection 'upgrade';
}
</code>```

Not working

```<code>location / {
    proxy_pass http://192.168.1.115:$arg_port/;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection 'upgrade';`
}
</code>```

Body:
I am trying to configure proxy pass in Nginx with query argument, variable is valid, but proxy pass not working.

Working

location / {
    proxy_pass http://192.168.1.115:1111/;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection 'upgrade';
}

Not working

location / {
    proxy_pass http://192.168.1.115:$arg_port/;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection 'upgrade';`
}


问:
how can I convert manifest 2 to manifest 3?

{

"manifest_version": 2,
"minimum_chrome_version": "62.0",
"name": "Airnet",
"version": "0.0.1",
"author": "Kakha Tskhomelidze",
"default_locale": "en",
"description": "_MSG_describ_",
"icons": {
"16": "images/icon16.png",
"24": "images/icon24.png",
"32": "images/icon32.png",
"48": "images/icon48.png",
"96": "images/icon96.png",
"128": "images/icon128.png"
},
"background": {
"scripts": ["js/eventPage.js"],
"persistent": false
},
"browser_action": {
"default_icon": {
"16": "images/icon16-off.png",
"24": "images/icon24-off.png",
"32": "images/icon32-off.png"
}
},
"commands": {
"_execute_browser_action": {}
},
"content_scripts": [
{
"matches": ["<all_urls>"],
"js": ["js/Airnet.js"],
"all_frames": true,
"run_at": "document_end"
}
],
"options_ui": {
"page": "options.html",
"chrome_style": false,
"open_in_tab": true
},
"permissions": [
"<all_urls>",
"contextMenus",
"storage",
"unlimitedStorage"
],
"content_security_policy": "script-src 'self' https://www.google-analytics.com; object-src 'self'",
"web_accessible_resources": [
"images/close*.png",
"images/icon24.png",
"sounds/*"
]
}

I need help, I do not know how to do that and convert to manifest 3


问:
How to load datasource from hibernate.cfg.xml file when launching spring boot app
Intro :
My app contains 2 datasource, i used tomcat context.xml to configure them and it's working fine,
but now i need to launch the app as a spring-boot application,
one of datasource which is declared in hibernate.cfg.xml file doesn't seem to be loaded properly

What i tried:
i created a bean for the second data source which is in hibernat.cfg.xml file (same as i did for the first datasource) in a class annotated @configuration but i got this error:
Error parsing JNDI name [java:/comp/env/jdbc/mySecondDB]

i tried also to modify the jndi value to : java:comp/env/jdbc/mySecondDB
but it's not working

how i can load this 2nd datasource from the hibernate.cfg.xml file ?


问:
Why is my app not waiting when using sleep
Why is my console app not waiting? All the outputted times are the same.

I app hoping to execute the commands but not all at once I would like for the WaitAfterExecution to finish before executing the next command on so on. But also if I have some long-running tasking fetching data I would also like that to continue.

```<code>public class Qsend: IQCommand
{

    public Qsend(Action p, int v1, int v2, string v3)
    {
        OnCommand = p;
        WaitBeforeExecution = v1;
        WaitAfterExecution = v2;
        Name = v3;
    }

  public  Action OnCommand { get ; set ; }
    public int WaitBeforeExecution { get ; set ; }
    public int WaitAfterExecution { get ; set ; }
    public string Name { get ; set ; }
}

public interface IQCommand
{
    Action OnCommand { get; set; }
    int WaitBeforeExecution { get; set; }
    int WaitAfterExecution { get; set; }
    string Name { get; set; }

}

public static class CExtensions
{
    public static void ProcessThis(this IQCommand irc)
    {
        Console.WriteLine("Process This Started!!!");
        if (irc == null)
            return;

        if (irc.OnCommand == null)
            return;

        if (irc.WaitBeforeExecution > 0)
            System.Threading.Thread.Sleep(irc.WaitBeforeExecution);

        irc.OnCommand.Invoke();

        if (irc.WaitAfterExecution > 0)
            System.Threading.Thread.Sleep(irc.WaitAfterExecution);
        Console.WriteLine("Process This End!!!");
    }
}
</code>```

Usage:

```<code>using System.Diagnostics;

List<IQCommand> commands = new List<IQCommand>();

commands.Add(new Qsend(() => { Console.WriteLine($"Command 1 {DateTime.Now.ToString("HH:mm:ss.ffffff")}"); }, 3, 6, "Name 1"));
commands.Add(new Qsend(() => { Console.WriteLine($"Command 2 { DateTime.Now.ToString("HH:mm:ss.ffffff")}"); }, 5, 10, "Name 2"));
// Creating object of ExThread class

Console.WriteLine($"Before EXE {DateTime.Now.ToString("HH:mm:ss.ffffff")}");
foreach (var item in commands)
{
    Console.WriteLine(item.Name);
    item.ProcessThis();
}
Console.WriteLine($"AFTER EXE {DateTime.Now.ToString("HH:mm:ss.ffffff")}");
</code>```

Output:

```<code>Before EXE 15:11:13.482163
Name 1
Process This Started!!!
Command 1 15:11:13.533112
Process This End!!!
Name 2
Process This Started!!!
Command 2 15:11:13.563431
Process This End!!!
AFTER EXE 15:11:13.578287
</code>```

I Also Tried:

```<code>Thread thr = new Thread(new ThreadStart(() => {
    Console.WriteLine($"Before EXE {DateTime.Now.ToString("HH:mm:ss.ffffff")}");
    foreach (var item in commands)
    {
        Console.WriteLine(item.Name);
        item.ProcessThis();
    }
    Console.WriteLine($"AFTER EXE {DateTime.Now.ToString("HH:mm:ss.ffffff")}");
}));
thr.Start();
</code>```

Body:
Why is my console app not waiting? All the outputted times are the same.

I app hoping to execute the commands but not all at once I would like for the WaitAfterExecution to finish before executing the next command on so on. But also if I have some long-running tasking fetching data I would also like that to continue.

public class Qsend: IQCommand
{

    public Qsend(Action p, int v1, int v2, string v3)
    {
        OnCommand = p;
        WaitBeforeExecution = v1;
        WaitAfterExecution = v2;
        Name = v3;
    }

  public  Action OnCommand { get ; set ; }
    public int WaitBeforeExecution { get ; set ; }
    public int WaitAfterExecution { get ; set ; }
    public string Name { get ; set ; }
}

public interface IQCommand
{
    Action OnCommand { get; set; }
    int WaitBeforeExecution { get; set; }
    int WaitAfterExecution { get; set; }
    string Name { get; set; }

}

public static class CExtensions
{
    public static void ProcessThis(this IQCommand irc)
    {
        Console.WriteLine("Process This Started!!!");
        if (irc == null)
            return;

        if (irc.OnCommand == null)
            return;

        if (irc.WaitBeforeExecution > 0)
            System.Threading.Thread.Sleep(irc.WaitBeforeExecution);

        irc.OnCommand.Invoke();

        if (irc.WaitAfterExecution > 0)
            System.Threading.Thread.Sleep(irc.WaitAfterExecution);
        Console.WriteLine("Process This End!!!");
    }
}

Usage:

using System.Diagnostics;

List<IQCommand> commands = new List<IQCommand>();

commands.Add(new Qsend(() => { Console.WriteLine($"Command 1 {DateTime.Now.ToString("HH:mm:ss.ffffff")}"); }, 3, 6, "Name 1"));
commands.Add(new Qsend(() => { Console.WriteLine($"Command 2 { DateTime.Now.ToString("HH:mm:ss.ffffff")}"); }, 5, 10, "Name 2"));
// Creating object of ExThread class

Console.WriteLine($"Before EXE {DateTime.Now.ToString("HH:mm:ss.ffffff")}");
foreach (var item in commands)
{
    Console.WriteLine(item.Name);
    item.ProcessThis();
}
Console.WriteLine($"AFTER EXE {DateTime.Now.ToString("HH:mm:ss.ffffff")}");

Output:

Before EXE 15:11:13.482163
Name 1
Process This Started!!!
Command 1 15:11:13.533112
Process This End!!!
Name 2
Process This Started!!!
Command 2 15:11:13.563431
Process This End!!!
AFTER EXE 15:11:13.578287

I Also Tried:

Thread thr = new Thread(new ThreadStart(() => {
    Console.WriteLine($"Before EXE {DateTime.Now.ToString("HH:mm:ss.ffffff")}");
    foreach (var item in commands)
    {
        Console.WriteLine(item.Name);
        item.ProcessThis();
    }
    Console.WriteLine($"AFTER EXE {DateTime.Now.ToString("HH:mm:ss.ffffff")}");
}));
thr.Start();


问:
node server is not starting
I'm building a web app with Next.js and everything was working fine. But now when I try to start the dev server after a 1-month break, it isn't starting and this error is thrown

I have tried deleting the node_modules folder and reinstalling all the packages, but still, the same error occurs.
I'm using pnpm btw...

Can someone please point out what might be missing?

Thanks in advance!

Title: node server is not starting


问:
XSL resolve reference
Consider the following XML:

<?xml version="1.0" encoding="UTF-8"?>
<MYDATA xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <item id="a01">
        <NAME>name of item a1</NAME>
    </item>
    <item id="a02">
        <NAME>name of item a2</NAME>
    </item>
    <item id="a03">
        <NAME>name of item a3</NAME>
    </item>
    <owner>
        <name>Max</name>
        <owns>
            <property prop_id="a01">
                <DATE_BOUGHT>1</DATE_BOUGHT>
            </property>
            <property prop_id="a02">
                <DATE_BOUGHT>2</DATE_BOUGHT>
            </property>
        </owns>
    </owner>
    <owner>
        <name>Anna</name>
        <owns>
            <property prop_id="a01">
                <DATE_BOUGHT>3</DATE_BOUGHT>
            </property>
            <property prop_id="a03">
                <DATE_BOUGHT>2</DATE_BOUGHT>
            </property>
        </owns>
    </owner>
</MYDATA>
```
<p>We have items and their owners; an owner can own one or more items. I Am trying to write an XSL stylesheet to export all items of one person (Max in this case). It works but I don't know how I can print the items name rather than just the reference id:</p>
<pre class="lang-xml prettyprint-override"><code><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="/">
        <html>
            <head>
                <title>Max's items</title>
            </head>
            <body>
                <h1>Max's items</h1>
                <h2>List of all items owned by Max </h2>
                <table border="1">
                    <tr bgcolor="#9acd32">
                        <th align="left">Title</th>
                        <th align="left">borrowed since</th>
                    </tr>
                    <xsl:for-each select="MYDATA/owner[name = 'Max']/owns/property">
                        <xsl:sort select="DATE_BOUGHT"/>
                        <xsl:key name="item-by-id" match="item" use="@id"/>
                        <tr>
                            <td>
                                <xsl:value-of select="key('item-by-id', @prop_id)/NAME"/>
                            </td>
                            <td>
                                <xsl:value-of select="DATE_BOUGHT"/>
                            </td>
                        </tr>
                    </xsl:for-each>
                </table>
            </body>
        </html>
    </xsl:template>
</xsl:stylesheet>
</code>```

So in the generated output, I don't want a01 but the name of that item "name of item a01":

        <META http-equiv="Content-Type" content="text/html">
            <title>Max's items</title>

Max's items

List of all items owned by Max

                    Name
                    DATE_BOUGHT

                    a01
                    1

                    a02
                    2

```

Title: XSL resolve reference

Body:
Consider the following XML:

<?xml version="1.0" encoding="UTF-8"?>
<MYDATA xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <item id="a01">
        <NAME>name of item a1</NAME>
    </item>
    <item id="a02">
        <NAME>name of item a2</NAME>
    </item>
    <item id="a03">
        <NAME>name of item a3</NAME>
    </item>
    <owner>
        <name>Max</name>
        <owns>
            <property prop_id="a01">
                <DATE_BOUGHT>1</DATE_BOUGHT>
            </property>
            <property prop_id="a02">
                <DATE_BOUGHT>2</DATE_BOUGHT>
            </property>
        </owns>
    </owner>
    <owner>
        <name>Anna</name>
        <owns>
            <property prop_id="a01">
                <DATE_BOUGHT>3</DATE_BOUGHT>
            </property>
            <property prop_id="a03">
                <DATE_BOUGHT>2</DATE_BOUGHT>
            </property>
        </owns>
    </owner>
</MYDATA>

We have items and their owners; an owner can own one or more items. I Am trying to write an XSL stylesheet to export all items of one person (Max in this case). It works but I don't know how I can print the items name rather than just the reference id:

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="/">

                <title>Max's items</title>

Max's items

List of all items owned by Max

                        Title
                        borrowed since

                    <xsl:for-each select="MYDATA/owner[name = 'Max']/owns/property">
                        <xsl:sort select="DATE_BOUGHT"/>
                        <xsl:key name="item-by-id" match="item" use="@id"/>

                                <xsl:value-of select="key('item-by-id', @prop_id)/NAME"/>

                                <xsl:value-of select="DATE_BOUGHT"/>

                    </xsl:for-each>

    </xsl:template>
</xsl:stylesheet>

So in the generated output, I don't want a01 but the name of that item "name of item a01":

        <META http-equiv="Content-Type" content="text/html">
            <title>Max's items</title>

Max's items

List of all items owned by Max

                    Name
                    DATE_BOUGHT

                    a01
                    1

                    a02
                    2


问:
The Error "Only Absolute URLs are Supported" is Preventing my Github action File from Succeeding
My website uses data from a CMS. So I have a Github action in place to run deployments every 2 hours during the weekdays.

The GitHub action fails every time, So i inspected it several times and realized its the error "Only Absolute URLs are allowed" that is preventing the action from succeeding.

What do I do to fix this error? This is not working

const dev = process.env.NODE_ENV !== 'production';

export const API_BASE_URL = dev
  ? 'http://localhost:3000'
  : 'https://vercel.com';

```
<p>This is the GitHub action file:</p>
<pre class="lang-js prettyprint-override"><code>
name: Deploy to Vercel

on:
  schedule:
    - cron: '0 */2 * * 1-5' # runs every two hours on weekdays

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Set up Node.js
        uses: actions/setup-node@v1
        with:
          node-version: 16.x
      - name: Install dependencies
        run: npm install
      - name: Build and deploy
        run: |
          npm run build
          vercel --prod --hook-url "${{ secrets.DEPLOY_TO_VERCEL_HOOK }}"

</code>```

Here's the error on Github
enter image description here

I've inspected all the URLs I have in the slug file. None of them is a relative URL. The Vercel deploy hook URL that I'm using is formatted like this: https://api.vercel.com/v1/integrations/deploy/someIds. That's not an absolute URL in my understanding. The CMS i'm fetching from is Hygraph and the content URL is not an absolute one.

I also added this code to /config/index.js but it didnt work:

const dev = process.env.NODE_ENV !== 'production';

export const API_BASE_URL = dev ? 'http://localhost:3000' : 'https://your_deployment.server.com';
```

Body:
My website uses data from a CMS. So I have a Github action in place to run deployments every 2 hours during the weekdays.

The GitHub action fails every time, So i inspected it several times and realized its the error "Only Absolute URLs are allowed" that is preventing the action from succeeding.

What do I do to fix this error? This is not working

const dev = process.env.NODE_ENV !== 'production';

export const API_BASE_URL = dev
  ? 'http://localhost:3000'
  : 'https://vercel.com';

This is the GitHub action file:

name: Deploy to Vercel

on:
  schedule:
    - cron: '0 */2 * * 1-5' # runs every two hours on weekdays

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Set up Node.js
        uses: actions/setup-node@v1
        with:
          node-version: 16.x
      - name: Install dependencies
        run: npm install
      - name: Build and deploy
        run: |
          npm run build
          vercel --prod --hook-url "${{ secrets.DEPLOY_TO_VERCEL_HOOK }}"

Here's the error on Github
enter image description here

I've inspected all the URLs I have in the slug file. None of them is a relative URL. The Vercel deploy hook URL that I'm using is formatted like this: https://api.vercel.com/v1/integrations/deploy/someIds. That's not an absolute URL in my understanding. The CMS i'm fetching from is Hygraph and the content URL is not an absolute one.

I also added this code to /config/index.js but it didnt work:

const dev = process.env.NODE_ENV !== 'production';

export const API_BASE_URL = dev ? 'http://localhost:3000' : 'https://your_deployment.server.com';


问:
Save Byte array to Pgn or Jpg
I read a Tiff file, and I want to make a tile and save it to Png or Jpg. I successfully did this process saving in Tif format, as shown in the attached code, defining DO_TIFF. But I cannot do the same in Jpeg or Png format. The program always crashes at the location indicated in the comment. I have read various indications in Internet, but I cannot find my mistake. The code should be selfexplaining. The difference is that I used two dimensional array in the Tif case, while a one dimensional one in the JPEG case.</p>
```<code>        private static void MakeTile(string Original,int X,int Y,int W,int H,string TileName)
        {
            using (Tiff input = Tiff.Open(Original, "r"))
            {
                int width = input.GetField(TiffTag.IMAGEWIDTH)[0].ToInt();
                int height = input.GetField(TiffTag.IMAGELENGTH)[0].ToInt();
                int samplesPerPixel = input.GetField(TiffTag.SAMPLESPERPIXEL)[0].ToInt();
                int bitsPerSample = input.GetField(TiffTag.BITSPERSAMPLE)[0].ToInt();
                int photo = input.GetField(TiffTag.PHOTOMETRIC)[0].ToInt();
                Rectangle roi = new Rectangle(X*samplesPerPixel, Y, W * samplesPerPixel, H);

                int scanlineSize = input.ScanlineSize();

                int nz = roi.Width;

                if (roi.Left+nz > scanlineSize)
                {
                    nz = scanlineSize-roi.Left;
                }
#if DO_JPEG
                byte[] output = new byte[roi.Height * nz];
#endif

#if DO_TIFF
                byte[][] output = new byte[roi.Height][];
#endif
                byte[] buffer = new byte[scanlineSize];

                W = nz / samplesPerPixel;

                for (int i = roi.Top,k=0; i < roi.Bottom; ++i,k++)
                {
                    input.ReadScanline(buffer, i);
#if DO_TIFF
                    output[k] = new byte[nz];
#endif
                    for (int j=0;j<nz;j++)
                    {
#if DO_TIFF
                        output[k][j]= buffer[roi.Left + j];
#endif

#if DO_JPEG
                        output[j+k*nz] = buffer[roi.Left+j];
#endif
                    }
                }
#if DO_JPEG
                using (Image image = Image.FromStream(new MemoryStream(output)))// error here: Patrameter Not Valid
                {
                    image.Save("output.jpg", ImageFormat.Jpeg);  // Or Png
                }
#endif
#if DO_TIFF
                using (Tiff Foutput = Tiff.Open(TileName, "w"))
                {
                    Foutput.SetField(TiffTag.IMAGEWIDTH, W);
                    Foutput.SetField(TiffTag.IMAGELENGTH, H);
                    Foutput.SetField(TiffTag.SAMPLESPERPIXEL, samplesPerPixel);
                    Foutput.SetField(TiffTag.BITSPERSAMPLE, bitsPerSample);
                    Foutput.SetField(TiffTag.ROWSPERSTRIP, Foutput.DefaultStripSize(0));
                    Foutput.SetField(TiffTag.PHOTOMETRIC, photo);
                    Foutput.SetField(TiffTag.PLANARCONFIG, PlanarConfig.CONTIG);

                    // change orientation of the image
                    // output.SetField(TiffTag.ORIENTATION, Orientation.RIGHTBOT);

                    for (int i = 0; i < H; ++i)
                        Foutput.WriteScanline(output[i], i);
                }
#endif
            }

        }
    }
</code>```

Title: Save Byte array to Pgn or Jpg

Body:
I read a Tiff file, and I want to make a tile and save it to Png or Jpg. I successfully did this process saving in Tif format, as shown in the attached code, defining DO_TIFF. But I cannot do the same in Jpeg or Png format. The program always crashes at the location indicated in the comment. I have read various indications in Internet, but I cannot find my mistake. The code should be selfexplaining. The difference is that I used two dimensional array in the Tif case, while a one dimensional one in the JPEG case.

        private static void MakeTile(string Original,int X,int Y,int W,int H,string TileName)
        {
            using (Tiff input = Tiff.Open(Original, "r"))
            {
                int width = input.GetField(TiffTag.IMAGEWIDTH)[0].ToInt();
                int height = input.GetField(TiffTag.IMAGELENGTH)[0].ToInt();
                int samplesPerPixel = input.GetField(TiffTag.SAMPLESPERPIXEL)[0].ToInt();
                int bitsPerSample = input.GetField(TiffTag.BITSPERSAMPLE)[0].ToInt();
                int photo = input.GetField(TiffTag.PHOTOMETRIC)[0].ToInt();
                Rectangle roi = new Rectangle(X*samplesPerPixel, Y, W * samplesPerPixel, H);

                int scanlineSize = input.ScanlineSize();

                int nz = roi.Width;

                if (roi.Left+nz > scanlineSize)
                {
                    nz = scanlineSize-roi.Left;
                }
#if DO_JPEG
                byte[] output = new byte[roi.Height * nz];
#endif

#if DO_TIFF
                byte[][] output = new byte[roi.Height][];
#endif
                byte[] buffer = new byte[scanlineSize];

                W = nz / samplesPerPixel;

                for (int i = roi.Top,k=0; i < roi.Bottom; ++i,k++)
                {
                    input.ReadScanline(buffer, i);
#if DO_TIFF
                    output[k] = new byte[nz];
#endif
                    for (int j=0;j<nz;j++)
                    {
#if DO_TIFF
                        output[k][j]= buffer[roi.Left + j];
#endif

#if DO_JPEG
                        output[j+k*nz] = buffer[roi.Left+j];
#endif
                    }
                }
#if DO_JPEG
                using (Image image = Image.FromStream(new MemoryStream(output)))// error here: Patrameter Not Valid
                {
                    image.Save("output.jpg", ImageFormat.Jpeg);  // Or Png
                }
#endif
#if DO_TIFF
                using (Tiff Foutput = Tiff.Open(TileName, "w"))
                {
                    Foutput.SetField(TiffTag.IMAGEWIDTH, W);
                    Foutput.SetField(TiffTag.IMAGELENGTH, H);
                    Foutput.SetField(TiffTag.SAMPLESPERPIXEL, samplesPerPixel);
                    Foutput.SetField(TiffTag.BITSPERSAMPLE, bitsPerSample);
                    Foutput.SetField(TiffTag.ROWSPERSTRIP, Foutput.DefaultStripSize(0));
                    Foutput.SetField(TiffTag.PHOTOMETRIC, photo);
                    Foutput.SetField(TiffTag.PLANARCONFIG, PlanarConfig.CONTIG);

                    // change orientation of the image
                    // output.SetField(TiffTag.ORIENTATION, Orientation.RIGHTBOT);

                    for (int i = 0; i < H; ++i)
                        Foutput.WriteScanline(output[i], i);
                }
#endif
            }

        }
    }


问:
pymodbus read_input_registers error : ModbusIOException' object has no attribute 'registers'
I'm using pymodbus (v3.0.2) on ubuntu linux server 22.04
using to read modbus rtu device (masibus datalogger)
when I'm  trying to read input register, it some time returning the data which is correct, and most of the time giving this error
"ModbusIOException' object has no attribute 'registers'

here is my code to

```<code>#!/usr/bin/python3
import time
import datetime
from datetime import timedelta
import mysql.connector
from mysql.connector import Error
from pymodbus.client import ModbusSerialClient

client = ModbusSerialClient(
    method="rtu",
    port="/dev/ttyUSB0",
    stopbits=2,
    bytesize=8,
    parity="N",
    baudrate=9600)
connection = client.connect()
if connection is True:
    print("Modbus Connection Successful")

def read_mbr():
    readreg = client.read_input_registers(0, 15, unit=1).registers
    # print(f'Data = {readreg}')
    return readreg
while(1):
    try:
        data = read_mbr()
        print(data)
    except Exception as e:
        print(e)
        time.sleep(1)
    time.sleep(1)
</code>```

I've tried to add more time detail, but did not worked.

Body:
I'm using pymodbus (v3.0.2) on ubuntu linux server 22.04
using to read modbus rtu device (masibus datalogger)
when I'm  trying to read input register, it some time returning the data which is correct, and most of the time giving this error
"ModbusIOException' object has no attribute 'registers'

here is my code to

#!/usr/bin/python3
import time
import datetime
from datetime import timedelta
import mysql.connector
from mysql.connector import Error
from pymodbus.client import ModbusSerialClient

client = ModbusSerialClient(
    method="rtu",
    port="/dev/ttyUSB0",
    stopbits=2,
    bytesize=8,
    parity="N",
    baudrate=9600)
connection = client.connect()
if connection is True:
    print("Modbus Connection Successful")

def read_mbr():
    readreg = client.read_input_registers(0, 15, unit=1).registers
    # print(f'Data = {readreg}')
    return readreg
while(1):
    try:
        data = read_mbr()
        print(data)
    except Exception as e:
        print(e)
        time.sleep(1)
    time.sleep(1)

I've tried to add more time detail, but did not worked.


问:
Kafka 3.3.1 Fencing broker 1 because its session has timed out. (
In the next few days we have a weird behaviour on kafka (which is just one node, one broker setup). so all producers are unable to produce and in the kafka log the only error log (at about that time) is

Fencing broker 1 because its session has timed out. (

what dos it mean? what timeout?

abalyze logs. shoult be no drops in single node kafka


问:
Div disappears when window resize
I am trying to make a small animation of two circles for the web, and I want it to be responsive so when I make the window "phone size" everything will still be there.

Each circle is a div, and both of them are inside a div with the class animation container. Everything changes sizes and is shown on the screen except the circles.

I have tried resizing them to see if they were too big, but it hasn't worked. I don't know what to do, help, please. We are using react and some bootstrap, but I think it has to do more with the CSS.

JSX Code

```<code>import React, { useEffect, useState } from 'react'
import { Container, Form } from 'react-bootstrap'
import useAuth from './useAuth'
import TrackSearchResult from './TrackSearchResult'
import SpotifyWebApi from 'spotify-web-api-node'
import Player from './Player'
import Navbar from './Navbar'
import './Dashboard.css'
const spotifyApi = new SpotifyWebApi({
    clientId: '0d9e02c2d8504b05a8ae26f33b338212',
});

export default function Dashboard({code}) {
    const accessToken = useAuth(code)
    const [search,setSearch] = useState('')
    const [searchResults,setSearchResults] = useState([])
    const [playingTrack, setPlayingTrack] = useState()

    function chooseTrack(track) {
        setPlayingTrack(track)
        //we clear the search when we choose a track
        setSearch('')
    }

    useEffect(()=>{
        if (!accessToken) return
        spotifyApi.setAccessToken(accessToken)
    },[accessToken])

    useEffect(()=>{
        if (!search) return setSearchResults([])
        if (!accessToken) return

        let cancel = false //so we just search on request at a time
        spotifyApi.searchTracks(search)
        .then(res => {
            if (cancel) return
            setSearchResults(res.body.tracks.items.map(track => {
                //loop through all images and get the smallest image
                const smallestAlbumImage = track.album.images.reduce((smallest, image) => {
                    if (image.height < smallest.height) {
                        return image
                    } else {
                        return smallest
                    }
                }, track.album.images[0])

                return {
                    artist: track.artists[0].name,
                    title: track.name,
                    uri: track.uri,
                    albumUrl: smallestAlbumImage.url
                }
            }))
        })
        return () => cancel = true
    },[search, accessToken])

    return (
    <Container className="d-flex flex-column pt-2 pb-0 px-0" style={{height:"100vh"}}>
        {/* <Form.Control
        type="search"
        placeholder="Search Songs/Artists"
        value={search}
        onChange={e => setSearch(e.target.value)} //to get the value of search
        /> */}
        <div className="animation-container align-items-center">
            <div
            id="shape-1"
            class="
                    rounded-circle
                    position-absolute
                    opacity-70
                    scale-up-center
                    d-none d-md-block
                    "
            ></div>
            <div
            id="shape-2"
            class="
                    rounded-circle
                    position-absolute
                    opacity-70
                    scale-up-center
                    fade-delay-2000
                    d-none d-md-block
                    "
            ></div>
        </div>
        <div className="song-container">
            <div className="song">song1</div>
            <div className="song">song2</div>
            <div className="song">song3</div>
            <div className="song">song4</div>
        </div>
        <div className="flex-grow-1 my-2" style={{overflowY: "auto"}}>
            {/* VERY IMPORTANT
            Here we use track arrow function with parentesis and not curly brackets
            maybe because it returns a component */}
            {searchResults.map(track =>(
                <TrackSearchResult track={track} key={track.uri} chooseTrack={chooseTrack}/>
            ))}
        </div>
        <div><Player accessToken={accessToken} trackUri={playingTrack?.uri}/></div>
        <Navbar/>
    </Container>
    )
}
</code>```

CSS:

```<code>.animation-container {
    height: 50vh;
    max-width: 20vh;
    align-items: center;
    justify-content: center;
    display: flex;
    margin: 0 auto;
}

#shape-1,
#shape-2,
{
    min-width: 25vh;
    height: 25vh;
    mix-blend-mode: multiply;
    filter: blur(24px);

}

#shape-1 {
    background-color: hsl(225, 100%, 43%);
    left: 99vh;
}

#shape-2 {
    background-color: hsl(0, 92%, 64%);
    right: 99vh;
}

.scale-up-center {
    animation: scale-up-center 7s cubic-bezier(0.39, 0.575, 0.565, 1) infinite both;
}

@keyframes scale-up-center {
    0% {
        transform: translate(0px, 0px) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

.fade-delay-2000 {
    animation-delay: 2s;
}

.fade-delay-4000 {
    animation-delay: 4s;
}

.song-container {
    padding: 3em;
    display: grid;
    grid-gap: 2em;
    height: auto;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.song {
    padding: 2em;
    border-radius: .3em;
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.1);
    height: 10vh;
    width: auto;
}
</code>```

Title: Div disappears when window resize

Body:
I am trying to make a small animation of two circles for the web, and I want it to be responsive so when I make the window "phone size" everything will still be there.

Each circle is a div, and both of them are inside a div with the class animation container. Everything changes sizes and is shown on the screen except the circles.

I have tried resizing them to see if they were too big, but it hasn't worked. I don't know what to do, help, please. We are using react and some bootstrap, but I think it has to do more with the CSS.

JSX Code

import React, { useEffect, useState } from 'react'
import { Container, Form } from 'react-bootstrap'
import useAuth from './useAuth'
import TrackSearchResult from './TrackSearchResult'
import SpotifyWebApi from 'spotify-web-api-node'
import Player from './Player'
import Navbar from './Navbar'
import './Dashboard.css'
const spotifyApi = new SpotifyWebApi({
    clientId: '0d9e02c2d8504b05a8ae26f33b338212',
});

export default function Dashboard({code}) {
    const accessToken = useAuth(code)
    const [search,setSearch] = useState('')
    const [searchResults,setSearchResults] = useState([])
    const [playingTrack, setPlayingTrack] = useState()

    function chooseTrack(track) {
        setPlayingTrack(track)
        //we clear the search when we choose a track
        setSearch('')
    }

    useEffect(()=>{
        if (!accessToken) return
        spotifyApi.setAccessToken(accessToken)
    },[accessToken])

    useEffect(()=>{
        if (!search) return setSearchResults([])
        if (!accessToken) return

        let cancel = false //so we just search on request at a time
        spotifyApi.searchTracks(search)
        .then(res => {
            if (cancel) return
            setSearchResults(res.body.tracks.items.map(track => {
                //loop through all images and get the smallest image
                const smallestAlbumImage = track.album.images.reduce((smallest, image) => {
                    if (image.height < smallest.height) {
                        return image
                    } else {
                        return smallest
                    }
                }, track.album.images[0])

                return {
                    artist: track.artists[0].name,
                    title: track.name,
                    uri: track.uri,
                    albumUrl: smallestAlbumImage.url
                }
            }))
        })
        return () => cancel = true
    },[search, accessToken])

    return (
    <Container className="d-flex flex-column pt-2 pb-0 px-0" style={{height:"100vh"}}>
        {/* <Form.Control
        type="search"
        placeholder="Search Songs/Artists"
        value={search}
        onChange={e => setSearch(e.target.value)} //to get the value of search
        /> */}

song1

song2

song3

song4

            {/* VERY IMPORTANT
            Here we use track arrow function with parentesis and not curly brackets
            maybe because it returns a component */}
            {searchResults.map(track =>(
                <TrackSearchResult track={track} key={track.uri} chooseTrack={chooseTrack}/>
            ))}

<Player accessToken={accessToken} trackUri={playingTrack?.uri}/>

        <Navbar/>
    </Container>
    )
}

CSS:

.animation-container {
    height: 50vh;
    max-width: 20vh;
    align-items: center;
    justify-content: center;
    display: flex;
    margin: 0 auto;
}

#shape-1,
#shape-2,
{
    min-width: 25vh;
    height: 25vh;
    mix-blend-mode: multiply;
    filter: blur(24px);

}

#shape-1 {
    background-color: hsl(225, 100%, 43%);
    left: 99vh;
}

#shape-2 {
    background-color: hsl(0, 92%, 64%);
    right: 99vh;
}

.scale-up-center {
    animation: scale-up-center 7s cubic-bezier(0.39, 0.575, 0.565, 1) infinite both;
}

@keyframes scale-up-center {
    0% {
        transform: translate(0px, 0px) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

.fade-delay-2000 {
    animation-delay: 2s;
}

.fade-delay-4000 {
    animation-delay: 4s;
}

.song-container {
    padding: 3em;
    display: grid;
    grid-gap: 2em;
    height: auto;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.song {
    padding: 2em;
    border-radius: .3em;
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.1);
    height: 10vh;
    width: auto;
}


问:
When can a described Pending Intent could exist?
While setting PendingIntent on a button click and choosing the Flag, Now I feel like not understanding the concept of existence of Pending Intent with the same description.

refer the documentation :

```<code>    /**
 * Flag indicating that if the described PendingIntent already exists,
 * the current one should be canceled before generating a new one.
 * For use with {@link #getActivity}, {@link #getBroadcast}, and
 * {@link #getService}. <p>You can use
 * this to retrieve a new PendingIntent when you are only changing the
 * extra data in the Intent; by canceling the previous pending intent,
 * this ensures that only entities given the new data will be able to
 * launch it.  If this assurance is not an issue, consider
 * {@link #FLAG_UPDATE_CURRENT}.
 */
public static final int FLAG_CANCEL_CURRENT = 1<<28;
</code>```

In My Case, I have to set on click pendingIntent for 2 views on a remote view ( used in App Widget ), and the pending intent is same in the sense, I want to start the same activity on click of both of the views.

Lets say, What if I create as instance of PendingIntent with FLAG_CANCEL_CURRENT flag and set the same pendingIntent on onClick of these two views?
Or By using different request Codes we can get 2 unique Pending Intent doing the same thing.

Body:
While setting PendingIntent on a button click and choosing the Flag, Now I feel like not understanding the concept of existence of Pending Intent with the same description.

refer the documentation :

    /**
 * Flag indicating that if the described PendingIntent already exists,
 * the current one should be canceled before generating a new one.
 * For use with {@link #getActivity}, {@link #getBroadcast}, and
 * {@link #getService}.
You can use
 * this to retrieve a new PendingIntent when you are only changing the
 * extra data in the Intent; by canceling the previous pending intent,
 * this ensures that only entities given the new data will be able to
 * launch it.  If this assurance is not an issue, consider
 * {@link #FLAG_UPDATE_CURRENT}.
 */
public static final int FLAG_CANCEL_CURRENT = 1<<28;

In My Case, I have to set on click pendingIntent for 2 views on a remote view ( used in App Widget ), and the pending intent is same in the sense, I want to start the same activity on click of both of the views.

Lets say, What if I create as instance of PendingIntent with FLAG_CANCEL_CURRENT flag and set the same pendingIntent on onClick of these two views?
Or By using different request Codes we can get 2 unique Pending Intent doing the same thing.


问:
How to solve "TypeError: __str__ returned non-string (type Image)" problem in python?
This is my Main codes. i got "TypeError: _str_ returned non-string (type Image)" problem.

```<code>_testMenu = Image.open('MENU.png')
global tempMenu
tempMenu = _testMenu.resize((60, 60))
MenuImg = ImageTk.PhotoImage(tempMenu)

MenuBtn = Label(Main, image=MenuImg, bg='#001746')
MenuBtn.place(x=250, y=410)
MenuBtn.bind('<Button-1>', MenuPage)
</code>```

^^^ Main code(outside def)

Error code:TypeError: _str_ returned non-string (type Image)

How to solve problem? the problem code is here:

```<code>def information():
    inform = Tk()
    inform.title("Information")
    inform.geometry("320x480")
    inform.resizable("false", "false")

    _Menu = tkinter.PhotoImage(tempMenu, master=inform)
    MenuBtn = Label(inform, image=_Menu, bg='#001746')
    MenuBtn.place(x=250, y=410)
    MenuBtn.bind('<Button-1>', MenuPage)
^^^^^^^^^^^^^^problem here^^^^^^^^^^^^^^
</code>```

I expect a problem in variable. but I couldn't solve anyway. Please tell me what causes the problem

Body:
This is my Main codes. i got "TypeError: _str_ returned non-string (type Image)" problem.

_testMenu = Image.open('MENU.png')
global tempMenu
tempMenu = _testMenu.resize((60, 60))
MenuImg = ImageTk.PhotoImage(tempMenu)

MenuBtn = Label(Main, image=MenuImg, bg='#001746')
MenuBtn.place(x=250, y=410)
MenuBtn.bind('<Button-1>', MenuPage)

^^^ Main code(outside def)

Error code:TypeError: _str_ returned non-string (type Image)

How to solve problem? the problem code is here:

def information():
    inform = Tk()
    inform.title("Information")
    inform.geometry("320x480")
    inform.resizable("false", "false")

    _Menu = tkinter.PhotoImage(tempMenu, master=inform)
    MenuBtn = Label(inform, image=_Menu, bg='#001746')
    MenuBtn.place(x=250, y=410)
    MenuBtn.bind('<Button-1>', MenuPage)
^^^^^^^^^^^^^^problem here^^^^^^^^^^^^^^

I expect a problem in variable. but I couldn't solve anyway. Please tell me what causes the problem


问:
Android XML Weird insertion
When I first examine my program's (C#, Xamarin, Android) XML files in one file activity_main.xml, some process inserts these:

```<code>            <TextView
                android:minWidth="30px"
                android:minHeight="30px"
                xmlns="http://schemas.android.com/apk/res/android"
                android:id="@+id/textView7" />
            <TextView
                android:minWidth="30px"
                android:minHeight="30px"
                xmlns="http://schemas.android.com/apk/res/android"
                android:id="@+id/textView8" />
            <TextView
                android:minWidth="30px"
                android:minHeight="30px"
                xmlns="http://schemas.android.com/apk/res/android"
                android:id="@+id/textView9" />
</code>```

always the same at the end of every tablerow element. Once I delete them they do not reoccur  unless I reopen that file.

Title: Android XML Weird insertion

Body:
When I first examine my program's (C#, Xamarin, Android) XML files in one file activity_main.xml, some process inserts these:

            <TextView
                android:minWidth="30px"
                android:minHeight="30px"
                xmlns="http://schemas.android.com/apk/res/android"
                android:id="@+id/textView7" />
            <TextView
                android:minWidth="30px"
                android:minHeight="30px"
                xmlns="http://schemas.android.com/apk/res/android"
                android:id="@+id/textView8" />
            <TextView
                android:minWidth="30px"
                android:minHeight="30px"
                xmlns="http://schemas.android.com/apk/res/android"
                android:id="@+id/textView9" />

always the same at the end of every tablerow element. Once I delete them they do not reoccur  unless I reopen that file.