Please, post any bugs you encounter here...
Paint of Persia is a rotoscoping pixel-art tool · By
Hmmm I cannot get this working on mac:
if I run my nwjs project without the zipped Painted Of Persia it will just run the default start screen of nwjs so the setup seems legit. But if I add the zipped Paint of persia folder to as app.nw to Contens/Resources/app.nw. It will exit with this stacktrace:
I had to remove somethings because it was too long I've just added (...) where I've removed part of the call stack.
2016-06-25 08:45:29.725 nwjs[3177:224112] NSWindow warning: adding an unknown subview: <WebContentsViewCocoa: 0x7f91e9ce1360>. Break on NSLog to debug.
2016-06-25 08:45:29.727 nwjs[3177:224112] Call stack:
(...)
2016-06-25 08:45:29.920 nwjs[3177:224112] +[NSMenu menu]: unrecognized selector sent to class 0x7fff76e0e4a8
2016-06-25 08:45:29.921 nwjs[3177:224112] An uncaught exception was raised
2016-06-25 08:45:29.921 nwjs[3177:224112] +[NSMenu menu]: unrecognized selector sent to class 0x7fff76e0e4a8
2016-06-25 08:45:29.921 nwjs[3177:224112]
(...)
2016-06-25 08:45:29.922 nwjs[3177:224112] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[NSMenu menu]: unrecognized selector sent to class 0x7fff76e0e4a8'
*** First throw call stack:
(...)
libc++abi.dylib: terminating with uncaught exception of type NSException
Abort trap: 6
extensions::sendRequest:157
return natives.StartRequestSync(functionName,
Thx, I got it one step further with your fix. Now the app crashes when I created a new project, or click on "Quick Tour". It it related to the menu also
"Item to be inserted into menu already is in another menu", some more details here:
2016-06-26 21:51:31.393 nwjs[4320:293985] *** Assertion failure in -[NSMenu insertItem:atIndex:], /Library/Caches/com.apple.xbs/Sources/AppKit/AppKit-1404.46/Menus.subproj/NSMenu.m:713
2016-06-26 21:51:31.394 nwjs[4320:293985] An uncaught exception was raised
2016-06-26 21:51:31.394 nwjs[4320:293985] Item to be inserted into menu already is in another menu
Ah, it's a bug, normally shorcuts are disabled during export... What kind of export did you do?
That said, shortcuts are enabled even you don't have focus on app, maybe that's what you are talking?
I do this because when I used this tool, I did "Ctrl S" always even when I changed something on my browser... So I made this choice and let the possibility to disabled shorcuts on Edit menu... I don't sure it's the right choice, I wait feedback and will try to polish the shorcuts controls...
(WINDOWS 7 Pro x64) If you use the select tool, then you want to use the rectangle (or ellipse) tool it always draw dashed line and I can't figure out how to restore (program restart helps) you can even change the width of the dashed line which is very nice! but no option to get back to normal rectangle.
Also shortcuts seems very aggressive, I cannot even write comment here, because it swallows my U,E,I letters and the spaces
Hi and thanks!
bug 1: I'm working on rethink the shortcut implementation, the next build should fix it.
bug 2: I don't understand the second bugs? If your image is fully transparent, this is normal, if not, was it a completely close shape and it fill an other transparent area? or is it fill even allready draw area? Is there any error.log file in the app folder?
Hello!
It is possible I am doing something wrong, of course, but the window is never transparent here.
I am using Windows 7 (64 bit). I do have Visual Studio installed, so theoretically, it might be referencing debug runtime DLLs, but that seems unlikely. The video card is Intel 4 Series Express, which may be incompatible with the GLES library you are using, but I do not have enough to test that. It is not throwing an error, it believes it is running correctly and does not generate an error.log file.
Thank you for the cool idea, appreciate any help you might have in getting it to run here.
- d
Hi,
If you don't show any bug report, the simple solution I think, and i hope that's the good one, is to change your theme (Control Panel -> Apparence and Personalization -> Change the theme) and don't choose a classic theme.
If it is not working, search if there is an error.log near the .exe.
If there is nothing, problem may be on nwjs. So we had to understand what do that, and let an issue on their github...
Hi, I just posted a short tutorial here: https://itch.io/t/28706/linux-and-mac-users
Hi, [Windows 7 x64]
Hi, I've been having some troubles with the tool. My main SO is windows 8.1, when I first started the tool the quick guide worked fine, but since then everytime I start it it shows the windows in white and just doesn't start. I tried using it in windows 7 in a virtual machine. There it starts without problem but the transparency doesn't work. I tried changing the theme but it didn't work either. I've triying everything this pass days, I'm despeared to use this great tool but I don't know what else to do. In the error file that it creates in windows 8 it says that it cannot charge the setting.json and when i try to force close it, it says that njws stopped working. Hope you can help. Please don't stop developing this tool, It has great possibilities.
Hi, that windows 8 bug is really annoying, I'm sorry, I have to investigate more on it...
Maybe if you want to help, you can download this version: https://framadrive.org/index.php/s/CtCk7uq0Qr7A2dV that opens a console at start and send me ( dunin(at)laposte.net ) what's this console show when the bug arrives...
Sure, I'll help you out. I think this tool has great possibilities. It would be my pleasure to help you as a tester. I'll pass to you the bugs and errors I encounter. I have tried it in windows 8 and 7 but I can try it in other OS's (except 10 because I can configure it right in the virtual box). Hope the tool grows in popularity ;)
Hi, sorry for that strange bug, I have to investigate...
But normally if you could save, animations aren't lost (check if save files aren't empty, you can open it with a text editor)
What are your configuration and the version you use? Did you use a sandbox?
And just to be sure I understand well: can you tell me exactly when you get the error, after browsing and choosing a file I guess?
Hi, Thank you for the quick reply! I had been using 0.3 on mac, placing the nwj in it's folder and it worked fine. I spent a few hours making an animation at 128x128. I Saved as, and exited. (no export as i wanted to finish later) Coming back the next day I have not been able to open recent, or open the file by searching for it. I'll click the file and nothing will happen, but I'll get an error log like this,
failed to load chrome-extension://dnlcphfbppfamdbgagjjeakmghplikll/Users/mstoneking1/Documents/baikin.ptop
or any path I place the saved ptop file in. I was able to open the file i animated in text edit and it definitely still has content!
Any help would be appreciated!
thanks
(Also, i must note that all versions of Ptop have ran on my mac, so I went to the older ones and they could not open the file as well. Perhaps my setup for saving is incorrect?)
Wow, really weird, I can't reproduce it. But sorry for the bug, I will try to fix it...
Can you give-me more precision:
Uh, strange. Maybe it's the file settings.json (that keeps the swatches) that's corrupted...
You can try to delete it (after send it to me (dunin(at)laposte.net) so I can debug the program). The location of the file depends on the OS and whether you use the itch application.
For example, on windows, it is C:\Users\yourUserName\AppData\Local\Paint Of Persia\User Data\Default\settings.json
Deleting settings.json did nothing. I completely wiped Paint of Persia including everything in Appdata and then re-installed it and that seemed to fix the problem for a bit, but then it started again. It seems that everytime i run the application the Colour palette gets smaller. after opening the application about 15 times the colour palette becomes unusable.
was it setting.json file that you wanted me to send?
thanks
Hi, here is an attempt to fix it: https://framadrop.org/r/Ow4Xg909c4#1PRrWInaRR24oDG0egaTHu0mN/n2SphNyNFZGGWukUI=
Can you try it and tell me if it solves the problem for the palette window or for all windows or for none?
If none, you can try to press f12 with the focus on the main window (the one with the menus) and see if there are any error messages in the console....
When I try to run this, it starts running and the window shows up in my taskbar, but none of the windows appear. If I mouse over the ptop.exe icon in the taskbar, the little window preview shows the file, edit, view menu, but that window is nowhere to be found. What's strange is that this worked fine an hour ago and yesterday, but all of a sudden it isn't working. I've tried downloading it again and downloading and running the 32 bit version with no luck.
Debug.log looks like this:
[0226/224923.713:ERROR:process_info.cc(625)] range at 0x73ef35cc00000000, size 0x248 fully unreadable
[0226/224923.728:ERROR:process_info.cc(625)] range at 0x73ef35ec00000000, size 0x248 fully unreadable
[0226/224923.728:ERROR:process_info.cc(625)] range at 0x0, size 0x248 fully unreadable
[0226/224923.874:ERROR:process_info.cc(625)] range at 0x1bd1277400000000, size 0x213 fully unreadable
[0226/224923.874:ERROR:process_info.cc(625)] range at 0x1bd1279400000000, size 0x213 fully unreadable
[0226/224923.874:ERROR:process_info.cc(625)] range at 0x0, size 0x213 fully unreadable
I'm running it on the latest version of windows 10.
Hi,
I can't investigate for now, but you can try to delete the local folder (for windows: C:\Users\yourUserName\AppData\Local\Paint Of Persia\ ) and relaunch the program.
BUT save yours files before and C:\Users\yourUserName\AppData\Local\Paint Of Persia\User Data\Default\settings.json if you have palettes or anything you want to keep in program settings (replace the file after relaunch).
This is the debug.log
[0721/230647.179:ERROR:process_info.cc(625)] range at 0x7f4819c600000000, size 0x82 fully unreadable
[0721/230647.183:ERROR:process_info.cc(625)] range at 0x7f4819e600000000, size 0x82 fully unreadable
[0721/230647.183:ERROR:process_info.cc(625)] range at 0x0, size 0x82 fully unreadable
[0721/233757.145:ERROR:process_info.cc(625)] range at 0xb9ec19c600000000, size 0x86 fully unreadable
[0721/233757.147:ERROR:process_info.cc(625)] range at 0xb9ec19e600000000, size 0x86 fully unreadable
[0721/233757.148:ERROR:process_info.cc(625)] range at 0x0, size 0x86 fully unreadable
This one is very strange! The window must exist but outside your screen...
Is it a problem that occurred after normal use or from the beginning?
Do you have a particular screen configuration (dual screen, recently changed screen)?
If so, you can try to delete the file that holds the last location of the window (among other things): C:\Users\yourUserName\AppData\Local\Paint Of Persia\User Data\Default\settings.json
Is it a problem that occurred after normal use or from the beginning?
-After normal use, but the last time I was in an unsaved project, the main tab crashed and did not allow me to save or close it (this has never happened before, despite having used it hundreds of times).
Do you have a particular screen configuration (dual screen, recently changed screen)?
-No, it is a simple laptop.
If so, you can try to delete...
-It worked!!!!! :D
I was all day yesterday trying to solve the problem, thanks for answering. <3 :)
Is there a pixelart discord community to talk?
Hi, can you try this build: https://framadrive.org/s/P5NZkoSHLgxZeQK
I think I found the problem, but I'm not sure...
When I open the application (on Windows), it shows that the app is open on the taskbar, but I can't find the actual window anywhere. I've had it downloaded for a few days now, and it was working fine around an hour ago.
Update: If I click the icon on the task bar and use a shortcut to open a ptop file, all the windows except the File Edit View one open up, so that works
Hi,
Sorry for the delay.
Maybe you used the program with two screens and the window is somewhere off the screen.
If you don't any preferences that you don't want to lose (palette), you can delete the file that holds the location of the window (among other things): C:\Users\yourUserName\AppData\Local\Paint Of Persia\User Data\Default\settings.json
Hi, is this still working? I have downloaded your brilliant app and I am using Win 11. I used it a few times but now when I open it, it just doesnt appear on the screen. I have tried to delete it and redownload it and reextract it, but it is giving me the same issue. Is not running on task and just it doesnt appear at all. Will now try to download the zip again but is abit wierd, dont know if you have encoutered this earlier. regards, Julia
Hi,
This looks like a multi-screen problem. The software keeps track of the position of the window, so if a second screen disappears, the window may be outside the remaining screen.
You can try to put back the second screen (if it's the case) or delete the file that holds this info, but you'll lose other information stored in this file: C:\Users\yourUserName\AppData\Local\Paint Of Persia\User DataDefault\settings.json
Hello,
I no longer have time to develop paint of persia, but I still have time to reply to messages!
It looks like a multi-screen problem like the previous message. The software keeps track of the position of the window, so if a second screen disappears, the window may be outside the remaining screen.You can try to put back the second screen (if it's the case) or delete the file that holds this info, but you'll lose other information stored in this file: C:\Users\yourUserName\AppData\Local\Paint Of Persia\User DataDefault\settings.json
BUT save yours files before and C:\Users\yourUserName\AppData\Local\Paint Of Persia\User Data\Default\settings.json if you have palettes or anything you want to keep in program settings...