Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. IOS App is crashing when i try to record audio from the microphone

IOS App is crashing when i try to record audio from the microphone

Scheduled Pinned Locked Moved Solved Mobile and Embedded
3 Posts 1 Posters 853 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Janislav
    wrote on last edited by
    #1

    Hello Everybody,

    I try to record audio from the iPhone mic with the QAudioRecorder and this working very well on the simulator, but when I debug with a real device, the app is crashing in the moment when the record() method of the audio recorder is getting called. What is also very strange, the device is never asked me for using the mic, it's also not listed under devices which have the permission to use the mic on my phone. The app is crashing with the following error:

    program received signal 6, thread:22741;00:0b00000000000000;01:0000000000000000;02:2894e12701000000;03:1d00000000000000;04:5894e12701000000;05:0000000000000000;06:0000000000000000;07:b00b000000000000;08:2000000000000000;09:0000000000000000;0a:0000000000000001;0b:3001001000100002;0c:0000000000000000;0d:7468652061707020;0e:7573657320746869;0f:7320646174612e00;10:0902000000000000;11:0000000000000000;12:0000000000000000;13:0000000000000000;14:5894e12701000000;15:1d00000000000000;16:2894e12701000000;17:0000000000000000;18:0b00000000000000;19:00b08bae01000000;1a:10ed106e01000000;1b:0400000000000000;1c:ffffffffffffffff;1d:20ec106e01000000;1e:9ca4f68701000000;1f:e0eb106e01000000;20:74ddf68701000000;21:00000040;metype:5;mecount:2;medata:10003;medata:6;memory:0x16e10ec20=30ec106e01000000c8a4f68701000000;memory:0x16e10ec30=70ec106e0100000028e31d8b01000000;
    program received signal 9, thread:22741;00:0000000000000000;01:0000000000000000;02:0000000000000000;03:2894e12701000000;04:1d00000000000000;05:5894e12701000000;06:0000000000000000;07:b00b000000000000;08:2000000000000000;09:a04388ae01000000;0a:0000000000000001;0b:3001001000100002;0c:0000000000000000;0d:7468652061707020;0e:7573657320746869;0f:7320646174612e00;10:0802000000000000;11:0000000000000000;12:0000000000000000;13:0000000000000000;14:5894e12701000000;15:1d00000000000000;16:2894e12701000000;17:0000000000000000;18:0b00000000000000;19:00b08bae01000000;1a:10ed106e01000000;1b:0400000000000000;1c:ffffffffffffffff;1d:20ec106e01000000;1e:bca4f68701000000;1f:e0eb106e01000000;20:7cf8f68701000000;21:00000000;metype:5;mecount:2;medata:10003;medata:9;memory:0x16e10ec20=30ec106e01000000c8a4f68701000000;memory:0x16e10ec30=70ec106e0100000028e31d8b01000000;
    

    Has anyone maybe an idea? Would be great :) Thanks!

    1 Reply Last reply
    0
    • J Offline
      J Offline
      Janislav
      wrote on last edited by
      #2

      If I look into the Info.plist file in the XCode project there is no entry for using the mic.
      I thought QT is doing this automatically, but like it seems not. Great idea from that guy's that they overwrite the info.plist file every build which makes not possible to edit it manually.

      1 Reply Last reply
      0
      • J Offline
        J Offline
        Janislav
        wrote on last edited by
        #3

        Ok I was able to fix it by creating a custom Info.plist, adding the option to it and link it in the qmake file.

        QMAKE FILE:

        ...
        ios{
            QMAKE_INFO_PLIST = Info.plist
        }
        ...
        

        The Info.plist file is in the root of my project. I just copied the one which was created by QT Creater and added the option I need.

        You can find your Info.plist in the Xcode Project which is generated by the Qt Creator.

        1 Reply Last reply
        1

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved