Version 2022 of Photoshop,The bounds of the drawing board is not the same as boundsNoEffects

when my photoshop version 2022 ,I use app.activeDocument.activeLayers to get bounds and boundsNoEffects of the artboard, they don’t have the same properties,but don’t have any shadows on my drawing board, why do they have different property values? and the same is obtained when the Photoshop version is 2021.Why??? I need help!!!

Using batchPlay, I get the same values as expected:

[
   {
     ...
      "bounds": {
         "_obj": "rectangle",
         "top": {
            "_unit": "pixelsUnit",
            "_value": 156
         },
         "left": {
            "_unit": "pixelsUnit",
            "_value": 185
         },
         "bottom": {
            "_unit": "pixelsUnit",
            "_value": 416
         },
         "right": {
            "_unit": "pixelsUnit",
            "_value": 445
         },
         "width": {
            "_unit": "pixelsUnit",
            "_value": 260
         },
         "height": {
            "_unit": "pixelsUnit",
            "_value": 260
         }
      },
      "boundsNoEffects": {
         "_obj": "rectangle",
         "top": {
            "_unit": "pixelsUnit",
            "_value": 156
         },
         "left": {
            "_unit": "pixelsUnit",
            "_value": 185
         },
         "bottom": {
            "_unit": "pixelsUnit",
            "_value": 416
         },
         "right": {
            "_unit": "pixelsUnit",
            "_value": 445
         },
         "width": {
            "_unit": "pixelsUnit",
            "_value": 260
         },
         "height": {
            "_unit": "pixelsUnit",
            "_value": 260
         }
      },
      "boundsNoMask": {
         "_obj": "rectangle",
         "top": {
            "_unit": "pixelsUnit",
            "_value": 156
         },
         "left": {
            "_unit": "pixelsUnit",
            "_value": 185
         },
         "bottom": {
            "_unit": "pixelsUnit",
            "_value": 416
         },
         "right": {
            "_unit": "pixelsUnit",
            "_value": 445
         },
         "width": {
            "_unit": "pixelsUnit",
            "_value": 260
         },
         "height": {
            "_unit": "pixelsUnit",
            "_value": 260
         }
      },
      ...
      "artboard": {
         "_obj": "artboard",
         "artboardRect": {
            "_obj": "classFloatRect",
            "top": 156,
            "left": 185,
            "bottom": 416,
            "right": 445
         },
         ...
      },
      ...
   }
]

I feel like this problem can’t be solved. I don’t know what went wrong…

You could post a screenshot showing your active layer, or even better, share a PSD which replicates your issue.

Your active layer is a group layer. Most likely there’s an empty layer inside.
Empty layers will cause the group layer bounds to be those of the document, which would look something like this:

{
   bottom: *document height*,
   left: 0,
   right: *document width*,
   top: 0,
}

In your case I didn’t think of that immediately because your bounds object doesn’t have 0 for top and left.
But I assume that since you have artboards, the empty layer in the group will take the bounds of the artboard instead. Internally, artboards are also just layers so they are positioned somewhere inside the document.