Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 129
    • Issues 129
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 23
    • Merge requests 23
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Librem5
  • linux
  • Issues
  • #393

Closed
Open
Created Jan 31, 2022 by Martin Kepplinger@martin.kepplingerOwner

5.17: millipixels crashes when switching to front cam

how to reproduce: apt install linux-image-5.17.0-1-librem5 reboot and:

purism@pureos:~$ millipixels
Found config file at /usr/share/millipixels/config/purism,librem5r4.ini
Adding camera big from config
matched GRBG8 to GRBG8 3
matched GRBG8 to GRBG8 3
Adding camera selfie from config
matched GBRG16 to GBRG16 14
matched GBRG16 to GBRG16 14
Found postprocessor script at /usr/share/millipixels/postprocess.sh
mp_device_list_find_remove imx7-csi s5k3l6xx 3-002d
19: there's csi, looking for s5k3l6xx 3-002d
19: there's csi capture, looking for s5k3l6xx 3-002d
19: there's imx8mq-mipi-csi2 30b60000.csi, looking for s5k3l6xx 3-002d
19: there's s5k3l6xx 3-002d, looking for s5k3l6xx 3-002d
found!
devname /dev/video1
19: there's csi, looking for s5k3l6xx 3-002d
19: there's csi capture, looking for s5k3l6xx 3-002d
19: there's imx8mq-mipi-csi2 30b60000.csi, looking for s5k3l6xx 3-002d
19: there's s5k3l6xx 3-002d, looking for s5k3l6xx 3-002d
found!
linking flags 0 source 15:0 sink 10:0
MPDevice: MEDIA_IOC_SETUP_LINK error 22, Das Argument ist ungültig
mp_device_list_find_remove imx7-csi hi846 2-0020
18: there's csi, looking for hi846 2-0020
18: there's csi capture, looking for hi846 2-0020
18: there's imx8mq-mipi-csi2 30a70000.csi, looking for hi846 2-0020
18: there's hi846 2-0020, looking for hi846 2-0020
found!
devname /dev/video0
18: there's csi, looking for hi846 2-0020
18: there's csi capture, looking for hi846 2-0020
18: there's imx8mq-mipi-csi2 30a70000.csi, looking for hi846 2-0020
18: there's hi846 2-0020, looking for hi846 2-0020
found!
linking flags 0 source 15:0 sink 10:0
MPDevice: MEDIA_IOC_SETUP_LINK error 22, Das Argument ist ungültig
linking flags 1 source 15:0 sink 10:0
MPDevice: MEDIA_IOC_SETUP_LINK error 22, Das Argument ist ungültig
Setting mode 1052 780
[0:00:43.190897413] [1373]  INFO Camera camera_manager.cpp:293 libcamera v0.0.0
[0:00:43.207543214] [1374]  WARN CameraSensorProperties camera_sensor_properties.cpp:141 No static properties available for 's5k3l6xx'
[0:00:43.207654694] [1374]  WARN CameraSensorProperties camera_sensor_properties.cpp:143 Please consider updating the camera sensor properties database
[0:00:43.208814374] [1373]  INFO Camera camera.cpp:937 configuring streams: (0) 1052x780-SGRBG8
[0:00:43.210288574] [1374] ERROR DeviceEnumerator device_enumerator.cpp:166 Removing media device /dev/media0 while still in use
ok
linking flags 0 source 15:0 sink 10:0
MPDevice: MEDIA_IOC_SETUP_LINK error 22, Das Argument ist ungültig
linking flags 1 source 15:0 sink 10:0
MPDevice: MEDIA_IOC_SETUP_LINK error 22, Das Argument ist ungültig
Setting mode 1632 1224
[0:00:47.868624801] [1373]  INFO Camera camera_manager.cpp:293 libcamera v0.0.0
[0:00:47.884657882] [1378]  WARN CameraSensorProperties camera_sensor_properties.cpp:141 No static properties available for 's5k3l6xx'
[0:00:47.884736122] [1378]  WARN CameraSensorProperties camera_sensor_properties.cpp:143 Please consider updating the camera sensor properties database
Speicherzugriffsfehler (Speicherabzug geschrieben)

