raysan5 / raylib

A simple and easy-to-use library to enjoy videogames programming
http://www.raylib.com
zlib License
22.6k stars 2.27k forks source link

[module] InitWindow( 0, 0, "Test"); crash on Samsung S24 dark mode (OK on Tablet S9+) #4319

Closed GreenSnakeLinux closed 1 month ago

GreenSnakeLinux commented 2 months ago

Issue description

Samsung S24 crash: Fatal signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0xb40000750db3b102 in tid 32009 on method: InitWindow(0, 0, "Test");

it works when I turn off: Dark mode Strangely it work in dark mode on my Tablet S9+ In the dump you can see somewhere this message: [Unsupported](failed: Unsupported color space, but assume as Success for ANGLE.)

Environment

Android on Samsung S24 in dark mode

Dump: --------- beginning of main 09-13 20:00:36.640 1404 926 D TrafficStats: tagSocket(923) with statsTag=0xffffffff, statsUid=-1 09-13 20:00:36.644 1404 926 D TrafficStats: tagSocket(949) with statsTag=0xffffffff, statsUid=-1 09-13 20:00:36.645 1404 926 D TrafficStats: tagSocket(1000) with statsTag=0xffffffff, statsUid=-1 09-13 20:00:36.750 3994 3994 D BoundBrokerSvc: onUnbind: Intent { act=com.google.android.gms.safetynet.service.START pkg=com.google.android.gms } 09-13 20:00:36.848 1404 926 D WifiConnectivityMonitor.DnsThread: [|208] [] [] 09-13 20:00:36.850 1404 2487 D WifiConnectivityMonitor.NetworkStatsAnalyzer: DNS resultType : 0, responseTime : 208 09-13 20:00:36.850 1404 2485 D OpenNetworkQos[4.00]: updateBssidLatestDnsResultType - result: 0 09-13 20:00:36.850 1404 2485 D OpenNetworkQos[4.00]: updateBssidNoInternet: mBssidNoInternet = false 09-13 20:00:36.850 1404 2485 D OpenNetworkQos[4.00]: getOpenNetworkQosNoInternetStatus: false 09-13 20:00:36.850 1404 2485 D OpenNetworkQos[4.00]: getOpenNetworkQosScores: 19 0 0 --------- beginning of system 09-13 20:00:36.851 1404 2485 D KNOX_MDM_SettingsProvider: isChangeAllowed() : name = wifi_wcm_qos_sharing_score_summary 09-13 20:00:36.851 1404 2485 I WifiProfileShare: network QoS data was changed (internet), updateQoSData networkType: true, qosData: false 09-13 20:00:36.852 1404 3659 V WifiProfileShare.Caster: update wips network, size: 0 09-13 20:00:36.853 1404 3659 D WifiProfileShare: nearby scanning settings run 09-13 20:00:36.853 1404 3659 D WifiProfileShare: network score provider settings enabled 09-13 20:00:36.853 1404 3659 D OpenNetworkQos[4.00]: getOpenNetworkQosScores: 19 0 0 09-13 20:00:36.853 1404 3659 D OpenNetworkQos[4.00]: getOpenNetworkQosNoInternetStatus: false 09-13 20:00:36.853 1404 3659 I WifiProfileShare.Caster: current network type: 0, score: [19, 0, 0] 09-13 20:00:36.854 1404 3659 V WifiProfileShare.Cache: update network score 78:b2:13:::05 09-13 20:00:36.855 1404 3659 D WifiProfileShare.ScanMatcher: getMcfDataList size:2 09-13 20:00:36.855 1404 3659 I WifiProfileShare.Caster: qos data was updated , before:type:QOS, pBssid:e3:ec:7d, qosData:4b after:type:QOS, pBssid:e3:ec:7d, qosData:4b 09-13 20:00:36.856 1404 3659 I [MCFSDK_android_1.2.13040]_4_McfCasterImpl: isNetworkEnabled - type : 1 ret : true 09-13 20:00:36.856 1404 3659 D WifiProfileShare.McfCast: -ME--- mIsNetworkEnabled :true 09-13 20:00:36.856 1404 3659 D WifiProfileShare.McfCast: updateQoSData ignored, same contents 09-13 20:00:36.856 1404 3659 D WifiProfileShare.MCF: success update QosData ! 09-13 20:00:36.857 1404 3659 I [MCFSDK_android_1.2.13040]_4_McfCasterImpl: isNetworkEnabled - type : 1 ret : true 09-13 20:00:36.857 1404 3659 D WifiProfileShare.McfCast: -ME--- mIsNetworkEnabled :true 09-13 20:00:36.857 1404 3659 D WifiProfileShare.McfCast: -ME--- updatePasswordDate pwdData size:2 09-13 20:00:37.442 1404 2443 D SemCellularStateManager: onSignalStrengthsChanged: mCellularSignalLevel=4 09-13 20:00:37.446 2785 2785 I EPDG -- SIM0 [SMARTCELLULAR]: onSignalStrengthsChanged: SignalStrength:{mCdma=Invalid,mGsm=Invalid,mWcdma=Invalid,mTdscdma=Invalid,mLte=CellSignalStrengthLte: rssi=-91 rsrp=-90 rsrq=-6 rssnr=14 cqiTableIndex=1 cqi=12 ta=2147483647 level=4 parametersUseForLevel=0,mNr=Invalid,SignalBarInfo{ lteLevel=4 },rat=14,primary=CellSignalStrengthLte} 09-13 20:00:37.447 2785 4692 I EPDG -- SIM0 [SMARTCELLULAR]: lastLteRSRP is -92 currentLteRSRP is -90 lastLteRSRQ is -7 currentLteRSRQ is -6 lastLteSNR is 26 currentLteSNR is 14 09-13 20:00:37.452 2582 2582 D StatusBarIconController: ignoring old pipeline callbacks, because the new mobile icons are enabled 09-13 20:00:38.161 1404 4420 D SemWifiUsabilityStatsMonitor: onWifiUsabilityStats - seqNum 131, isSameBssidAndFreq true 09-13 20:00:38.163 1404 2458 I SemWifiLinkQualityMonitor: Link stat: 988 / 5 / 1,48 (40) / 780 / -42.0 || 100.0 : 780,00 / 0.5 : 0,68 / 0.55 : 0,01 / G (G) || 0,08 ms / 96,83 Mbps / N || 0 / N / 0 N / 0 Y 09-13 20:00:38.215 5287 5287 I SDHMS:LOAD: type: LoadsFreqs, value: 0:0:0:672000:672000:672000:683519:1152000:672000:0:0:0 09-13 20:00:38.398 568 568 D io_stats: !@ Read_top(KB): earchbox:search(5774) 1100 .gms.persistent(3377) 36 09-13 20:00:38.399 568 568 D io_stats: !@ Write_top(KB): earchbox:search(5774) 456 f2fs_ckpt-254:5(3369) 128 .gms.persistent(3377) 4 09-13 20:00:38.434 1404 2010 D InputReader: Btn_touch(4): value=1 when=2090.777063 09-13 20:00:38.436 1404 2010 I InputReader: Touch event's action is 0x0 (id=5, t=0) [pCnt=1, s=0.196 ] when=2090.777063 09-13 20:00:38.442 1404 2009 I InputDispatcher: Delivering touch to (2582): action: 0x4, f=0x0, d=0, 'ce4d97b', t=1 09-13 20:00:38.442 1404 2009 I InputDispatcher: Delivering touch to (32727): action: 0x0, f=0x0, d=0, '59288e9', t=1 +(-77,1079)(0.75) 09-13 20:00:38.443 1404 2009 D PowerManagerService: [api] userActivityFromNative : touch displayId=0 eventTime=2090777 09-13 20:00:38.444 2582 2582 D SearcleGestureHandler: allowGesture: false 09-13 20:00:38.445 1404 1535 I GestureDetector: obtain mCurrentDownEvent. id: 414299260 caller: com.android.server.wm.SystemGesturesPointerEventListener.onPointerEvent:204 com.android.server.wm.PointerEventDispatcher.onInputEvent:53 android.view.InputEventReceiver.dispatchInputEvent:337 09-13 20:00:38.445 1404 1535 I GestureDetector: obtain mCurrentDownEvent. id: 414299260 caller: com.android.server.wm.SystemPerformancePointerEventListener.onPointerEvent:89 com.android.server.wm.PointerEventDispatcher.onInputEvent:53 android.view.InputEventReceiver.dispatchInputEvent:337 09-13 20:00:38.446 1404 2009 D PowerManagerService: UserActivityStateListenerState: 1 09-13 20:00:38.447 1255 2105 I VSyncReactor: Current= 60, Period= 60, Distance= 0 09-13 20:00:38.450 5287 5287 I SemDvfsHyPerManager: acquire hyper - TATouchBoost/5287@26, type = 1090523139 09-13 20:00:38.452 1404 1535 I GestureDetector: obtain mCurrentMotionEventRaw. action: 2 id: 823094364 09-13 20:00:38.453 1142 1168 I HYPER-HAL: [RequestManager.cpp]acquire(): Acquired ID : 14116667 [5287 / 26] HINT : list : [TABoost / 1] [TIMEOUT / 1500] 09-13 20:00:38.453 1404 1535 I GestureDetector: obtain mCurrentMotionEventRaw. action: 2 id: 823094364 09-13 20:00:38.463 1255 2105 I VSyncReactor: Current= 60, Period= 60, Distance= 58 09-13 20:00:38.466 32727 32727 I ViewRootImpl@f78657c[MainActivity]: ViewPostIme pointer 0 09-13 20:00:38.469 32727 32727 D AnimatorSet: mReversing is false. Don't call initChildren. 09-13 20:00:38.511 1255 1255 I SurfaceFlinger: SFWD update time=2090855829257 09-13 20:00:38.516 1404 2010 D InputReader: Btn_touch(4): value=0 when=2090.859568 09-13 20:00:38.516 1404 2010 I InputReader: Touch event's action is 0x1 (id=5, t=0) [pCnt=1, s=] when=2090.859568 09-13 20:00:38.517 1404 2009 I InputDispatcher: Delivering touch to (32727): action: 0x1, f=0x0, d=0, '59288e9', t=1 +(-77,1079)(0.75) 09-13 20:00:38.519 32727 32727 I ViewRootImpl@f78657c[MainActivity]: ViewPostIme pointer 1 09-13 20:00:38.523 1404 3567 D ActivityTaskManager: startActivityAsUser: callingPid=32727, callingUid=10548, caller=com.android.server.wm.ActivityTaskManagerService.startActivityAsUser:1870 com.android.server.wm.ActivityTaskManagerService.startActivity:1844 android.app.IActivityTaskManager$Stub.onTransact:1369 com.android.server.wm.ActivityTaskManagerService.onTransact:7025 android.os.Binder.execTransactInternal:1375 android.os.Binder.execTransact:1311 09-13 20:00:38.524 1404 1537 I ChimeraSystemEventListener: appLaunchIntent package name is: xxxx 09-13 20:00:38.525 1404 3567 D CompatibilityChangeReporter: Compat change id reported: 265464455; UID 10548; state: DISABLED 09-13 20:00:38.526 1404 3567 D CompatibilityChangeReporter: Compat change id reported: 265452344; UID 10548; state: DISABLED 09-13 20:00:38.526 1404 3567 D CompatibilityChangeReporter: Compat change id reported: 266124927; UID 10548; state: DISABLED 09-13 20:00:38.526 1404 3567 D CompatibilityChangeReporter: Compat change id reported: 265451093; UID 10548; state: DISABLED 09-13 20:00:38.526 1404 3567 D CompatibilityChangeReporter: Compat change id reported: 265456536; UID 10548; state: DISABLED 09-13 20:00:38.527 1404 3567 D CompatibilityChangeReporter: Compat change id reported: 255940284; UID 10548; state: DISABLED 09-13 20:00:38.527 1404 3567 D CompatibilityChangeReporter: Compat change id reported: 236283604; UID 10548; state: DISABLED 09-13 20:00:38.527 1404 3567 D CompatibilityChangeReporter: Compat change id reported: 263959004; UID 10548; state: DISABLED 09-13 20:00:38.527 1404 3567 D CompatibilityChangeReporter: Compat change id reported: 264304459; UID 10548; state: DISABLED 09-13 20:00:38.528 1404 3567 D CompatibilityChangeReporter: Compat change id reported: 264301586; UID 10548; state: DISABLED 09-13 20:00:38.528 1404 3567 D CompatibilityChangeReporter: Compat change id reported: 254631730; UID 10548; state: DISABLED 09-13 20:00:38.528 1404 3567 D CompatibilityChangeReporter: Compat change id reported: 273509367; UID 10548; state: DISABLED 09-13 20:00:38.528 1404 3567 D CompatibilityChangeReporter: Compat change id reported: 263259275; UID 10548; state: DISABLED 09-13 20:00:38.528 1404 3567 D CompatibilityChangeReporter: Compat change id reported: 174042980; UID 10548; state: DISABLED 09-13 20:00:38.529 1404 3567 D CompatibilityChangeReporter: Compat change id reported: 174042936; UID 10548; state: DISABLED 09-13 20:00:38.529 1404 3567 D CompatibilityChangeReporter: Compat change id reported: 181136395; UID 10548; state: DISABLED 09-13 20:00:38.533 1404 3567 D CompatibilityChangeReporter: Compat change id reported: 194480991; UID 10548; state: ENABLED 09-13 20:00:38.534 1404 3567 D WindowManager: Transition is created, t=TransitionRecord{55d5d0e id=-1 type=OPEN flags=0x0}, caller=com.android.server.wm.TransitionController.createAndStartCollecting:1830 com.android.server.wm.ActivityStarter.startActivityUnchecked:2374 com.android.server.wm.ActivityStarter.executeRequest:1959 com.android.server.wm.ActivityStarter.execute:1075 com.android.server.wm.ActivityTaskManagerService.startActivityAsUser:2011 09-13 20:00:38.534 1404 3567 D WindowManager: SyncGroup is created, id=67, name=Transition, caller=com.android.server.wm.BLASTSyncEngine$SyncGroup.:0 com.android.server.wm.BLASTSyncEngine.prepareSyncSet:523 com.android.server.wm.BLASTSyncEngine.startSyncSet:528 com.android.server.wm.Transition.startCollecting:704 com.android.server.wm.TransitionController.moveToCollecting:360 com.android.server.wm.TransitionController.createAndStartCollecting:1831 com.android.server.wm.ActivityStarter.startActivityUnchecked:2374 09-13 20:00:38.535 1404 3567 W WindowManager: setSyncMethod, id=67, method=0, caller=com.android.server.wm.Transition.startCollecting:706 com.android.server.wm.TransitionController.moveToCollecting:360 com.android.server.wm.TransitionController.createAndStartCollecting:1831 09-13 20:00:38.535 1404 3567 V WindowManager: Start collecting in Transition: TransitionRecord{55d5d0e id=67 type=OPEN flags=0x0}, caller=com.android.server.wm.TransitionController.createAndStartCollecting:1831 com.android.server.wm.ActivityStarter.startActivityUnchecked:2374 com.android.server.wm.ActivityStarter.executeRequest:1959 com.android.server.wm.ActivityStarter.execute:1075 com.android.server.wm.ActivityTaskManagerService.startActivityAsUser:2011 09-13 20:00:38.535 1404 3567 V WindowManager: Collecting in transition 67: ActivityRecord{1ef132f u0 xxxx/.NativeLoader, caller=com.android.server.wm.Transition.collect:753 com.android.server.wm.TransitionController.collect:975 com.android.server.wm.ActivityStarter.startActivityUnchecked:2407 com.android.server.wm.ActivityStarter.executeRequest:1959 com.android.server.wm.ActivityStarter.execute:1075 09-13 20:00:38.535 1404 3567 D ActivityTaskManager: TaskLaunchParamsModifier:task=null activity=ActivityRecord{1ef132f u0 xxxx/.NativeLoader t-1} display-area-from-source=DefaultTaskDisplayArea_d0@29686288 display-id=0 task-display-area-windowing-mode=1 suggested-display-area=DefaultTaskDisplayArea_d0@29686288 09-13 20:00:38.536 1404 3567 D ActivityTaskManager: TaskLaunchParamsModifier:task=Task{1cb7e14 #8706 type=standard A=10548:xxxx} activity=ActivityRecord{1ef132f u0 xxxx/.NativeLoader t-1} display-area-from-source=DefaultTaskDisplayArea_d0@29686288 display-id=0 task-display-area-windowing-mode=1 suggested-display-area=DefaultTaskDisplayArea_d0@29686288 inherit-from-source=fullscreen non-freeform-task-display-area display-area=DefaultTaskDisplayArea_d0@29686288 activity-requested-landscape freeform-size-mismatch=Rect(554, 144 - 1650, 1004) 09-13 20:00:38.536 1404 3567 I SemDvfsHyPerManager: acquire hyper - AMS_ACT_START/1404@19, type = -999 09-13 20:00:38.537 1404 3567 D ActivityManagerPerformance: AMP_acquire() ACT_START 09-13 20:00:38.537 1142 1168 I HYPER-HAL: [RequestManager.cpp]acquire(): Acquired ID : 1013195 [1404 / 19] HINT : AMS_ACT_START list : 09-13 20:00:38.537 1404 3567 D CompatibilityChangeReporter: Compat change id reported: 184838306; UID 10548; state: DISABLED 09-13 20:00:38.537 1404 3567 D CompatibilityChangeReporter: Compat change id reported: 185004937; UID 10548; state: DISABLED 09-13 20:00:38.538 1255 1288 I SurfaceFlinger: id=1053 createSurf, flag=84004, ActivityRecord{1ef132f u0 xxxx/.NativeLoader t8706}#1053 09-13 20:00:38.539 1404 3567 V WindowManager: Checking theme of starting window: 0x7f130244 09-13 20:00:38.539 1404 3567 V WindowManager: Translucent=false Floating=false ShowWallpaper=false Disable=false 09-13 20:00:38.539 1404 3567 D ActivityTaskManager: scheduleTopResumedActivityChanged, onTop=false, r=ActivityRecord{2f0c067 u0 xxxx/.MainActivity t8706}, caller=com.android.server.wm.ActivityTaskSupervisor.updateTopResumedActivityIfNeeded:2873 com.android.server.wm.TaskFragment.setResumedActivity:580 com.android.server.wm.TaskFragment.onActivityStateChanged:889 com.android.server.wm.ActivityRecord.setState:6892 com.android.server.wm.TaskFragment.startPausing:2012 com.android.server.wm.TaskFragment.startPausing:1956 09-13 20:00:38.540 1404 3567 V WindowManager: Collecting in transition 67: ActivityRecord{1ef132f u0 xxxx/.NativeLoader t8706}, caller=com.android.server.wm.Transition.collect:753 com.android.server.wm.Transition.collectExistenceChange:936 com.android.server.wm.TransitionController.collectExistenceChange:1025 com.android.server.wm.ActivityStarter.handleStartResult:2632 com.android.server.wm.ActivityStarter.startActivityUnchecked:2415 09-13 20:00:38.541 1404 3567 E Transition: Trying to add a ready-group twice: Display{#0 state=ON size=2340x1080 ROTATION_90} 09-13 20:00:38.541 1404 3567 V WindowManager: Requesting StartTransition: TransitionRecord{55d5d0e id=67 type=OPEN flags=0x0}, caller=com.android.server.wm.ActivityStarter.handleStartResult:2666 com.android.server.wm.ActivityStarter.startActivityUnchecked:2415 com.android.server.wm.ActivityStarter.executeRequest:1959 com.android.server.wm.ActivityStarter.execute:1075 com.android.server.wm.ActivityTaskManagerService.startActivityAsUser:2011 09-13 20:00:38.541 1404 3567 D CompatibilityChangeReporter: Compat change id reported: 194833441; UID 10548; state: ENABLED 09-13 20:00:38.541 1404 3567 I ActivityTaskManager: START u0 {cmp=xxxx/.NativeLoader} with LAUNCH_SINGLE_TASK from uid 10548 (BAL_ALLOW_VISIBLE_WINDOW) result code=0 09-13 20:00:38.541 1404 3567 I Pageboost: stop alp 09-13 20:00:38.541 1404 3567 I UMR : ReclaimerPolicyManager: update policy 0 -> 3 09-13 20:00:38.542 32727 32727 D AnimatorSet: mReversing is false. Don't call initChildren. 09-13 20:00:38.542 3708 3708 E pageboostd: Received HALT command code 2 09-13 20:00:38.543 2582 2631 V WindowManagerShell: Transition requested: android.os.BinderProxy@6838deb TransitionRequestInfo { type = OPEN, triggerTask = TaskInfo{userId=0 taskId=8706 displayId=0 isRunning=true baseIntent=Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=xxxx/.MainActivity } baseActivity=ComponentInfo{xxxx/xxxx.MainActivity} topActivity=ComponentInfo{xxxx/xxxx.NativeLoader} origActivity=null realActivity=ComponentInfo{xxxx/xxxx.MainActivity} numActivities=2 lastActiveTime=3607144 supportsMultiWindow=true resizeMode=1 isResizeable=true minWidth=-1 minHeight=-1 maxWidth=-1 maxHeight=-1 defaultMinSize=220 token=WCT{android.window.IWindowContainerToken$Stub$Proxy@a033748} topActivityType=1 pictureInPictureParams=null shouldDockBigOverlays=false launchIntoPipHostTaskId=-1 lastParentTaskIdBeforePip=-1 displayCutoutSafeInsets=Rect(78, 0 - 0, 0) topActivityInfo=ActivityInfo{7e6a9e1 xxxx.NativeLoader} launchCookies=[] positionInParent=Point(0, 0) parentTaskId=-1 isFocused=true isVisible=true isVisibleRequested=true isSleeping=false topActivityInSizeCompat=false topActivityEligibleForLetterboxEducation= false topActivityLetterboxed= false isFromDoubleTap= false topActivityLetterboxVerticalPosition= -1 topActivityLetterboxHorizontalPosition= -1 topActivityLetterboxWidth=-1 topActivityLetterboxHeight=-1 locusId=null displayAreaFeatureId=1 cameraCompatControlState=hidden originallySupportedMultiWindow=true hasWallpaper=false topActivityInFixedAspectRatio=false rootAffinity=10548:xxxx topActivityInDisplayCompat=false topActivityInBoundsCompat=false topActivityBounds=null singleTapFromLetterbox=false isTopTaskInStage=false topActivityUiMode=33 CoverLauncherWidgetTask=false CoverScreenTask=false isAllowedSeamlessRotation=false isTopTransparentActivity=false hasPopOver=false}, remoteTransition = null, displayChange = null } 09-13 20:00:38.544 1404 3657 V WindowManager: Starting Transition 67, caller=com.android.server.wm.WindowOrganizerController.startTransition:382 com.android.server.wm.WindowOrganizerController.startTransition:313 android.window.IWindowOrganizerController$Stub.onTransact:257 09-13 20:00:38.544 1404 3657 V Transition: allReady query: used=true, override=false, defer=0, states=Display{#0 state=ON size=2340x1080 ROTATION_90}:false 09-13 20:00:38.545 1404 1537 D SGM:FgCheckThread: notePauseComponent(), received pkgName: xxxx, userId: 0 09-13 20:00:38.545 1404 2424 I CocktailBarManagerServiceContainer: handleMessage: entry what = 6 09-13 20:00:38.545 1404 2424 I CocktailBarManagerServiceImpl: notePauseComponent : no active host 09-13 20:00:38.545 1404 3567 V WindowManager: Collecting in transition 67: ActivityRecord{1ef132f u0 xxxx/.NativeLoader t8706}, caller=com.android.server.wm.Transition.collect:753 com.android.server.wm.TransitionController.collect:975 com.android.server.wm.ActivityRecord.setVisibility:6429 com.android.server.wm.ActivityRecord.setVisibility:6381 com.android.server.wm.ActivityRecord.makeVisibleIfNeeded:7188 09-13 20:00:38.545 1404 3567 V WindowManager: Collecting in transition 67: ActivityRecord{2f0c067 u0 xxxx/.MainActivity t8706}, caller=com.android.server.wm.Transition.collect:753 com.android.server.wm.TransitionController.collect:975 com.android.server.wm.ActivityRecord.setVisibility:6429 com.android.server.wm.ActivityRecord.setVisibility:6381 com.android.server.wm.ActivityRecord.makeInvisible:7223 09-13 20:00:38.545 1404 3567 D WindowManager: prepareSync , mPrepareSyncSeqId=0, win=Window{59288e9 u0 xxxx/xxxx.MainActivity} 09-13 20:00:38.545 1404 3567 D WindowManager: VisibleRequested updated, r=ActivityRecord{2f0c067 u0 xxxx/.MainActivity t8706} 09-13 20:00:38.546 1404 3567 V WindowManager: rotationForOrientation(orient=SCREEN_ORIENTATION_UNSPECIFIED (-1), last=ROTATION_90 (1)); user=ROTATION_0 (0) 09-13 20:00:38.546 1404 3567 D WindowManager: rotationForOrientation, orientationSource=ActivityRecord{1ef132f u0 xxxx/.NativeLoader t8706} 09-13 20:00:38.546 1404 3567 V WindowManager: rotationForOrientation(orient=SCREEN_ORIENTATION_UNSPECIFIED (-1), last=ROTATION_90 (1)); user=ROTATION_0 (0) 09-13 20:00:38.546 1404 3567 D WindowManager: rotationForOrientation, orientationSource=ActivityRecord{1ef132f u0 xxxx/.NativeLoader t8706} 09-13 20:00:38.546 1404 3567 V WindowManager: Computed rotation=ROTATION_90 (1) for display id=0 based on lastOrientation=SCREEN_ORIENTATION_UNSPECIFIED (-1) and oldRotation=ROTATION_90 (1), caller=com.android.server.wm.DisplayRotation.updateOrientation:525 com.android.server.wm.DisplayContent.updateOrientation:2181 com.android.server.wm.DisplayContent.updateOrientation:2097 com.android.server.wm.RootWindowContainer.ensureVisibilityAndConfig:2083 com.android.server.wm.ActivityTaskSupervisor.realStartActivityLocked:956 com.android.server.wm.ActivityTaskSupervisor.startSpecificActivity:1296 09-13 20:00:38.546 1404 3567 V WindowManager: rotationForOrientation(orient=SCREEN_ORIENTATION_UNSPECIFIED (-1), last=ROTATION_90 (1)); user=ROTATION_0 (0) 09-13 20:00:38.546 1404 3567 D WindowManager: rotationForOrientation, orientationSource=ActivityRecord{1ef132f u0 xxxx/.NativeLoader t8706} 09-13 20:00:38.546 1404 3567 V WindowManager: Collecting in transition 67: ActivityRecord{1ef132f u0 xxxx/.NativeLoader t8706}, caller=com.android.server.wm.Transition.collect:753 com.android.server.wm.TransitionController.collect:975 com.android.server.wm.ActivityRecord.setVisibility:6429 com.android.server.wm.ActivityRecord.setVisibility:6381 com.android.server.wm.ActivityTaskSupervisor.realStartActivityLocked:965 09-13 20:00:38.546 1404 3567 D SGM:PkgDataHelper: notifyAppCreate(), pkgName: xxxx, userId: 0, sendRet: true 09-13 20:00:38.546 1404 2031 D SGM:FgCheckThread: onLooperPrepared(), msg: MSG_APP_CREATE, pkgName: xxxx, userId: 0 09-13 20:00:38.547 1404 3567 D InputDispatcher: Focused application(0): ActivityRecord{1ef132f u0 xxxx/.NativeLoader t8706} 09-13 20:00:38.547 1404 3567 V WindowManager: Changing focus from Window{59288e9 u0 xxxx/xxxx.MainActivity} to null displayId=0 Callers=com.android.server.wm.RootWindowContainer.updateFocusedWindowLocked:581 com.android.server.wm.WindowManagerService.updateFocusedWindowLocked:6910 com.android.server.wm.ActivityTaskManagerService.setLastResumedActivityUncheckLocked:6164 com.android.server.wm.ActivityTaskSupervisor.updateTopResumedActivityIfNeeded:2894 09-13 20:00:38.547 1404 3567 V SystemKeyManager: updateFocusedWindow() is called, 09-13 20:00:38.547 1404 3567 D ActivityTaskManager: scheduleTopResumedActivityChanged, onTop=true, r=ActivityRecord{1ef132f u0 xxxx/.NativeLoader t8706}, caller=com.android.server.wm.ActivityTaskSupervisor.scheduleTopResumedActivityStateIfNeeded:2904 com.android.server.wm.ActivityTaskSupervisor.updateTopResumedActivityIfNeeded:2896 com.android.server.wm.TaskFragment.setResumedActivity:580 com.android.server.wm.TaskFragment.onActivityStateChanged:904 com.android.server.wm.ActivityRecord.setState:6892 com.android.server.wm.Task.minimalResumeActivityLocked:6255 09-13 20:00:38.547 32727 936 I FA : Tag Manager is not found and thus will not be used 09-13 20:00:38.548 1404 3567 V WindowManager: Collecting in transition 67: ActivityRecord{1ef132f u0 xxxx/.NativeLoader t8706}, caller=com.android.server.wm.Transition.collect:753 com.android.server.wm.TransitionController.collect:975 com.android.server.wm.ActivityRecord.setVisibility:6429 com.android.server.wm.ActivityRecord.setVisibility:6381 com.android.server.wm.ActivityRecord.completeResumeLocked:7499 09-13 20:00:38.548 1404 3567 V Transition: allReady query: used=true, override=false, defer=0, states=Display{#0 state=ON size=2340x1080 ROTATION_90}:true 09-13 20:00:38.548 1404 3567 D WindowManagerServiceExt: notifyOccludeChangeNotice: cn=ComponentInfo{xxxx/xxxx.NativeLoader} occludesParent=true isInSplitScreenMode=false styleFloating=false caller=com.android.server.wm.ActivityRecord.completeResumeLocked:7556 com.android.server.wm.Task.minimalResumeActivityLocked:6256 com.android.server.wm.ActivityTaskSupervisor.realStartActivityLocked:1187 com.android.server.wm.ActivityTaskSupervisor.startSpecificActivity:1296 com.android.server.wm.TaskFragment.resumeTopActivity:1895 09-13 20:00:38.549 32727 936 E FA : Missing google_app_id. Firebase Analytics disabled. See https://goo.gl/NAOOOI 09-13 20:00:38.549 1404 3567 D WindowManager: SyncGroup 67: Unfinished container: ActivityRecord{1ef132f u0 xxxx/.NativeLoader t8706} mSyncState=2 09-13 20:00:38.553 1404 2424 I CocktailBarManagerServiceContainer: handleMessage: entry what = 5 09-13 20:00:38.553 1404 2424 I CocktailBarManagerServiceImpl: noteResumeComponent : no active host 09-13 20:00:38.556 1404 1537 I GameSDK@LifeCycle: noteResumeComponent(): package name : xxxx 09-13 20:00:38.557 1404 1537 D SGM:FgCheckThread: noteResumeComponent(), received pkgName: xxxx, userId: 0 09-13 20:00:38.557 1404 2031 D SGM:FgCheckThread: onLooperPrepared(), msg: MSG_APP_RESUME, pkgName: xxxx, userid: 0 09-13 20:00:38.557 1404 2031 D SGM:FgCheckThread: handleResume(). 09-13 20:00:38.558 1404 2031 D SGM:FgCheckThread: sendFocusOutConditionally() - mPrevNotiPkg: (unknown), userId: 0 09-13 20:00:38.558 1404 2031 D SGM:FgCheckThread: handleResume(). pkgName: xxxx, userId: 0, isTunableApp: null 09-13 20:00:38.558 1404 2031 D SGM:FgCheckThread: notifyFocusInOut(). of pkg: xxxx, type: 4, isTunableApp: false, userId: 0 09-13 20:00:38.558 1404 2031 D SGM:FgCheckThread: notifyFocusInOut(). unexpected mPrevNotiType: -1 09-13 20:00:38.558 1404 2031 D SGM:SystemHelper: callReleaseBlock needReleaseBlock:false 09-13 20:00:38.558 3994 3994 D BoundBrokerSvc: onBind: Intent { act=com.google.android.gms.measurement.START pkg=com.google.android.gms } 09-13 20:00:38.558 3994 3994 D BoundBrokerSvc: Loading bound service for intent: Intent { act=com.google.android.gms.measurement.START pkg=com.google.android.gms } 09-13 20:00:38.562 1255 1255 I BpBinder: onLastStrongRef automatically unlinking death recipients: 09-13 20:00:38.569 32727 32727 I DecorView: setWindowBackground: isPopOver=false color=ff121212 d=android.graphics.drawable.ColorDrawable@78d929f 09-13 20:00:38.576 32727 32727 V threaded_app: Creating: 0xb40000794972b730 09-13 20:00:38.576 32727 937 V threaded_app: Config: mcc=208 mnc=10 lang=fr cnt=FR orien=2 touch=3 dens=450 keys=1 nav=1 keysHid=3 navHid=0 sdk=34 size=2 long=2 modetype=1 modenight=2 09-13 20:00:38.576 32727 937 I raylib : Initializing raylib 5.5-dev 09-13 20:00:38.576 32727 937 I raylib : Platform backend: ANDROID 09-13 20:00:38.576 32727 937 I raylib : Supported raylib modules: 09-13 20:00:38.576 32727 937 I raylib : > rcore:..... loaded (mandatory) 09-13 20:00:38.576 32727 937 I raylib : > rlgl:...... loaded (mandatory) 09-13 20:00:38.576 32727 937 I raylib : > rshapes:... loaded (optional) 09-13 20:00:38.576 32727 937 I raylib : > rtextures:. loaded (optional) 09-13 20:00:38.576 32727 937 I raylib : > rtext:..... loaded (optional) 09-13 20:00:38.576 32727 937 I raylib : > rmodels:... loaded (optional) 09-13 20:00:38.576 32727 937 I raylib : > raudio:.... loaded (optional) 09-13 20:00:38.576 32727 937 I raylib : ANDROID: Window orientation set as landscape 09-13 20:00:38.576 32727 937 W raylib : ANDROID: Window orientation changed to portrait 09-13 20:00:38.576 32727 937 I raylib : PLATFORM: ANDROID: Initialized successfully 09-13 20:00:38.579 1404 3657 D InputDispatcher: Focus request (0): but waiting because NO_WINDOW 09-13 20:00:38.579 1404 3657 D InputDispatcher: Focus left window (0): 59288e9 xxxx/xxxx.MainActivity 09-13 20:00:38.581 32727 32727 V threaded_app: Start: 0xb40000794972b730 09-13 20:00:38.581 32727 937 V threaded_app: activityState=10 09-13 20:00:38.582 32727 32727 V threaded_app: Resume: 0xb40000794972b730 09-13 20:00:38.582 32727 937 V threaded_app: activityState=11 09-13 20:00:38.585 32727 32727 I InsetsController: setRequestedVisibleTypes: visible=false, mask=statusBars navigationBars, host=xxxx/xxxx.NativeLoader, from=android.view.InsetsController.controlAnimationUnchecked:1476 android.view.InsetsController.applyAnimation:2040 android.view.InsetsController.applyAnimation:2003 android.view.InsetsController.hide:1434 android.view.InsetsController.hide:1373 android.view.ViewRootImpl.controlInsetsForCompatibility:3570 android.view.ViewRootImpl.setView:1753 android.view.WindowManagerGlobal.addView:600 android.view.WindowManagerImpl.addView:150 android.app.ActivityThread.handleResumeActivity:5646 09-13 20:00:38.586 1404 3657 W WindowManager: Failed looking up window session=Session{a21ad22 32727:u0a10548} callers=com.android.server.wm.WindowManagerService.windowForClientLocked:6748 com.android.server.wm.Session.updateRequestedVisibleTypes:793 android.view.IWindowSession$Stub.onTransact:1145 09-13 20:00:38.587 1404 3333 D CompatibilityChangeReporter: Compat change id reported: 168419799; UID 10548; state: DISABLED 09-13 20:00:38.587 1404 3333 D CompatibilityChangeReporter: Compat change id reported: 273564678; UID 10548; state: DISABLED 09-13 20:00:38.587 1404 3333 D InputTransport: Input channel constructed: 'f383927', fd=923 09-13 20:00:38.587 1404 3333 D InputTransport: Input channel constructed: 'f383927', fd=949 09-13 20:00:38.587 1404 3333 D InputTransport: Input channel constructed: 'f383927', fd=1000 09-13 20:00:38.587 1404 3333 D WindowManager: prepareSync , mPrepareSyncSeqId=0, win=Window{f383927 u0 xxxx/xxxx.NativeLoader} 09-13 20:00:38.587 1255 1288 I SurfaceFlinger: id=1054 createSurf, flag=84004, f383927 xxxx/xxxx.NativeLoader#1054 09-13 20:00:38.588 1404 3333 D RestrictionPolicy: isScreenCaptureEnabled : ret=true userId=0 09-13 20:00:38.588 1404 3333 D InputTransport: Input channel destroyed: 'f383927', fd=1000 09-13 20:00:38.591 32727 32727 I InsetsController: onStateChanged: host=xxxx/xxxx.NativeLoader, from=android.view.ViewRootImpl.setView:1797, state=InsetsState: {mDisplayFrame=Rect(0, 0 - 2340, 1080), mDisplayCutout=DisplayCutout{insets=Rect(78, 0 - 0, 0) waterfall=Insets{left=0, top=0, right=0, bottom=0} boundingRect={Bounds=[Rect(0, 514 - 78, 565), Rect(0, 0 - 0, 0), Rect(0, 0 - 0, 0), Rect(0, 0 - 0, 0)]} cutoutPathParserInfo={CutoutPathParserInfo{displayWidth=1080 displayHeight=2340 physicalDisplayWidth=1080 physicalDisplayHeight=2340 density={2.8125} cutoutSpec={M 0,0 H -9.066666666666667 V 27.73333333333333 H 9.066666666666667 V 0 H 0 Z @dp} rotation={1} scale={1.0} physicalPixelDisplaySizeRatio={1.0}}}}, mRoundedCorners=RoundedCorners{[RoundedCorner{position=TopLeft, radius=74, center=Point(74, 74)}, RoundedCorner{position=TopRight, radius=74, center=Point(2266, 74)}, RoundedCorner{position=BottomRight, radius=74, center=Point(2266, 1006)}, RoundedCorner{position=BottomLeft, radius=74, center=Point(74, 1006)}]} mRoundedCornerFrame=Rect(0, 0 - 2340, 1080), mPrivacyIndicatorBounds=PrivacyIndicatorBounds {static bounds=Rect(2216, 0 - 2340, 68) rotation=1}, mDisplayShape=DisplayShape{ spec=1783216382 displayWidth=1440 displayHeight=3120 physicalPixelDisplaySizeRatio=1.0 rotation=1 offsetX=0 offsetY=0 scale=1.0}, mSources= { InsetsSource: {d2350001 mType=navigationBars mFrame=[2205,0][2340,1080] mVisible=true mFlags=[]}, InsetsSource: {d2350004 mType=systemGestures mFrame=[0,0][0,0] mVisible=true mFlags=[]}, InsetsSource: {d2350005 mType=mandatorySystemGestures mFrame=[2205,0][2340,1080] mVisible=true mFlags=[]}, InsetsSource: {d2350006 mType=tappableElement mFrame=[2205,0][2340,1080] mVisible=true mFlags=[]}, InsetsSource: {d2350024 mType=systemGestures mFrame=[0,0][0,0] mVisible=true mFlags=[]}, InsetsSource: {d5a40000 mType=statusBars mFrame=[0,0][2340,68] mVisible=true mFlags=[]}, InsetsSource: {d5a40005 mType=mandatorySystemGestures mFrame=[0,0][2340,68] mVisible=true mFlags=[]}, InsetsSource: {d5a40006 mType=tappableElement mFrame=[0,0][2340,68] mVisible=true mFlags=[]}, InsetsSource: {7 mType=displayCutout mFrame=[0,0][78,1080] mVisible=true mFlags=[]} } 09-13 20:00:38.592 32727 32727 I ViewRootImpl@442b9bb[NativeLoader]: synced displayState. AttachInfo displayState=2 09-13 20:00:38.592 32727 32727 V threaded_app: InputQueueCreated: 0xb40000794972b730 -- 0xb400007a8971a260 09-13 20:00:38.592 32727 937 V threaded_app: APP_CMD_INPUT_CHANGED 09-13 20:00:38.592 32727 937 V threaded_app: Attaching input queue to looper 09-13 20:00:38.593 32727 32727 I ViewRootImpl@442b9bb[NativeLoader]: setView = com.android.internal.policy.DecorView@d593697 TM=true 09-13 20:00:38.597 1404 3333 D CoreBackPreview: Window{f383927 u0 xxxx/xxxx.NativeLoader}: Setting back callback OnBackInvokedCallbackInfo{mCallback=android.window.IOnBackInvokedCallback$Stub$Proxy@cfafd7d, mPriority=0, mIsAnimationCallback=false} 09-13 20:00:38.597 1404 3567 V WindowManager: Relayout Window{f383927 u0 xxxx/xxxx.NativeLoader}: viewVisibility=0 req=2340x1080 ty=1 d0 09-13 20:00:38.597 1404 3567 D RestrictionPolicy: isScreenCaptureEnabled : ret=true userId=0 09-13 20:00:38.598 1255 1288 I SurfaceFlinger: id=1055 createSurf, flag=44004, xxxx/xxxx.NativeLoader$_32727#1055 09-13 20:00:38.598 1404 3567 D WindowManager: makeSurface duration=1 name=xxxx/xxxx.NativeLoader$_32727 09-13 20:00:38.599 1404 3567 D WindowManager: SyncGroup 67: Unfinished container: ActivityRecord{1ef132f u0 xxxx/.NativeLoader t8706} mSyncState=2 09-13 20:00:38.600 1404 3567 V WindowManager: Changing focus from null to Window{f383927 u0 xxxx/xxxx.NativeLoader} displayId=0 Callers=com.android.server.wm.RootWindowContainer.updateFocusedWindowLocked:581 com.android.server.wm.WindowManagerService.updateFocusedWindowLocked:6910 com.android.server.wm.WindowManagerService.relayoutWindow:2777 com.android.server.wm.Session.relayout:282 09-13 20:00:38.600 1404 3567 I WindowManager: Cancelling animation restarting=true, leash=Surface(name=Surface(name=634c0b1 StatusBar)/@0x8cc35d - animation-leash of insets_animation)/@0xdb47564 09-13 20:00:38.600 1404 3567 I WindowManager: Reparenting to original parent: Surface(name=WindowToken{887803c type=2000 android.os.BinderProxy@e00380e})/@0x663b4d2, destroy=false, surface=Surface(name=634c0b1 StatusBar)/@0x8cc35d 09-13 20:00:38.600 1404 3567 I WindowManager: Reparenting to leash, surface=Surface(name=634c0b1 StatusBar)/@0x8cc35d, leashParent=Surface(name=WindowToken{887803c type=2000 android.os.BinderProxy@e00380e})/@0x663b4d2 09-13 20:00:38.600 1255 1288 I SurfaceFlinger: id=1056 createSurf, flag=24000, Surface(name=634c0b1 StatusBar)/@0x8cc35d - animation-leash of insets_animation#1056 09-13 20:00:38.600 1404 3567 D WindowManager: makeSurface duration=0 leash=Surface(name=Surface(name=634c0b1 StatusBar)/@0x8cc35d - animation-leash of insets_animation)/@0x66540c3 09-13 20:00:38.600 1404 3567 D InsetsSourceProvider: updateControlForTarget: control=InsetsSourceControl: {d5a40000 mType=statusBars initiallyVisible mSurfacePosition=Point(0, 0) mInsetsHint=Insets{left=0, top=68, right=0, bottom=0}}, target=Window{f383927 u0 xxxx/xxxx.NativeLoader}, from=com.android.server.wm.InsetsStateController.onControlTargetChanged:363 com.android.server.wm.InsetsStateController.onBarControlTargetChanged:329 com.android.server.wm.InsetsPolicy.updateBarControlTarget:173 com.android.server.wm.InsetsPolicy.updateSystemBars:843 com.android.server.wm.DisplayPolicy.updateSystemBarsLw:3484 09-13 20:00:38.600 1404 3567 I WindowManager: Cancelling animation restarting=true, leash=Surface(name=Surface(name=ce4d97b NavigationBar0)/@0x68a4877 - animation-leash of insets_animation)/@0x2c66482 09-13 20:00:38.600 1404 3567 I WindowManager: Reparenting to original parent: Surface(name=WindowToken{3838d16 type=2019 android.os.BinderProxy@6c179bb})/@0xdff4ce4, destroy=false, surface=Surface(name=ce4d97b NavigationBar0)/@0x68a4877 09-13 20:00:38.600 1404 3567 I WindowManager: Reparenting to leash, surface=Surface(name=ce4d97b NavigationBar0)/@0x68a4877, leashParent=Surface(name=WindowToken{3838d16 type=2019 android.os.BinderProxy@6c179bb})/@0xdff4ce4 09-13 20:00:38.601 1255 1288 I SurfaceFlinger: id=1057 createSurf, flag=24000, Surface(name=ce4d97b NavigationBar0)/@0x68a4877 - animation-leash of insets_animation#1057 09-13 20:00:38.601 1404 3567 D WindowManager: makeSurface duration=1 leash=Surface(name=Surface(name=ce4d97b NavigationBar0)/@0x68a4877 - animation-leash of insets_animation)/@0xdbef479 09-13 20:00:38.601 1404 3567 D InsetsSourceProvider: updateControlForTarget: control=InsetsSourceControl: {d2350001 mType=navigationBars initiallyVisible mSurfacePosition=Point(2205, 0) mInsetsHint=Insets{left=0, top=0, right=135, bottom=0}}, target=Window{f383927 u0 xxxx/xxxx.NativeLoader}, from=com.android.server.wm.InsetsStateController.onControlTargetChanged:363 com.android.server.wm.InsetsStateController.onBarControlTargetChanged:332 com.android.server.wm.InsetsPolicy.updateBarControlTarget:173 com.android.server.wm.InsetsPolicy.updateSystemBars:843 com.android.server.wm.DisplayPolicy.updateSystemBarsLw:3484 09-13 20:00:38.601 1404 3567 D WindowManager: updateSystemBarAttributes: displayId=0, win=Window{f383927 u0 xxxx/xxxx.NativeLoader}, navColorWin=Window{59288e9 u0 xxxx/xxxx.MainActivity}, focusedCanBeNavColorWin=false, behavior=2, appearance=0, statusBarAppearanceRegions=[AppearanceRegion{ bounds=[78,0][2340,1080]}], requestedVisibilities=-12, from=com.android.server.wm.DisplayPolicy.focusChangedLw:2988 com.android.server.wm.DisplayContent.updateFocusedWindowLocked:4900 com.android.server.wm.RootWindowContainer.updateFocusedWindowLocked:581 09-13 20:00:38.601 1404 3567 V SystemKeyManager: updateFocusedWindow() is called, xxxx/xxxx.NativeLoader 09-13 20:00:38.601 2582 2582 D KeyguardSecAffordanceView: reset right:false 09-13 20:00:38.602 2582 2582 D KeyguardSecAffordanceView: reset right:true 09-13 20:00:38.602 1404 3567 V WindowManager: Relayout hash=f383927, pid=32727, syncId=-1: mAttrs={(0,0)(fillxfill) sim={adjust=resize forwardNavigation} layoutInDisplayCutoutMode=shortEdges ty=BASE_APPLICATION wanim=0x1030303 09-13 20:00:38.602 1404 3567 V WindowManager: fl=81810580 09-13 20:00:38.602 1404 3567 V WindowManager: pfl=12008040 09-13 20:00:38.602 1404 3567 V WindowManager: vsysui=1706 09-13 20:00:38.602 1404 3567 V WindowManager: bhv=SHOW_TRANSIENT_BARS_BY_SWIPE 09-13 20:00:38.602 1404 3567 V WindowManager: fitSides= naviIconColor=0} 09-13 20:00:38.602 2582 2582 D KeyguardTouchAnimator: reset unlockExecuted=false 09-13 20:00:38.602 2582 2582 D KeyguardEditModeAnimatorController: reset false 09-13 20:00:38.602 2582 2582 D KeyguardEditModeAnimatorController: long pressed false 09-13 20:00:38.602 2582 2582 D KeyguardEditModeAnimatorController: resetViews 09-13 20:00:38.602 2582 2582 D KeyguardEditModeController: cancel() true 09-13 20:00:38.602 2582 2582 D KeyguardTouchAnimator: resetChildViewVI(): false 09-13 20:00:38.603 1404 939 I SystemUiVisibilityPolicyController: handleMessage: entry what = 1 09-13 20:00:38.603 2582 2582 D Navbar.Store: handleEvent(0) OnNavBarWindowStateHidden(noArguments=true) [Module] NavBarHelper 09-13 20:00:38.604 2582 2582 D SysUiState: SysUiState changed: old=0x10020000 new=0x10020002 09-13 20:00:38.605 3097 30102 I HoneySpace.SystemUiRepository: systemUiFlags: navbar_hidden|allow_gesture|awake 09-13 20:00:38.605 3097 3268 I HoneySpace.TaskbarEventTracker: invokeEvent() called with: event = SystemUiStateChanged(stateFlags=268566530) 09-13 20:00:38.605 32727 32727 I InsetsController: onStateChanged: host=xxxx/xxxx.NativeLoader, from=android.view.ViewRootImpl.relayoutWindow:10165, state=InsetsState: {mDisplayFrame=Rect(0, 0 - 2340, 1080), mDisplayCutout=DisplayCutout{insets=Rect(78, 0 - 0, 0) waterfall=Insets{left=0, top=0, right=0, bottom=0} boundingRect={Bounds=[Rect(0, 514 - 78, 565), Rect(0, 0 - 0, 0), Rect(0, 0 - 0, 0), Rect(0, 0 - 0, 0)]} cutoutPathParserInfo={CutoutPathParserInfo{displayWidth=1080 displayHeight=2340 physicalDisplayWidth=1080 physicalDisplayHeight=2340 density={2.8125} cutoutSpec={M 0,0 H -9.066666666666667 V 27.73333333333333 H 9.066666666666667 V 0 H 0 Z @dp} rotation={1} scale={1.0} physicalPixelDisplaySizeRatio={1.0}}}}, mRoundedCorners=RoundedCorners{[RoundedCorner{position=TopLeft, radius=74, center=Point(74, 74)}, RoundedCorner{position=TopRight, radius=74, center=Point(2266, 74)}, RoundedCorner{position=BottomRight, radius=74, center=Point(2266, 1006)}, RoundedCorner{position=BottomLeft, radius=74, center=Point(74, 1006)}]} mRoundedCornerFrame=Rect(0, 0 - 2340, 1080), mPrivacyIndicatorBounds=PrivacyIndicatorBounds {static bounds=Rect(2216, 0 - 2340, 68) rotation=1}, mDisplayShape=DisplayShape{ spec=1783216382 displayWidth=1440 displayHeight=3120 physicalPixelDisplaySizeRatio=1.0 rotation=1 offsetX=0 offsetY=0 scale=1.0}, mSources= { InsetsSource: {d2350001 mType=navigationBars mFrame=[2205,0][2340,1080] mVisible=true mFlags=[]}, InsetsSource: {d2350004 mType=systemGestures mFrame=[0,0][0,0] mVisible=true mFlags=[]}, InsetsSource: {d2350005 mType=mandatorySystemGestures mFrame=[2205,0][2340,1080] mVisible=true mFlags=[]}, InsetsSource: {d2350006 mType=tappableElement mFrame=[2205,0][2340,1080] mVisible=true mFlags=[]}, InsetsSource: {d2350024 mType=systemGestures mFrame=[0,0][0,0] mVisible=true mFlags=[]}, InsetsSource: {d5a40000 mType=statusBars mFrame=[0,0][2340,68] mVisible=true mFlags=[]}, InsetsSource: {d5a40005 mType=mandatorySystemGestures mFrame=[0,0][2340,68] mVisible=true mFlags=[]}, InsetsSource: {d5a40006 mType=tappableElement mFrame=[0,0][2340,68] mVisible=true mFlags=[]}, InsetsSource: {3 mType=ime mFrame=[0,0][0,0] mVisible=false mFlags=[]}, InsetsSource: {7 mType=displayCutout mFrame=[0,0][78,1080] mVisible=true mFlags=[]} } 09-13 20:00:38.607 32727 32727 I BLASTBufferQueue_Java: new BLASTBufferQueue, mName= ViewRootImpl@442b9bb[NativeLoader] mNativeObject= 0xb4000078c97036f0 sc.mNativeObject= 0xb400007ad9708190 caller= android.view.ViewRootImpl.updateBlastSurfaceIfNeeded:3085 android.view.ViewRootImpl.relayoutWindow:10224 android.view.ViewRootImpl.performTraversals:4167 android.view.ViewRootImpl.doTraversal:3345 android.view.ViewRootImpl$TraversalRunnable.run:11437 android.view.Choreographer$CallbackRecord.run:1690 android.view.Choreographer$CallbackRecord.run:1699 android.view.Choreographer.doCallbacks:1154 android.view.Choreographer.doFrame:1080 android.view.Choreographer$FrameDisplayEventReceiver.run:1647 09-13 20:00:38.607 32727 32727 I BLASTBufferQueue_Java: update, w= 2340 h= 1080 mName = ViewRootImpl@442b9bb[NativeLoader] mNativeObject= 0xb4000078c97036f0 sc.mNativeObject= 0xb400007ad9708190 format= -1 caller= android.graphics.BLASTBufferQueue.:89 android.view.ViewRootImpl.updateBlastSurfaceIfNeeded:3085 android.view.ViewRootImpl.relayoutWindow:10224 android.view.ViewRootImpl.performTraversals:4167 android.view.ViewRootImpl.doTraversal:3345 android.view.ViewRootImpl$TraversalRunnable.run:11437 09-13 20:00:38.608 32727 32727 I ViewRootImpl@442b9bb[NativeLoader]: Relayout returned: old=(0,0,2340,1080) new=(0,0,2340,1080) relayoutAsync=false req=(2340,1080)0 dur=9 res=0x403 s={true 0xb4000078d9708090} ch=true seqId=0 09-13 20:00:38.608 32727 32727 I ViewRootImpl@442b9bb[NativeLoader]: performConfigurationChange setNightDimText nightDimLevel=0 09-13 20:00:38.609 32727 32727 I ViewRootImpl@442b9bb[NativeLoader]: ViewRootImpl >> surfaceCreated 09-13 20:00:38.609 32727 32727 V threaded_app: NativeWindowCreated: 0xb40000794972b730 -- 0xb4000078d97080a0 09-13 20:00:38.609 32727 937 V threaded_app: APP_CMD_INIT_WINDOW 09-13 20:00:38.609 32727 937 D libEGL : dlopen (libGLESv2_samsung.so) success at 0x36ea38a2dd63dd4f 09-13 20:00:38.609 32727 32727 I ViewRootImpl@442b9bb[NativeLoader]: ViewRootImpl >> surfaceChanged W=2340, H=1080) 09-13 20:00:38.610 32727 32727 V threaded_app: NativeWindowResized: 0xb40000794972b730 -- 0xb4000078d97080a0 09-13 20:00:38.610 32727 937 I raylib : DISPLAY: Upscaling required: Screen size (0x0) smaller than display size (2340x1080) 09-13 20:00:38.610 32727 937 W vulkan : CreateSwapchainKHR(VkSwapchainCreateInfoKHR.imageColorSpace = 1000104013) failed: Unsupported color space, but assume as Success for ANGLE. 09-13 20:00:38.610 32727 32727 V threaded_app: ContentRectChanged: l=0,t=0,r=2340,b=1080 09-13 20:00:38.611 32727 32727 D ViewRootImpl@442b9bb[NativeLoader]: reportNextDraw android.view.ViewRootImpl.performTraversals:4781 android.view.ViewRootImpl.doTraversal:3345 android.view.ViewRootImpl$TraversalRunnable.run:11437 android.view.Choreographer$CallbackRecord.run:1690 android.view.Choreographer$CallbackRecord.run:1699 09-13 20:00:38.611 32727 938 I DynamiteModule: Considering local module com.google.android.gms.ads.dynamite:0 and remote module com.google.android.gms.ads.dynamite:242402501 09-13 20:00:38.611 32727 32727 I ViewRootImpl@442b9bb[NativeLoader]: Setup new sync=wmsSync-ViewRootImpl@442b9bb[NativeLoader]#6 09-13 20:00:38.611 32727 937 I raylib : DISPLAY: Device initialized successfully 09-13 20:00:38.611 32727 937 I raylib : > Display size: 2340 x 1080 09-13 20:00:38.611 32727 937 I raylib : > Screen size: 2340 x 1080 09-13 20:00:38.611 32727 937 I raylib : > Render size: 2340 x 1080 09-13 20:00:38.611 32727 937 I raylib : > Viewport offsets: 0, 0 09-13 20:00:38.611 32727 937 I raylib : GL: Supported extensions count: 162 09-13 20:00:38.611 32727 32727 I ViewRootImpl@442b9bb[NativeLoader]: Creating new active sync group ViewRootImpl@442b9bb[NativeLoader]#7 09-13 20:00:38.611 32727 938 I DynamiteModule: Selected remote version of com.google.android.gms.ads.dynamite, version >= 242402501 09-13 20:00:38.611 32727 937 I raylib : GL: OpenGL device information: 09-13 20:00:38.611 32727 937 I raylib : > Vendor: Samsung Electronics Co., Ltd. 09-13 20:00:38.611 32727 937 I raylib : > Renderer: ANGLE (Samsung Xclipse 940) on Vulkan 1.3.264 09-13 20:00:38.611 32727 937 I raylib : > Version: OpenGL ES 3.2 ANGLE git hash: d2a158dccead 09-13 20:00:38.611 32727 937 I raylib : > GLSL: OpenGL ES GLSL ES 3.20 (ANGLE git hash: d2a158dccead) 09-13 20:00:38.611 32727 937 I raylib : GL: VAO extension detected, VAO functions loaded successfully 09-13 20:00:38.611 32727 32727 I SurfaceSyncGroup: addLocalSync=ViewRootImpl@442b9bb[NativeLoader]#7 to name=wmsSync-ViewRootImpl@442b9bb[NativeLoader]#6, callers=android.window.SurfaceSyncGroup.add:431 android.window.SurfaceSyncGroup.add:392 android.window.SurfaceSyncGroup.add:340 android.view.ViewRootImpl.createSyncIfNeeded:4912 android.view.ViewRootImpl.performTraversals:4796 android.view.ViewRootImpl.doTraversal:3345 09-13 20:00:38.611 32727 937 I raylib : GL: NPOT textures extension detected, full NPOT textures supported 09-13 20:00:38.611 32727 937 I raylib : GL: ETC1 compressed textures supported 09-13 20:00:38.611 32727 937 I raylib : TEXTURE: [ID 1] Texture loaded successfully (1x1 | R8G8B8A8 | 1 mipmaps) 09-13 20:00:38.611 32727 937 I raylib : TEXTURE: [ID 1] Default texture loaded successfully 09-13 20:00:38.611 32727 32727 V threaded_app: NativeWindowRedrawNeeded: 0xb40000794972b730 -- 0xb4000078d97080a0 09-13 20:00:38.612 32727 32727 I SurfaceSyncGroup: onTransactionReady mName=wmsSync-ViewRootImpl@442b9bb[NativeLoader]#6 callback=87953648 09-13 20:00:38.612 32727 32727 I ViewRootImpl@442b9bb[NativeLoader]: reportDrawFinished seqId=0 09-13 20:00:38.612 32727 937 I raylib : SHADER: [ID 1] Vertex shader compiled successfully 09-13 20:00:38.612 2582 2582 D SysUiState: SysUiState changed: old=0x10020002 new=0x10000002 09-13 20:00:38.612 32727 937 I raylib : SHADER: [ID 2] Fragment shader compiled successfully 09-13 20:00:38.613 32727 32727 I ViewRootImpl@f78657c[MainActivity]: handleWindowFocusChanged: 0 0 call from android.view.ViewRootImpl.-$$Nest$mhandleWindowFocusChanged:0 09-13 20:00:38.613 3097 31055 I HoneySpace.SystemUiRepository: systemUiFlags: navbar_hidden|awake 09-13 20:00:38.613 32727 32727 I ImeFocusController: onPreWindowFocus: skipped, hasWindowFocus=false mHasImeFocus=true 09-13 20:00:38.613 32727 32727 I ImeFocusController: onPostWindowFocus: skipped, hasWindowFocus=false mHasImeFocus=true 09-13 20:00:38.613 32727 937 I raylib : SHADER: [ID 3] Program shader loaded successfully 09-13 20:00:38.613 32727 937 I raylib : SHADER: [ID 3] Default shader loaded successfully 09-13 20:00:38.614 1404 1538 D InsetsSourceProvider: updateVisibility: serverVisible=true, clientVisible=false, source=InsetsSource: {d5a40000 mType=statusBars mFrame=[0,0][2340,68] mVisible=false mFlags=[]}, controlTarget=Window{f383927 u0 xxxx/xxxx.NativeLoader}, from=com.android.server.wm.InsetsSourceProvider.setClientVisible:642 com.android.server.wm.InsetsSourceProvider.updateClientVisibility:629 com.android.server.wm.InsetsStateController.onInsetsModified:280 com.android.server.wm.InsetsStateController.lambda$notifyPendingInsetsControlChanged$3:439 com.android.server.wm.InsetsStateController.$r8$lambda$8yykPRG1GyNq_J17QvL9d5xANMc:0 com.android.server.wm.InsetsStateController$$ExternalSyntheticLambda2.run:0 com.android.server.wm.WindowAnimator.executeAfterPrepareSurfacesRunnables:293 com.android.server.wm.WindowAnimator.animate:201 com.android.server.wm.WindowAnimator.lambda$new$1:99 com.android.server.wm.WindowAnimator.$r8$lambda$aHNu1uhcqxihX5NZc4McDDQPAyw:0 09-13 20:00:38.614 1404 1538 D InsetsSourceProvider: updateVisibility: serverVisible=true, clientVisible=false, source=InsetsSource: {d2350001 mType=navigationBars mFrame=[2205,0][2340,1080] mVisible=false mFlags=[]}, controlTarget=Window{f383927 u0 xxxx/xxxx.NativeLoader}, from=com.android.server.wm.InsetsSourceProvider.setClientVisible:642 com.android.server.wm.InsetsSourceProvider.updateClientVisibility:629 com.android.server.wm.InsetsStateController.onInsetsModified:280 com.android.server.wm.InsetsStateController.lambda$notifyPendingInsetsControlChanged$3:439 com.android.server.wm.InsetsStateController.$r8$lambda$8yykPRG1GyNq_J17QvL9d5xANMc:0 com.android.server.wm.InsetsStateController$$ExternalSyntheticLambda2.run:0 com.android.server.wm.WindowAnimator.executeAfterPrepareSurfacesRunnables:293 com.android.server.wm.WindowAnimator.animate:201 com.android.server.wm.WindowAnimator.lambda$new$1:99 com.android.server.wm.WindowAnimator.$r8$lambda$aHNu1uhcqxihX5NZc4McDDQPAyw:0 09-13 20:00:38.614 32727 937 I raylib : RLGL: Render batch vertex buffers loaded successfully in RAM (CPU) 09-13 20:00:38.614 32727 937 I raylib : RLGL: Render batch vertex buffers loaded successfully in VRAM (GPU) 09-13 20:00:38.614 32727 937 I raylib : RLGL: Default OpenGL state initialized successfully 09-13 20:00:38.615 3097 3268 I HoneySpace.TaskbarEventTracker: invokeEvent() called with: event = SystemUiStateChanged(stateFlags=268435458) 09-13 20:00:38.615 32727 938 D DynamitePackage: Instantiated singleton DynamitePackage. 09-13 20:00:38.615 32727 938 D DynamitePackage: Instantiating com.google.android.gms.ads.ChimeraMobileAdsSettingManagerCreatorImpl 09-13 20:00:38.616 1404 1537 D WindowManager: SyncGroup 67: Unfinished container: ActivityRecord{1ef132f u0 xxxx/.NativeLoader t8706} mSyncState=2 --------- beginning of crash 09-13 20:00:38.617 32727 937 F libc : Fatal signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0xb4000078897f80f2 in tid 937 (y.xxxx), pid 32727 (y.xxxx)

raysan5 commented 1 month ago

@GreenSnakeLinux Is it an Android device? Are you compiling for Android platform?

GreenSnakeLinux commented 1 month ago

Yes on Android, compiling for Android platform with Android studio Mac version

GreenSnakeLinux commented 1 month ago

Here is more information about the crash: It crash randomly during the loop in LoadFontDefault() during ImageFromImage -> memcpy Please correct it

File: rtext.c Function: LoadFontDefault()

... for (int i = 0; i < defaultFont.glyphCount; i++) { ... // Fill character image data from fontClear data defaultFont.glyphs[i].image = ImageFromImage(imFont, defaultFont.recs[i]); }

Crash during: ImageFromImage -> memcpy

(It is not always on same loop number)

GreenSnakeLinux commented 1 month ago

The issue is on all devices, it is a luck that is not crash every time, just put a trace before the memcpy and check the offset of the source, the image (imFont) is allocated with 128x128x2 (hardcoded) image.width can be up 512, so the offset is far beyond the image.data limit, I don't know what the code is trying to do, but it is bugged, please correct it.

raysan5 commented 1 month ago

@GreenSnakeLinux I don't understand. imFont is always 128x128x2 bytes (GRAY+ALPHA). Where do you get an image.width of 512?

raysan5 commented 1 month ago

Reviewed and pushed a small change, just in case, but I can't reproduce the mentioned issue.

GreenSnakeLinux commented 1 month ago

@GreenSnakeLinux I don't understand. imFont is always 128x128x2 bytes (GRAY+ALPHA). Where do you get an image.width of 512?

I misread my trace, because I'm loading a second font after that, image width is 128 when it crash: here is the different variables before the crash (variable used for the source offset of memcpy) :

Y: 3 / rec.y: 1156 / image.width: 128 / rec.x: 1 / bytesPerPixel: 2

The issue seems related to the value of rec.y I guess

raysan5 commented 1 month ago

@GreenSnakeLinux I'm afraid I can't reproduce it. Did you try with latest commit I uploaded? It initialices the arrays to zero, just in case.

GreenSnakeLinux commented 1 month ago

yes I have taken your update before making the log, here is another log where rec.y is created: (Tell me where I can put some Trace() to help you)

testPosX: 6 >= defaultFont.texture.width: 0 / defaultFont.recs[i].y: 782.000000 / currentLine: 71 defaultFont.recs[i].y: 793.000000 / currentLine: 72 testPosX: 7 >= defaultFont.texture.width: 0 / defaultFont.recs[i].y: 804.000000 / currentLine: 73 testPosX: 7 >= defaultFont.texture.width: 0 / defaultFont.recs[i].y: 859.000000 / currentLine: 78 defaultFont.recs[i].y: 859.000000 / currentLine: 78 testPosX: 7 >= defaultFont.texture.width: 0 / defaultFont.recs[i].y: 870.000000 / currentLine: 79 testPosX: 3 >= defaultFont.texture.width: 0 / defaultFont.recs[i].y: 1112.000000 / currentLine: 101 defaultFont.recs[i].y: 1486.000000 / currentLine: 135 defaultFont.recs[i].y: 1816.000000 / currentLine: 165 defaultFont.recs[i].y: 1871.000000 / currentLine: 170 testPosX: 8 >= defaultFont.texture.width: 0 / defaultFont.recs[i].y: 2113.000000 / currentLine: 192 testPosX: 7 >= defaultFont.texture.width: 0 / defaultFont.recs[i].y: 2135.000000 / currentLine: 194 testPosX: 7 >= defaultFont.texture.width: 0 / defaultFont.recs[i].y: 2146.000000 / currentLine: 195 testPosX: 7 >= defaultFont.texture.width: 0 / defaultFont.recs[i].y: 2322.000000 / currentLine: 211 testPosX: 7 >= defaultFont.texture.width: 0 / defaultFont.recs[i].y: 2355.000000 / currentLine: 214 testPosX: 7 >= defaultFont.texture.width: 0 / defaultFont.recs[i].y: 2465.000000 / currentLine: 224 defaultFont.recs[i].y: 1.000000 / currentLine: 0

GreenSnakeLinux commented 1 month ago

defaultFont.glyphCount = 224; so: currentLine can be up to 224 so: defaultFont.recs[i].y = (float)(charsDivisor + currentLine(charsHeight + charsDivisor)); defaultFont.recs[i].y = 1 + 224 (10 + 1) = 2465

GreenSnakeLinux commented 1 month ago

i have put this trace before the memcpy: if(1281282 < ((y + (int)rec.y)image.width + (int)rec.x)bytesPerPixel + (int)rec.widthbytesPerPixel) { TraceLog(LOG_ERROR, "Out of range: %d / Y: %d + %d", 1281282, ((y + (int)rec.y)image.width + (int)rec.x)bytesPerPixel, (int)rec.widthbytesPerPixel); }

raysan5 commented 1 month ago

@GreenSnakeLinux I'm afraid I can't reproduce it in any way, I checked the LoadFontDefault() and the recs loading. Also tried drawing all rectangles, they are correct. And I also checked the image data for every glyph using textures_image_drawing example and it looks ok.

GreenSnakeLinux commented 1 month ago

can you give me your log to compare ? Add this trace before: defaultFont.recs[i].y = (float)(charsDivisor + currentLine(charsHeight + charsDivisor)); TraceLog(LOG_ERROR, "defaultFont.recs[i].y: %f / currentLine: %d", defaultFont.recs[i].y, currentLine); and after the if (testPosX >= defaultFont.texture.width) : defaultFont.recs[i].y = (float)(charsDivisor + currentLine(charsHeight + charsDivisor)); TraceLog(LOG_ERROR, "testPosX: %d >= defaultFont.texture.width: %d / defaultFont.recs[i].y: %f / currentLine: %d",testPosX, defaultFont.texture.width, defaultFont.recs[i].y, currentLine);

is it normal that defaultFont.texture.width is always 0 ?

raysan5 commented 1 month ago

@GreenSnakeLinux Issue should be fixed with this PR: https://github.com/raysan5/raylib/pull/4340