Skip to content

Barcode Scan Page error reloaded (Firefox 158) #13164

Closed

Description

@gcorbin

Please verify that this bug has NOT been raised before.

  • I checked and didn't find a similar issue

Describe the bug*

The barcode scan element displays an error:

Image

I originally reported this bug as a reply to #8703 (#8703 (comment)) but was told to open a new issue.

Steps to Reproduce

  1. I open the InvenTree site on Firefox (158.0.1 (64-bit) for ArchLinux) on my laptop, which has an integrated webcam.
  2. I click on 'Scan Barcode'
  3. The browser asks me to allow the site to use my camera. There is a dropdown with two entries (although there is only one webcam). No matter which I select, as soon as I click 'Allow', the barcode element displays the error shown above. The duplicate option value seems to be the id of the webcam.

The barcode scan works as expected in Chromium (Version 156.0.8078.47 (Official Build) Arch Linux (x86_64)).

Expected behaviour

The barcode scanner should show the image of the webcam and automatically read data from barcodes held before the camera.

Deployment Method

Docker

Version Information

InvenTree-Version: 1.6.3
Django Version: 5.2.17
Commit Hash: 221af32
Commit Date: 2026-10-27
Commit Branch: null
Database: null
Debug-Mode: False
Deployed using Docker: True
Platform: null
Installer:
Active plugins: [{"name":"InvenTreeBarcode","slug":"inventreebarcode","version":"2.2.0"},{"name":"BOM Exporter","slug":"bom-exporter","version":"1.1.0"},{"name":"InvenTree Exporter","slug":"inventree-exporter","version":"1.0.0"},{"name":"Parameter Exporter","slug":"parameter-exporter","version":"2.0.0"},{"name":"InvenTreeEmailNotifications","slug":"inventree-email-notification","version":"1.0.0"},{"name":"InvenTreeUINotifications","slug":"inventree-ui-notification","version":"1.0.0"},{"name":"InvenTreeWellKnown","slug":"inventree-well-known","version":"1.0.0"},{"name":"InvenTreeCurrencyExchange","slug":"inventreecurrencyexchange","version":"1.0.0"},{"name":"InvenTreeMachines","slug":"inventree-machines","version":"1.0.0"},{"name":"InvenTreeLabel","slug":"inventreelabel","version":"1.1.0"},{"name":"InvenTreeLabelMachine","slug":"inventreelabelmachine","version":"1.0.0"}]

Try to reproduce on the demo site

I tried to reproduce

Is the bug reproducible on the demo site?

Reproducible

Relevant log output

Error: [@mantine/core] Duplicate options are not supported. Option with value "G0QIHlo8s6Qw/pR6SYMfOyNjiJR58hSry3f981XUk+w=" was provided more than once
    ZP validate-options.mjs:9
    iu OptionsDropdown.mjs:56
    React 8
    q scheduler.production.js:151
Caused by: React ErrorBoundary Error: [@mantine/core] Duplicate options are not supported. Option with value "G0QIHlo8s6Qw/pR6SYMfOyNjiJR58hSry3f981XUk+w=" was provided more than once
    iu OptionsDropdown.mjs:54
    un Popover.mjs:60
    Ve Combobox.mjs:51
    1 Select.mjs:26
    div unknown:0
    jt Expand.tsx:6
    div unknown:0
    rj Box.mjs:17
    ti Group.mjs:27
    div unknown:0
    rj Box.mjs:17
    My Stack.mjs:22
    Te BarcodeCameraInput.tsx:78
    div unknown:0
    rj Box.mjs:17
    ta Paper.mjs:16
    zf Card.mjs:17
    div unknown:0
    rj Box.mjs:17
    My Stack.mjs:22
    _e errorboundary.js:16
    wt Boundary.tsx:36
    div unknown:0
    rj Box.mjs:17
    Oe BarcodeInput.tsx:30
    H BarcodeScanDialog.tsx:72
    div unknown:0
    rj Box.mjs:17
    div unknown:0
    rj Box.mjs:17
    Mg ModalBaseBody.mjs:9
    ep ModalBody.mjs:10
    kx NativeScrollArea.mjs:4
    section unknown:0
    rj Box.mjs:17
    ta Paper.mjs:16
    Ks FocusTrap.mjs:8
    div unknown:0
    sr Transition.mjs:8
    Pg ModalBaseContent.mjs:10
    np ModalContent.mjs:12
    div unknown:0
    rj Box.mjs:17
    div unknown:0
    Ag UI.js:13
    Rx Portal.mjs:43
    Jr OptionalPortal.mjs:7
    kg ModalBase.mjs:11
    hu ModalRoot.mjs:38
    Wo Modal.mjs:34
    A BarcodeScanDialog.tsx:34
    Suspense unknown:0
    td ScanButton.tsx:23
    div unknown:0
    rj Box.mjs:17
    ti Group.mjs:27
    div unknown:0
    rj Box.mjs:17
    ti Group.mjs:27
    div unknown:0
    rj Box.mjs:17
    Dv Container.mjs:14
    div unknown:0
    bn Header.tsx:55
    div unknown:0
    rj Box.mjs:17
    Px Flex.mjs:18
    kn Layout.tsx:37
    fr Layout.tsx:62
    s loading.tsx:78
    ft index.js:516
    Lt index.js:1249
    Dt index.js:1188
    Xm index.js:615
    _s ModalsProvider.mjs:36
    A7 index.mjs:21
    Fs LanguageContext.tsx:64
    ys index.mjs:1
    vg MantineThemeProvider.mjs:14
    KM MantineProvider.mjs:14
    qs ThemeContext.tsx:22
    $s QueryClientProvider.js:42
    r0 ApiContext.tsx:7
    gS DesktopAppView.tsx:14
    kne MainView.tsx:26
