Import error

About PR usage and development, and about the POP format.
Post Reply
User avatar
jjur
Efendi
Efendi
Posts: 13
Joined: February 7th, 2015, 10:56 pm
Location: Slovakia
Contact:

Import error

Post by jjur »

Hi
i want change same graphic for my new mod (Lost in errors 2), but when i try to import it back to .dat file it end with error:

Code: Select all

ntb-10@ntb10-Satellite-Pro-C660:~/Plocha/prince/PR-1.3/src/bin$ ./pr --resource=resources.xml --import=resources prince/KID.DAT
Princed resources (PR) v1.3 GNU/Linux
(c) Copyright 2003-2012 Princed Development Team
http://www.princed.org

Importing 'prince/KID.DAT' from 'resources'
File KID.DAT already exists. Replace? [Yes/no/all]:y
*** buffer overflow detected ***: ./pr terminated
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x789ef)[0x7f80d73c09ef]
/lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x5c)[0x7f80d74544fc]
/lib/x86_64-linux-gnu/libc.so.6(+0x10a550)[0x7f80d7452550]
/lib/x86_64-linux-gnu/libc.so.6(__fread_chk+0x13c)[0x7f80d7452c1c]
./pr[0x4117c9]
./pr[0x41019c]
./pr[0x40e60f]
./pr[0x407383]
./pr[0x401f21]
./pr[0x401801]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)[0x7f80d7369ec5]
./pr[0x401966]
======= Memory map: ========
00400000-0041a000 r-xp 00000000 08:06 824503                             /home/ntb-10/Plocha/prince/PR-1.3/src/bin/pr
00619000-0061a000 r--p 00019000 08:06 824503                             /home/ntb-10/Plocha/prince/PR-1.3/src/bin/pr
0061a000-0061b000 rw-p 0001a000 08:06 824503                             /home/ntb-10/Plocha/prince/PR-1.3/src/bin/pr
0061b000-0061c000 rw-p 00000000 00:00 0 
01e35000-01f3d000 rw-p 00000000 00:00 0                                  [heap]
7f80d7131000-7f80d7147000 r-xp 00000000 08:06 4198563                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7f80d7147000-7f80d7346000 ---p 00016000 08:06 4198563                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7f80d7346000-7f80d7347000 r--p 00015000 08:06 4198563                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7f80d7347000-7f80d7348000 rw-p 00016000 08:06 4198563                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7f80d7348000-7f80d7502000 r-xp 00000000 08:06 4211154                    /lib/x86_64-linux-gnu/libc-2.19.so
7f80d7502000-7f80d7702000 ---p 001ba000 08:06 4211154                    /lib/x86_64-linux-gnu/libc-2.19.so
7f80d7702000-7f80d7706000 r--p 001ba000 08:06 4211154                    /lib/x86_64-linux-gnu/libc-2.19.so
7f80d7706000-7f80d7708000 rw-p 001be000 08:06 4211154                    /lib/x86_64-linux-gnu/libc-2.19.so
7f80d7708000-7f80d770d000 rw-p 00000000 00:00 0 
7f80d770d000-7f80d7730000 r-xp 00000000 08:06 4211167                    /lib/x86_64-linux-gnu/ld-2.19.so
7f80d7905000-7f80d7908000 rw-p 00000000 00:00 0 
7f80d7928000-7f80d792f000 rw-p 00000000 00:00 0 
7f80d792f000-7f80d7930000 r--p 00022000 08:06 4211167                    /lib/x86_64-linux-gnu/ld-2.19.so
7f80d7930000-7f80d7931000 rw-p 00023000 08:06 4211167                    /lib/x86_64-linux-gnu/ld-2.19.so
7f80d7931000-7f80d7932000 rw-p 00000000 00:00 0 
7fffe2c76000-7fffe2c97000 rw-p 00000000 00:00 0                          [stack]
7fffe2daf000-7fffe2db1000 r-xp 00000000 00:00 0                          [vdso]
7fffe2db1000-7fffe2db3000 r--p 00000000 00:00 0                          [vvar]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
Zrušené (bol uložený výpis pamäte)
ntb-10@ntb10-Satellite-Pro-C660:~/Plocha/prince/PR-1.3/src/bin$ 
How to resolve it?
Thanks :D
David
The Prince of Persia
The Prince of Persia
Posts: 2846
Joined: December 11th, 2008, 9:48 pm
Location: Hungary

Re: Import error

Post by David »

I see you're using PR v1.3, but it's not the newest version.
Please try v1.3.1 from here: http://www.popot.org/other_useful_tools.php?tool=PR
If the problem remains, please upload the modified images so I can try it myself.
User avatar
jjur
Efendi
Efendi
Posts: 13
Joined: February 7th, 2015, 10:56 pm
Location: Slovakia
Contact:

Re: Import error

Post by jjur »

Thanks, i used 1.3.1 and retry changed images.
I think problem was in images becouse I edited it in Pinta editor on ubuntu, and it ignored ColorMap, becouse i didn't read pages with ColorMap in http://www.popot.org/documentation.php? ... PoP1Images.
New images are made in gimp
first changed image.png
first changed image.png (562 Bytes) Viewed 2884 times
:D
David
The Prince of Persia
The Prince of Persia
Posts: 2846
Joined: December 11th, 2008, 9:48 pm
Location: Hungary

Re: Import error

Post by David »

So the problem is solved.
jjur wrote:I think problem was in images
Yes, but PR should not crash, no matter what images you are using.
Did the problematic images also crash v1.3.1?

By the way, your errors remind me of this: viewtopic.php?p=13749#p13749
It happened when importing *any* image.
That error was in v1.3, but it was fixed in v1.3.1-prerelease1.
So if v1.3.1 does not crash then it was probably this bug.
Post Reply