coredump:

           PID: 1365 (millipixels)
           UID: 1000 (purism)
           GID: 1000 (purism)
        Signal: 11 (SEGV)
     Timestamp: Mon 2022-01-31 11:23:00 CET (1min 6s ago)
  Command Line: millipixels
    Executable: /usr/bin/millipixels
 Control Group: /user.slice/user-1000.slice/session-3.scope
          Unit: session-3.scope
         Slice: user-1000.slice
       Session: 3
     Owner UID: 1000 (purism)
       Boot ID: 08f46d9efb6e49efbb6c1a8dc73d7306
    Machine ID: b4d66758395f458e9e0440f46d49b7ed
      Hostname: pureos
       Storage: /var/lib/systemd/coredump/core.millipixels.1000.08f46d9efb6e49efbb6c1a8dc73d7306.1365.1>
       Message: Process 1365 (millipixels) of user 1000 dumped core.
                
                Stack trace of thread 1373:
                #0  0x0000ffffbeeea818 _ZNKSt15__uniq_ptr_implIN9libcamera10Extensible7PrivateESt14defa>
                #1  0x0000aaaaea2af670 setMode (millipixels + 0x1f670)
                #2  0x0000aaaaea2a966c mp_camera_set_mode (millipixels + 0x1966c)
                #3  0x0000aaaaea2ad3e4 update_state (millipixels + 0x1d3e4)
                #4  0x0000aaaaea2abbc8 invoke_impl (millipixels + 0x1bbc8)
                #5  0x0000ffffbe09aab4 g_main_dispatch (libglib-2.0.so.0 + 0x53ab4)
                #6  0x0000ffffbe09ae5c g_main_context_iterate (libglib-2.0.so.0 + 0x53e5c)
                #7  0x0000ffffbe09b1b0 g_main_loop_run (libglib-2.0.so.0 + 0x541b0)
                #8  0x0000aaaaea2abbe4 thread_main_loop (millipixels + 0x1bbe4)
                #9  0x0000ffffbdd34628 start_thread (libpthread.so.0 + 0x8628)
                #10 0x0000ffffbdc8c01c thread_start (libc.so.6 + 0xd601c)
                
                Stack trace of thread 1366:
                #0  0x0000ffffbdc822f4 __GI___poll (libc.so.6 + 0xcc2f4)
                #1  0x0000ffffbe09adf8 g_main_context_poll (libglib-2.0.so.0 + 0x53df8)
                #2  0x0000ffffbe09af24 g_main_context_iteration (libglib-2.0.so.0 + 0x53f24)
                #3  0x0000ffffbe09af7c glib_worker_main (libglib-2.0.so.0 + 0x53f7c)
                #4  0x0000ffffbe0c48f4 g_thread_proxy (libglib-2.0.so.0 + 0x7d8f4)
                #5  0x0000ffffbdd34628 start_thread (libpthread.so.0 + 0x8628)
                #6  0x0000ffffbdc8c01c thread_start (libc.so.6 + 0xd601c)
                
                Stack trace of thread 1365:
                #0  0x0000ffffbdc822f4 __GI___poll (libc.so.6 + 0xcc2f4)
                #1  0x0000ffffbe09adf8 g_main_context_poll (libglib-2.0.so.0 + 0x53df8)
                #2  0x0000ffffbe09b1b0 g_main_loop_run (libglib-2.0.so.0 + 0x541b0)
                #3  0x0000ffffbe8a69d0 gtk_main (libgtk-3.so.0 + 0x26b9d0)
                #4  0x0000aaaaea2a538c main (millipixels + 0x1538c)
                #5  0x0000ffffbdbda218 __libc_start_main (libc.so.6 + 0x24218)
                #6  0x0000aaaaea2a5418 $x (millipixels + 0x15418)
                #7  0x0000aaaaea2a5418 $x (millipixels + 0x15418)

nothing in the kernel logs. where's the bug then?

Edited Feb 07, 2022 by Martin Kepplinger
Assignee
Assign to
Time tracking