Missing data in dump request

Home Forums General Programming Missing data in dump request

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #664
    dasfaker
    Keymaster
      • Topics: 80
      • Replies: 793
      • Total: 873
      • ★★★

      When I do a patch dump request, the synth send the patch divided in 5 sysex blocks. The issue I’m having is that the in first dump request I do, the MidiMessageReceived method is missing the first block of data. The missing data is received as I see it in the midi monitor, but the lua script don’t see it.

      The next dump requests behave normally and don’t miss any data. But if I enter edit mode or make any change to a lua method (this is a bit random, sometimes happens and sometimes not) again the next dump request miss the first block of data.

      Any idea what’s going on?

      #4589
      atom
      Keymaster
        • Topics: 159
        • Replies: 2945
        • Total: 3104
        • ★★★★★

        If the sysex is fragmented it might be something with JUCE library, i myself don’t process the sysex data at all i just pass the memory provided by the JUCE Library and pass that to LUA. It’s almost impossible for me to help you without the actual hardware, i can’t debug this in any way i can think of.

        #4590
        msepsis
        Participant
          • Topics: 219
          • Replies: 732
          • Total: 951
          • ★★★
          "dasfaker":23s2eu10 wrote:
          When I do a patch dump request, the synth send the patch divided in 5 sysex blocks. The issue I’m having is that the in first dump request I do, the MidiMessageReceived method is missing the first block of data. The missing data is received as I see it in the midi monitor, but the lua script don’t see it.

          Any idea what’s going on?[/quote:23s2eu10]

          First thing I’d check is if you’re defining the range of what you want Lua to grab.. ie:
          [code:23s2eu10]programData = midiMessage:getLuaData():getRange(7,263)[/code:23s2eu10]

          Monstrum Media | Music, Sound & Software Design, Chicago / San Francisco listen

          #4591
          dasfaker
          Keymaster
            • Topics: 80
            • Replies: 793
            • Total: 873
            • ★★★
            "msepsis":lu36ppxx wrote:
            First thing I’d check is if you’re defining the range of what you want Lua to grab.. ie:
            Code: Select all
            programData = midiMessage:getLuaData():getRange(7,263)
            [/quote:lu36ppxx]

            The problem is before that. The dump consists of one block of size 85 and other four blocks that are 140 bytes. The first thing I do is to check the size of the block received, and there is when the block of 85 bytes is not detected.

            "atom":lu36ppxx wrote:
            If the sysex is fragmented it might be something with JUCE library, i myself don’t process the sysex data at all i just pass the memory provided by the JUCE Library and pass that to LUA. It’s almost impossible for me to help you without the actual hardware, i can’t debug this in any way i can think of.[/quote:lu36ppxx]

            You can send a .syx file thru midiox to simulate a dump from the synth, it happens this way too.

            #4592
            atom
            Keymaster
              • Topics: 159
              • Replies: 2945
              • Total: 3104
              • ★★★★★

              Well i found one nasty bug that might have been causing issues with that, test that with the latest nightly. also have a look at the bug tracker, i need your input one one issue.

              #4593
              dasfaker
              Keymaster
                • Topics: 80
                • Replies: 793
                • Total: 873
                • ★★★

                This seems to be solved, too

                #4594
                dasfaker
                Keymaster
                  • Topics: 80
                  • Replies: 793
                  • Total: 873
                  • ★★★

                  The problem is back

                  #4595
                  atom
                  Keymaster
                    • Topics: 159
                    • Replies: 2945
                    • Total: 3104
                    • ★★★★★

                    Heh i didn’t do anything so what happened ?

                    #4596
                    dasfaker
                    Keymaster
                      • Topics: 80
                      • Replies: 793
                      • Total: 873
                      • ★★★

                      As I told before the missing block issue was a bit random. I tested a little the new rev and it didn’t happened, but after a deeper test it has happened again. But now I know when it happens. When I switch from opening a patch from a .syx (not involving midiMessageReceived) and then I open a patch from the synth (via midiMessageReceived) the first block of data is missed by the midiMessageReceived method. The following dumps are processed fine until I open again a .syx file (fine) and the open a synth patch.

                      #4597
                      atom
                      Keymaster
                        • Topics: 159
                        • Replies: 2945
                        • Total: 3104
                        • ★★★★★

                        The question is, if you enable MIDI INput monitoring do you see all the data or is the first block missing on the monitor too ?

                        #4598
                        dasfaker
                        Keymaster
                          • Topics: 80
                          • Replies: 793
                          • Total: 873
                          • ★★★

                          Yes, the midi data is shown in the midi monitor, all the five blocks. But the midiMessageReceived only see the last four blocks.

                          #4599
                          dasfaker
                          Keymaster
                            • Topics: 80
                            • Replies: 793
                            • Total: 873
                            • ★★★

                            Well, this is still unsolved. I’ve seen reports by other users that say that they need to request the patch twice to receive the dump correctly.

                            After more testing, I can discard the .syx thing I told before.

                            The first dump request always miss the first block of data. When a patch is received in a single block, it is missed entirely. In my case, the dump has 5 blocks and it miss the first.

                            If I then do successive dump requests, one after another, no block is missing. But if I leave some time in which the panel doesn’t receive any data (a minute maybe), the next dump request will miss the first block.

                            And this is true for every message (sysex, cc..) received by the panel, as I’m testing it right now. If the panel is idle for a time, the first message received is ignored by the midiMessageReceived method (but visible in the midi monitor)

                            #4600
                            atom
                            Keymaster
                              • Topics: 159
                              • Replies: 2945
                              • Total: 3104
                              • ★★★★★

                              Ok i’ll re-test this and focus on that, it’s very important we don’t miss anything. I’m about 70% done with the method Editor, i’ll get back to this once i’m done. If there is no response from me or in the Changelog please bump this topic.

                            Viewing 13 posts - 1 through 13 (of 13 total)
                            • The forum ‘Programming’ is closed to new topics and replies.
                            There is currently 0 users and 62 guests online
                            No users are currently active
                            Forum Statistics
                            Threads: 2,495, Posts: 17,374, Members: 77,605
                            Most users ever online was 12 on January 22, 2019 3:47 pm
                            Ctrlr