Extremely Unhelpful Error(?) Dialog

Dave shared this problem 4 years ago
Solved

This evening, while attempting to change the font size of six selected labels using the font-size selector at the top of the Justinmind window, I pressed the ↑ and ↓ keys, but it appeared only to toggle between "6" and a blank field.


Subsequently, an empty rectangle with a drop shadow — apparently, a dialog box — popped up:


58170f5380c59616cd15be0b73cd9cd7


After a considerable wait, the "OK" button appeared. After an even longer wait, nothing further appeared. I eventually clicked "OK", but Justinmind was very unstable (clicking in property fields did not highlight them, but their contents could be edited, although there was no text cursor, so it was a bit of a guessing-game as to where the change would take place).


I quit and restarted Justinmind, which I'm discovering is a good thing to do every hour or two, as the program gets "confused" and strange behaviors like those described above take place.

Comments (15)

photo
1

Hi Dave,


Please send the following log files to jim dot support at justinmind dot com:


[folder of the user]/justinmind/6.0.0/.metadata/.log


[folder of the user]/justinmind/6.0.0/.configuration/.log


[folder of the user]/justinmind/6.0.0/logs.log


These log files are inside a hidden folder so first you’ll need to enable hidden files on your Mac, you can follow the instructions from this link:


http://www.mikesel.info/show-hidden-f...


Best,


Marc

photo
1

Sent ... mostly.


There is no folder ~/justinmind/6.0.0/.configuration/, so I was unable to provide the file .log from within it. The existing /justinmind/6.0.0/configuration/ folder does not contain a .log file.


It looked to me like /justinmind/6.0.0/logs.log got rolled over today, so I included logs.log.1.


Thanks.

photo
1

Hi Dave,


The fact that there is no message and the strange behaviour you describe after a while using Justinmind is because you are running out of memmory.


We believe what triggered the error message will be solved in the next software update.


Can you try increasing the memory used by Justinmind to see if Jusitnmind behaves normally without you having to relaunch it? In order to do that change, go to your Justinmind installation folder and open the file 'JustinmindPrototyper.ini' with a text editor. Write 1024m next to the parameter -xmx, so it reads -xmx1024m (instead of -xmx512m).


Best,


Marc

photo
1

Thanks for the suggestion. I'll try it with more memory and see if that helps. When I realized that Justinmind is based on Eclipse, I figured that there'd be a config file to twiddle if memory problems arose.


I found what I believe is the intended file eventually at /Applications/Justinmind.app/MacOS/Justinmind.ini — Is that the right file?


Advanced Mac users will know that Applications like Justinmind are actually a "package" folder, which can be opened by right-clicking on the application and selecting "Show Package Contents." Within the application package is a folder called "Contents", which contains a folder called "MacOS", which contains the file in question.


For less-experienced users, some help in getting to the file might be handy.


I'll let you know if it helped!

photo
1

Sorry to say, it happened again tonight.


1) Selected several nearly identical components whose font size I wanted to change in one go.


2) Clicked the font-size selector at the top of the workspace.


3) Pressed ↑ and ↓ to try to increment the font size.


4) Contents of font size box alternately went blank or showed "6" before the empty dialog box appeared, and the application exhibited exactly the same symptoms as yesterday: text areas in the properties panel could be edited, but did not appear to be selected.

photo
1

Hi Dave,

This is probably due to the memmory issue I told you about. Had you been working fow a while on a large prototype?

Did restarting prototyper solve the issue?


Please send the files described in my first post so we can confirm it is the same error.


Have you tried changing the -xmx parameter?

Best,

Marc

photo
1

I changed the -xmx parameter and restarted Justinmind (that is, I quit Justinmind, changed the parameter, and restarted it) before this error recurred.


I don't know what constitutes a "large" prototype, but mine is about 2.7MB. I have no idea how to gauge whether that's a large prototype or a typical one. I do know that someone reported slow performance for a prototype of 40MB, but that might be an extreme outlier.


I had been working on the prototype for several hours when the error occurred. Should I be quitting and restarting Justinmind every hour or so? What would you recommend?

photo
1

The change on the parameter should work. If you experience the same kind of error again, please tell us.


Thanks for your patience.

photo
1

I had a different, but exceedingly more annoying crash today.


Lost an hour's careful work.


Getting REAL tired of this.


Oh, man: I just realized ... the file that I edited (which you have NOT YET confirmed is the right file, please!) is contained within the application, and was probably overwritten by the 6.1 update.


Is that the case?


My questions are:


1) (Repeated, with correction to the path, from earlier in this thread) Is /Applications/Justinmind.app/Contents/MacOS/Justinmind.ini the file that I am supposed to edit to change the memory allocation?


2) Does that file need to be re-edited after an upgrade?


Thank you.

photo
1

PS: My current copy of /Applications/Justinmind.app/Contents/MacOS/Justinmind.ini contains -Xmx1024m. Either Justinmind bumped it up in 6.1, or my changes from 6.0 were preserved in the update. I don't know which.


The crash happened a total of three times tonight, with the following dialog announcing the crash:


9afd3aeb3a88fc651699e98bf3dad662


The latest crash occurred as I was clicking the ✕-eye icon above an element marked as hidden in order to un-hide it.

photo
1

Hi Dave,


If you have upadted the software the Justinmind.ini was preserved. But we have introduced a feature that edits that file to have 1024 if you have enough memory so if you uninstalled and then reinstalled that is why Justinmind preserved the value. And the file you wew editing is the correct one.


Please send over the following log files:


[folder of the user]/justinmind/6.0.0/.metadata/.log


[folder of the user]/justinmind/6.0.0/.configuration/.log


[folder of the user]/justinmind/6.0.0/logs.log


These log files are inside a hidden folder so first you’ll need to enable hidden files on your Mac, you can follow the instructions from this link:


http://www.mikesel.info/show-hidden-f...


Thank you for your patience.


Best,


Marc

photo
1

As you will note from the last time I received these instructions, there is No Such Folder as [folder of the user]/Justinmind/6.0.0/.configuration


So I cannot send you the .log file that is not inside the folder that is not there.


I am quite experienced in viewing hidden files, so that's not the problem. Here's a screenshot showing the contents — including hidden files — of my Justinmind folder, as viewed with Pathfinder:


17b91366f233621544796c7e73dd95e7


Please update your instructions to avoid confusion.


Meanwhile, I will send you such files as I am able to locate, via email:


~/Justinmind/6.0.0/.metadata/.log


~/Justinmind/6.0.0/logs.log


~/Justinmind/6.0.0/logs.log.1 -- because logs.log "rolled over" on 9/20

photo
1

The fun continues!


I experienced another "unexpected error" crash just now. I'm sending the same log files, but fresh from the latest crash via email.

photo
1

Hi Dave,


After reviewing the logs we have found that this is probably due to the app crashing after clicking on Edit values in the properties panel for a checklist or something like that. Does that sound right?


The development team has been notified and as usual we will let you know in which version this will be solved as soon as we know.


Best,


Marc

photo
1

I don't know what "the properties panel for a checklist" means, but I had been editing values in the properties panel, modifying the IDs for the contents of duplicated groups.