react-dom-client.production.js:5892:11
ERR: Error rendering component: BarcodeInput Boundary.tsx:49:15
    o Boundary.tsx:49
    componentDidCatch errorboundary.js:41
    withScope stackStrategy.js:32
    uk stackStrategy.js:96
    c$ currentScopes.js:38
    componentDidCatch errorboundary.js:32
    React 176
    q scheduler.production.js:151
Error: [@mantine/core] Duplicate options are not supported. Option with value "G0QIHlo8s6Qw/pR6SYMfOyNjiJR58hSry3f981XUk+w=" was provided more than once
    ZP validate-options.mjs:9
    iu OptionsDropdown.mjs:56
    React 8
    q scheduler.production.js:151
Caused by: React ErrorBoundary Error: [@mantine/core] Duplicate options are not supported. Option with value "G0QIHlo8s6Qw/pR6SYMfOyNjiJR58hSry3f981XUk+w=" was provided more than once
    iu OptionsDropdown.mjs:54
    un Popover.mjs:60
    Ve Combobox.mjs:51
    1 Select.mjs:26
    div unknown:0
    jt Expand.tsx:6
    div unknown:0
    rj Box.mjs:17
    ti Group.mjs:27
    div unknown:0
    rj Box.mjs:17
    My Stack.mjs:22
    Te BarcodeCameraInput.tsx:78
    div unknown:0
    rj Box.mjs:17
    ta Paper.mjs:16
    zf Card.mjs:17
    div unknown:0
    rj Box.mjs:17
    My Stack.mjs:22
    _e errorboundary.js:16
    wt Boundary.tsx:36
    div unknown:0
    rj Box.mjs:17
    Oe BarcodeInput.tsx:30
    H BarcodeScanDialog.tsx:72
    div unknown:0
    rj Box.mjs:17
    div unknown:0
    rj Box.mjs:17
    Mg ModalBaseBody.mjs:9
    ep ModalBody.mjs:10
    kx NativeScrollArea.mjs:4
    section unknown:0
    rj Box.mjs:17
    ta Paper.mjs:16
    Ks FocusTrap.mjs:8
    div unknown:0
    sr Transition.mjs:8
    Pg ModalBaseContent.mjs:10
    np ModalContent.mjs:12
    div unknown:0
    rj Box.mjs:17
    div unknown:0
    Ag UI.js:13
    Rx Portal.mjs:43
    Jr OptionalPortal.mjs:7
    kg ModalBase.mjs:11
    hu ModalRoot.mjs:38
    Wo Modal.mjs:34
    A BarcodeScanDialog.tsx:34
    Suspense unknown:0
    td ScanButton.tsx:23
    div unknown:0
    rj Box.mjs:17
    ti Group.mjs:27
    div unknown:0
    rj Box.mjs:17
    ti Group.mjs:27
    div unknown:0
    rj Box.mjs:17
    Dv Container.mjs:14
    div unknown:0
    bn Header.tsx:55
    div unknown:0
    rj Box.mjs:17
    Px Flex.mjs:18
    kn Layout.tsx:37
    fr Layout.tsx:62
    s loading.tsx:78
    ft index.js:516
    Lt index.js:1249
    Dt index.js:1188
    Xm index.js:615
    _s ModalsProvider.mjs:36
    A7 index.mjs:21
    Fs LanguageContext.tsx:64
    ys index.mjs:1
    vg MantineThemeProvider.mjs:14
    KM MantineProvider.mjs:14
    qs ThemeContext.tsx:22
    $s QueryClientProvider.js:42
    r0 ApiContext.tsx:7
    gS DesktopAppView.tsx:14
    kne MainView.tsx:26
Boundary.tsx:50:15
    o Boundary.tsx:50
    componentDidCatch errorboundary.js:41
    withScope stackStrategy.js:32
    uk stackStrategy.js:96
    c$ currentScopes.js:38
    componentDidCatch errorboundary.js:32
    React 176
    q scheduler.production.js:151

​

I have reviewed this report for correctness and filled out all sections.

  • I have checked this report. I acknowledge that filing bugs via AI agents without review might lead to being blocked.

Activity

  1. added theissue type on Nov 2, 2026
  2. added
    bug
    question
    triage:not-checked
    on Nov 2, 2026
  3. gcorbin commented on Nov 3, 2026

    @gcorbin
    Author

    Thanks for fixing this. I just checked on the demo site and can confirm that the scanner now works as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugquestiontriage:not-checked

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions