-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error running GVExport in browser mode: Error: syntax error in line 1 #501
Comments
Sorry to hear you're having trouble!
Typically it's not a problem, I can generate a 2000 individual diagram without issue. Normally it's something in the details of a specific individual, and when you expand the diagram they get included and it breaks. Where the DOT file is stored will depend on your setup, it requests the temp directory details for the OS (if you're running in docker, it will be inside the container). Here's the snippet where it's requested: On linux it's likely to be a directory like Alternatively, the full DOT file should be included in the output. It goes a bit funny with the error but you should be able to right click on the diagram area below the error message where the DOT contents are, and choose to "Inspect" the element. Then you can find the element in the HTML and copy the contents. Let me know if you need more specific instructions. One other thing to try is turning off images. I have seen this when there are errors in image files. If disabling photos in the settings resolves it, that will help narrow down the issue. Let me know how you get on! |
Hello. Thank you for your prompt response. I found the generated export.dot file. I noticed the actual dot was inside and extracted it. Then, since I couldn't find an option to turn off images, I just renamed the data/images directory in order to prevent it from finding them, but I just received the same error when I clicked the Update button on the web page. Any ideas on how to find the corrupted/not compatible image? By the way, the view debug information button doesn't work, at least in my Android device using Chrome. I found that information inside de gvexport.dot :) Thanks again. |
First thing to check is in GVExport, turn off photos and make sure it's working again. You do this in Appearance -> Tile Design -> Photos (you'll need to open the advanced settings toggle for the Appearance section if not already enabled). This will ensure that it's an issue with the photos that is causing the error. If this works, I would enable it again (so you are back to having it broken), then use a process of elimination. You know which level it breaks on, so you should know which generation you're looking at. Sounds like you were having trouble with descendants, so I would start with a root person where it's broken, then select one of their children and check if it's broken. Then check the next child, and the next. In theory, only one child will still show the error (if you only have one problem image), then you can move on to using each grandchild as the root person. If the image is a problem, it will be a problem regardless of how many people in the diagram, so by testing different branches of the tree at a time you should be able to narrow down the problem image (though do keep in mind there may be multiple). If you identify the problem image, I've found that opening it in some image editing software then saving it again should help. Image editing software generally handles errors in images a lot more gracefully, so I haven't had any issues opening the images in image editing software even if they do have errors.
Yes, I don't think mobile browsers generally support this, you'd need a desktop browser, but good to see you found a way to get it. |
Thank you for your help. I discovered it fails also disabling the photos. It happens when I add the "Anyone" relationship checkbox. Haven't been able to pinpoint the "branch" of my genealogy tree where is the problem. I'll keep trying. Ely P.S. the View Debug button does nothing, also using latest Chrome in windows 11. Just to inform. |
It's probably not an image problem then! I'd probably look at special characters, or anything odd in people's names (e.g. \ / ? etc).
This checkbox can create a significantly larger family tree, depending on what information you have on non-relatives. But it should help narrow down which individual may be the problem. There are many options in the "Tile contents" area of the "Appearance" settings. You could try disabling them one by one to try to narrow it down. Change the name abbreviation to "None" to not show names, remove date and place of birth/death. If you remove all information on the tiles then then you get shapes only, and it would be interesting to know if that resolves the issue. If so, it probably confirms an issue with some specific information displayed. Please do let me know when you work it out. It's nice to pinpoint these issues and see if it can be resolved through a change in GVExport.
Thanks! The code seems to have been removed, I had to go back two years to find it! So it must have been broken for a while. Looks like it relied on the old help functionality, and it broke when we moved to the new help panel. Should be fixed now. The debug log might help you work out where it's going wrong. If you want to update, you can install from the main branch code. Let me know if you need more help with this but the short instructions are to go to the main page of this repository, check the dropdown under the GVExport header to make sure it says "main", then click the green Code button then choose to "Download ZIP". Install as normal, making sure the folder doesn't have any dots in it as webtrees ignores extensions with a dot in the folder name. |
Wow, hahaha. Thank you. About my problem... I disabled all data. It now shows only colored boxes when it works. Can't find a way to search for non related people. Thanks |
Ok. Thanks to the debug button (well it was easier), I took all the names when it worked and when it didn't (only changing from 3 generations of descendents to 4 generations of descendents) That gave me 184 individuals to check. Going one by one (and searching inside the graph in order to skip some entries and checking if the tree had more occurrences of the same name) got into a person, without the "Anyone" checkbox where failed. Then tried ancestors and descendents until I got into an individual who is child of a family without parents, he has two siblings. I tested all three siblings and all fail when I enable 1 generation of ancestors, and it works ok if I disable the ancestors checkbox.(With descendents unchecked) I've Just added a nameless parent in that family and now the whole graph works just fine. If you want me to try any fix you make, just tell me. One new question. I have about a hundred more people than the ones included in the graph. I think they are simply non related people at all and that's why they don't appear. Right? Is there a way to show them all, even if they appear in the side? Thanks in advance |
Strange thing you couldn't reproduce the error. A family just like the one you showed gives me the error... To test this, here are the steps I took to reproduce de error:
Not only that. I removed the "1 HUSB @X585@" gedcom entry in the original family that gave problems, and they came back. Added it again and the problems went away. Hope this helps. P.S. About the people who doesn't appear in the Graph. The problem is find their names in order to add them to the graph. :( |
I should have attached an image of it working. I'm glad you found a way to reproduce it. About the layout I think maybe it would look ok if you could leave the box empty, make it a little bigger and use dotted lines for it. |
Thanks for the suggestion! I haven't been able to find a way to get Graphviz to draw a dotted line in a way that works with the existing table structure of the node. I think just making the box a bit bigger will probably look ok. Unfortunately, getting it set up in the default look is easy, but there's a bit of work to get it to react to all the settings in the same way that the other boxes react. I'm going to work on what's the best way to do this, and so long as I'm successful I'll aim to target the next release (which now has a pretty big list). Currently someone else is working on a feature, and any changes here will be touching some pretty critical parts of the module, so I'm going to wait until they are done before working on this further in order to avoid conflicting changes. Hopefully you've got a setup that works, and you can look forward to a proper fix in the next release (whenever that comes). In the meantime, I'll mark this as a bug, as I think we can confidently say that it is a bug. |
Hello.
Recently, when I try to get a GVExport report, I'm getting the following error "Error running GVExport in browser mode: Error: syntax error in line 1"
I've noticed that if I set 3 ancestors levels and 3 descendents levels it works, but I would like to have more descendants levels than that.
Not even to download a pure Dot file.
I think it is related to the amount of information to graph. Right?
I'm using webtrees 2.1.20 and this appears in the module's list in the control pannel:
I have graphviz versión 2.40.1-45 installed in a Linux server
Any pointers on getting additional information to help find the problem is welcome.
Where is stored the temporary dot file or how to get the generated dot file to test the server's graphviz tool?
Ely
The text was updated successfully, but these errors were encountered: