facebook

Error saving .mobi file

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #351644 Reply

    SonamGyato
    Member

    I’ve got a mobi file and when I try to run it in the simulator.

    I get an error saving – check logs.

    Next time I try to open the same mobi file – it’s blank.

    I’ve attached the log file.

    I believe I captured the file right at the time when the error dialog is displayed –

    relevant exception should be the last one.

    Thanks.

    Attachments:
    You must be logged in to view attached files.
    #351675 Reply

    Hi everest,

    We can take a look at the file and try to restore it’s content (no guarantees, but at least we can try). You can send it to support at genuitec dot com, use title mobione data from everest

    #351697 Reply

    SonamGyato
    Member

    I’ve got the file backed up – so that’s no problem.

    The problem is why am I getting this error when I make a change to the mobi UI.

    Because I can’t make any modifications until this problem is solved.

    I was hoping the log file would indicate something.

    I get the error – the mobi file gets written out and the simulator opens.

    The only problem is when I reopen the “re-saved” mobi file – it’s blank.

    #351710 Reply

    support-michael
    Keymaster

    >The only problem is when I reopen the “re-saved” mobi file – it’s blank.

    I inspected the .mobi file you shared. Unfortunately it is corrupted. The issue with the file is it is truncated and missing a lot of data required to visualize the design. The log you provided indicates that a design has a goofed up constraint, i.e., a negative constraint which is invalid. There is not recovery for this file.

    #351853 Reply

    SonamGyato
    Member

    I’ve got a backup .mobi file – so that’s not an issue.

    The issue is I can’t edit the file…because as soon as I edit and run the simulator

    it generates a bad mobi file.

    How do I get around that problem?

    #351857 Reply

    Hi everest,

    The file you shared with us was kaput. It was truncated and can not be used. If you have a backup we can give it a look but you should open the file in a text editor, e.g., wordpad and scroll to the bottom. If the file does not end with the </manifest> tag the it is corrputed and kaput as well. You can send it to our support email.

    #351861 Reply

    SonamGyato
    Member

    Sent you the mobi file before saving.

    The file doesn’t end with manifest – ends with </Form>

    I looked at files from about a year ago – they all end with </Form>

    #351862 Reply

    everst,

    We may have misspoke before. We will be looking into the file again to see what we can do. Sorry about that.

    #351881 Reply

    Hi everest,

    Thanks for sharing this last file with us, we determinated that the problem is with the “ok” text widget in your panel named panel_alert2. I am sending you thru support email a version of your file without this widget that we manually deleted it from the design file in order to allow overwrite/edit it.

    Do you recall how the panel_alert2 and its text were created in this file. For example did you copy/paste the panel from another design file or did you design it directly in the file?

    Lastly see in this screenshot the clue that helped us to detect the text widget was goofed up because the auto-resize property was not visible. If you have other files with similar issue is there something similar between all of them such as copy/paste a panel or other container widget?

    Attachments:
    You must be logged in to view attached files.
    #351885 Reply

    SonamGyato
    Member

    I may have copy/pasted it from other mobi files.

    This panel displays an alert dialog() – because since ios7 – alert doesn’t work.

    I’ll take a look at the email that you’ve sent me.

    So – what’s the solution?

    i.e. what should I do with all the other files.

    #351886 Reply

    Hi everest,

    The resolution is to inspect each .mobi file in the designer (assuming it can be opened), identify the widget that may be causing it to fail to save and delete that widget (see the example where the auto-reset properties were not available which indicated that widget was kaput). If you are not able to delete the widget then try deleting its container. Until you know you have identified the problematic widget and resolved it lways save the modified file with a new name to ensure you don’t blow away your original.

    #351905 Reply

    SonamGyato
    Member

    I opened the the file in a text editor and replaced the Container element
    from a good file.

    All good now.

Viewing 12 posts - 1 through 12 (of 12 total)
Reply To: Error saving .mobi file

You must be logged in to post in the forum log in