# Sửa lỗi Maximum call stack size Windows

URL: https://tinhnang.autoshopee.com/shopmanager/xu-ly-loi/windows/loi-maximum-call-stack-size/
Markdown: https://tinhnang.autoshopee.com/shopmanager/xu-ly-loi/windows/loi-maximum-call-stack-size.md

> Sửa lỗi Maximum call stack size trên Windows khi mở phần mềm ShopManager do tính năng Controlled folder access trong Windows Security chặn tạo thư mục.

Khắc phục lỗi `Maximum call stack size exceeded at Object.e.mkdirSync` khi mở ShopManager trên Windows do tính năng Controlled Folder Access chặn tạo thư mục dữ liệu.

[Ảnh: Thông báo lỗi RangeError: Maximum call stack size exceeded tại hàm mkdirSync khi mở ShopManager trên Windows]

## Cách xử lý chi tiết

### 1) Mở cài đặt Virus & threat protection

Bấm phím Windows trên bàn phím, gõ **Windows Security** rồi mở ứng dụng lên. Chọn **Virus & threat protection** > ở mục **Virus & threat protection settings**, bấm **Manage settings**.

[Ảnh: Mở Windows Security vào mục Virus & threat protection và bấm Manage settings]

### 2) Vào mục Controlled folder access

Cuộn xuống tìm mục **Controlled folder access**, bấm **Manage Controlled folder access**.

[Ảnh: Cuộn xuống mục Controlled folder access và chọn Manage Controlled folder access]

### 3) Tắt tính năng chặn thư mục

Gạt công tắc của **Controlled folder access** sang **Off** (Tắt).

[Ảnh: Chuyển công tắc Controlled folder access sang trạng thái Off để cho phép tạo thư mục]

Tắt xong, mở lại phần mềm ShopManager. Hệ thống sẽ tự tạo thư mục dữ liệu và khởi động bình thường.

## Lỗi thường gặp

* **Tắt xong vẫn báo lỗi**: Bấm chuột phải vào biểu tượng ShopManager trên Desktop, chọn **Run as administrator** (Chạy với quyền quản trị viên).
* Nếu vẫn chưa được: liên hệ kỹ thuật tại [Liên hệ hỗ trợ kỹ thuật AutoShopee](https://autoshopee.com/contact).
