-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
There is a bug when loading a license into barcode reader. It happens with version 11.0.4000.
Script to reproduce the bug:
import dynamsoft_barcode_reader_bundle
from dynamsoft_barcode_reader_bundle import LicenseManager
license = "DLC2MTc1MzI1NDAwNgABNxsi+mogP3f/BvFL44X+tuwNE/mnZgvzEWn7fCy6RHP2DqPKcdq1uPe1vILWxIHz+uEheo+xN7fYTQSiQ4RY/hkWP1sUUf+RlEaoU5I/wx+lzZrMS08tZ1Bp9xp2sQVNbXouFVWjbr69qpXHMhbAF4tAmNL1V2zguex/gezjaHUORqIfOzarxGwdXWGVG/mbmTz5QbmdZYqAyJDL3GpB0AmC6R61OZhw16yG/jWL6i2lccHeNVwt+M6MADakw16a/nuxR6zpsOvMrGxyBmE8VsAKHnsUeKP0SHxtFTAzTBwtdK1xSILFHwenyWRSaSVM9V8WJyAb+uZ76nYy6xKttzYg26f/GW9YspQXQRjFZejJEVgoldznfn4VRByVKbyeBT+umYUyHGUZ416LaghRoL7LkVeEw+YmHPu+Tt11Jh8f8BQnFJ3hML8StC9ty3U4QU818szL8y2ecNklrXD9ZawMbYbkiX6d9qrEQHDhxUWpd5CODi3KM5SQaY+KjySivYusOwkzQLLDodZwuBWe1bMPXOlKUudOgZPSgoWDNrZ1dEu2oLowiP8QEuQi+OMlUMGDiwwqlUmyWAf1VkUyFb7oAetDnrXkabuFu7JJWNWQEKM0womfqyzrNn2YIY1/i34EqoT6r49sw0pDX3201KE+USGC"
# print python version
print(f"Python Version: {sys.version}")
print(
f"dynamsoft-barcode-reader-bundle version: {dynamsoft_barcode_reader_bundle.__version__}"
)
print(LicenseManager.get_device_uuid(1))
errorCode, errorMsg = LicenseManager.init_license(license)
print(errorCode, errorMsg)
Error:
Python Version: 3.11.10 (main, Oct 7 2024, 23:25:27) [Clang 18.1.8 ]
Version: 11.0.4000
(0, 'Successful.', 'E3076F7C-FA6D-459A-ABB6-AD0934855D2A')
python3(18651,0x1f166cc40) malloc: *** error for object 0x16db46e90: pointer being freed was not allocated
python3(18651,0x1f166cc40) malloc: *** set a breakpoint in malloc_error_break to debug
It works fine with version 11.0.2000 of the barcode reader
Python Version: 3.11.10 (main, Oct 7 2024, 23:25:27) [Clang 18.1.8 ]
dynamsoft-barcode-reader-bundle version: 11.0.2000
(0, 'Successful.', 'E3076F7C-FA6D-459A-ABB6-AD0934855D2A')
-10003 [License] The license is invalid.
Tested on Mac, Linux (container), and Windows on python 3.9, 3.11. 3.12, everywhere there is a crash with version 11.0.4000.
Metadata
Metadata
Assignees
Labels
No labels