SpringLayout fails to resize
re: Java Tutorial, How to Use SpringLayout
http://java.sun.com/docs/books/tutorial/uiswing/layout/spring.html
run SpringDemo3.java, given as an example on this page.
resize (expand) the frame by grabbing a border.
this works.
now attempt to resize (contract) the frame the same way.
this does not work.
why?
the code to create and lay out the frame is given below:
private static void createAndShowGUI() {
//Make sure we have nice window decorations.
JFrame.setDefaultLookAndFeelDecorated(true);
//Create and set up the window.
JFrame frame = new JFrame("SpringDemo3");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
//Set up the content pane.
Container contentPane = frame.getContentPane();
SpringLayout layout = new SpringLayout();
contentPane.setLayout(layout);
//Create and add the components.
JLabel label = new JLabel("Label: ");
JTextField textField = new JTextField("Text field", 15);
contentPane.add(label);
contentPane.add(textField);
//Adjust constraints for the label so it's at (5,5).
layout.putConstraint(SpringLayout.WEST, label,
5,
SpringLayout.WEST, contentPane);
layout.putConstraint(SpringLayout.NORTH, label,
5,
SpringLayout.NORTH, contentPane);
//Adjust constraints for the text field so it's at
//(<label's right edge> + 5, 5).
layout.putConstraint(SpringLayout.WEST, textField,
5,
SpringLayout.EAST, label);
layout.putConstraint(SpringLayout.NORTH, textField,
5,
SpringLayout.NORTH, contentPane);
//Adjust constraints for the content pane: Its right
//edge should be 5 pixels beyond the text field's right
//edge, and its bottom edge should be 5 pixels beyond
//the bottom edge of the tallest component (which we'll
//assume is textField).
layout.putConstraint(SpringLayout.EAST, contentPane,
5,
SpringLayout.EAST, textField);
layout.putConstraint(SpringLayout.SOUTH, contentPane,
5,
SpringLayout.SOUTH, textField);
//Display the window.
frame.pack();
frame.setVisible(true);
}
so no one has anything to add... anyone else having this issue?
and what happened to the discussion forum for the past few/several month?!? it was inaccessible...
Similar Messages
-
Hello! I have a method that do resize of the jpeg image:
private Boolean resizePhoto(String fileName, int destWidth, int destHeight, String destFile) {
FileInputStream fileInputStream = null;
FileOutputStream fileOutputStream = null;
float scaleX,scaleY;
try {
fileInputStream = new FileInputStream(fileName);
SeekableStream s = SeekableStream.wrapInputStream(fileInputStream, true);
RenderedOp image = JAI.create("stream", s);
((OpImage) image.getRendering()).setTileCache(null);
scaleX = (float)destWidth / (float)image.getWidth();
if(destHeight==0) scaleY = scaleX;
else scaleY = destHeight / image.getHeight();
ParameterBlock pb = new ParameterBlock();
pb.addSource(image); // The source image
pb.add(scaleX); // The xScale
pb.add(scaleY); // The yScale
pb.add(0.0F); // The x translation
pb.add(0.0F); // The y translation
pb.add(new InterpolationNearest()); // The interpolation
RenderedOp resizedImage = JAI.create("scale", pb, null);
fileOutputStream = new FileOutputStream(destFile);
JAI.create("encode", resizedImage, fileOutputStream, "JPEG", null);
return true;
} catch (FileNotFoundException ex) {
System.out.println("FileNotFoundException");
ex.printStackTrace();
return false;
} finally {
try {
fileInputStream.close();
fileOutputStream.close();
} catch (IOException ex) {
System.out.println("IOException");
ex.printStackTrace();
return false;
}But cannot resize certain photos and getting an error:
Error: One factory fails for the operation "jpeg"
Occurs in: javax.media.jai.ThreadSafeOperationRegistry
java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at javax.media.jai.FactoryCache.invoke(FactoryCache.java:130)
at javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1682)
at javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:481)
at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:340)
at com.sun.media.jai.opimage.StreamRIF.create(StreamRIF.java:110)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at javax.media.jai.FactoryCache.invoke(FactoryCache.java:130)
at javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1682)
at javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:481)
at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:340)
at javax.media.jai.RenderedOp.createInstance(RenderedOp.java:830)
at javax.media.jai.RenderedOp.createRendering(RenderedOp.java:878)
at javax.media.jai.RenderedOp.getRendering(RenderedOp.java:899)
at krakersupdater.PhotoProcessor.resizePhoto(PhotoProcessor.java:181)
at krakersupdater.PhotoProcessor.doInBackground(PhotoProcessor.java:92)
at krakersupdater.PhotoProcessor.doInBackground(PhotoProcessor.java:33)
at javax.swing.SwingWorker$1.call(SwingWorker.java:278)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at javax.swing.SwingWorker.run(SwingWorker.java:317)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.OutOfMemoryError: Java heap space
at java.awt.image.DataBufferInt.<init>(DataBufferInt.java:41)
at java.awt.image.Raster.createPackedRaster(Raster.java:458)
at sun.awt.image.codec.JPEGImageDecoderImpl.allocateDataBuffer(JPEGImageDecoderImpl.java:338)
at sun.awt.image.codec.JPEGImageDecoderImpl.readJPEGStream(Native Method)
at sun.awt.image.codec.JPEGImageDecoderImpl.decodeAsBufferedImage(JPEGImageDecoderImpl.java:210)
at com.sun.media.jai.codecimpl.JPEGImage.<init>(JPEGImageDecoder.java:114)
at com.sun.media.jai.codecimpl.JPEGImageDecoder.decodeAsRenderedImage(JPEGImageDecoder.java:53)
at com.sun.media.jai.opimage.CodecRIFUtil.create(CodecRIFUtil.java:120)
at com.sun.media.jai.opimage.JPEGRIF.create(JPEGRIF.java:52)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at javax.media.jai.FactoryCache.invoke(FactoryCache.java:130)
at javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1682)
at javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:481)
at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:340)
at com.sun.media.jai.opimage.StreamRIF.create(StreamRIF.java:110)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at javax.media.jai.FactoryCache.invoke(FactoryCache.java:130)
at javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1682)
at javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:481)
at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:340)
at javax.media.jai.RenderedOp.createInstance(RenderedOp.java:830)
at javax.media.jai.RenderedOp.createRendering(RenderedOp.java:878)
at javax.media.jai.RenderedOp.getRendering(RenderedOp.java:899)
at krakersupdater.PhotoProcessor.resizePhoto(PhotoProcessor.java:181)
at krakersupdater.PhotoProcessor.doInBackground(PhotoProcessor.java:92)
at krakersupdater.PhotoProcessor.doInBackground(PhotoProcessor.java:33)
at javax.swing.SwingWorker$1.call(SwingWorker.java:278)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)Why I cannot resize some photos ? It is because of color space ? If so, how can I convert from one color space to another ?
This is link to photo which my function cannot handle: http://www.tvksmp.pl/~filipb/MULSUEEKR0006_LRG.jpg
Edited by: CheckRaise on Aug 7, 2009 5:43 AM
Edited by: CheckRaise on Aug 7, 2009 5:47 AMI was using ImageIO earlier for resizing but then got problems with jpg in another color spaceYou can save a JPEG in CMYK color space. The JPEGImageReader in core java is unable to read such jpegs, and will throw an IOException complaining that it can't. Although JAI won't throw an exception, it to isn't able to properly read the jpeg. JAI interprets cmyk images as argb images and the colors get all screwed up.
And why this function consumes so much memory?What's the size of the largest image you are reading? And to what size are you scaling it? -
Preview fails to resize Photoshop JPEGs
I have a 2013 Retina MBP on Yosemite, with a licensed copy of Photoshop CC. My problem is, Preview cannot deal with JPEGs I am creating in Photoshop. Preview is really sluggish when it loads the images, and is unable to resize them. It appears to do so, but when the image is saved and closed, the resolution is not modified correctly and the file size stays oddly large.
Here is one such image: https://drive.google.com/file/d/0B1-phaWAfkzjQUxMR3EydDJLM1k/view?usp=sharing
Something about these JPEGs is making Preview lose its mind, but I'm not sure what it is. Can anyone help?Post a link to one, please.
Which DW? Which OS?
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"Nathan McKinney" <[email protected]> wrote
in message
news:gorfbi$1ls$[email protected]..
>
Ok, I have a dreamweaver question, and I?m hoping you
can help
> me
> solve the trouble.
>
> I am creating some images using photoshop. Building a
site locally and
> trying
> to see the images in dreamweaver.
>
> They are standard RGB images, jpgs. When I pull them
directly into
> browsers,
> they all work great. For some crazy reason I can?t get
them to preview in
> dreamweaver. They show up as broken links.
>
> I have covered a few trouble shooting basics here, and
still haven?t
> figured
> it out.
>
> 1) the images are definitely RGB, and work in normal web
browsers, just
> not in
> dreamweaver.
> 2) In fact, when I preview the html in a browser via
dreamweaver the links
> seem to work. They are only broken in dreamweaver
itself.
> 3) I have pulled random jpegs off of the web, dropped
them into that same
> folder linked them up the same way and they work fine.
Only the jpegs I'm
> creating in photoshop seem to be causing the trouble.
> 4) I have tried various options in the site management
dialog box
> including
> making links relative to the document or the site root.
Nothing changes.
> 5) I have exported the jpegs a number of different ways
from photoshop,
> via
> the normal ?save? and also ?save for web?
> 6) When I save the jpegs as a gif instead, they work
fine.
> 7) I have reset the root site several times, and
rebooted several times.
> No
> dice.
> -
i am getting sick of this problem and rebooting solves nothing. restoring does nothing. what gives Apple???
I go into txt msg and more times than i like when i rotate the phone to landscape, the dang keyboard is stuck in portrait?!? ... so the keys are smaller and there is all this extra space to the right. i have to swipe the keyboard away and then bring it back up before it resizes to the landscape view?!?!? ARGH!!!
iphone 4Sso no one has anything to add... anyone else having this issue?
and what happened to the discussion forum for the past few/several month?!? it was inaccessible... -
I am using a 1TB WD studio passport portable drive with my 2011 MacBook Pro. I have the portable drive partitioned into 4 volumes: 355 GB, 320 GB, 320 GB, & 4 GB. But Disk Utility won't allow me to split the third of those into 160 GB /160 GB. All volumes verify as seeming "to be okay". Seems if Disk Utility could create me a 4GB partition that 160 GB is plenty big enough, right? Something's not right; Can you help me with this please?
What is on those partitions and or the partition you want to split in two?
If you don't have any data on partitions or if you can save it someplace else for the time being then why not just Re-Partition the whole drive into the sizes you now want. -
Upload and Resize Image not inserting filename in database
I have a form that I created using the insert record form wizard. One of the fields is a file field and my form enctype is set to multipart/form-data. I then used the upload and resize image behavior and set the parameters. When testing the form the file uploads to the correct directory but no entry is made into the database for that particular field. The other fields are entered into the database just fine. If it helps, here is the code generated before the tag:
<br />
<br /><?php require_once('../../Connections/test.php'); ?>
<br /><?php<br />// Load the common classes<br />require_once('../../includes/common/KT_common.php');<br /><br />// Load the tNG classes<br />require_once('../../includes/tng/tNG.inc.php');<br /><br />// Make a transaction dispatcher instance<br />$tNGs = new tNG_dispatcher("../../");<br /><br />// Make unified connection variable<br />$conn_test = new KT_connection($test, $database_test);<br /><br />// Start trigger<br />$formValidation = new tNG_FormValidation();<br />$tNGs->prepareValidation($formValidation);<br />// End trigger<br /><br />//start Trigger_ImageUpload trigger<br />//remove this line if you want to edit the code by hand <br />function Trigger_ImageUpload(&$tNG) {<br /> $uploadObj = new tNG_ImageUpload($tNG);<br /> $uploadObj->setFormFieldName("picture");<br /> $uploadObj->setDbFieldName("picture");<br /> $uploadObj->setFolder("../images/");<br /> $uploadObj->setResize("true", 120, 0);<br /> $uploadObj->setMaxSize(1500);<br /> $uploadObj->setAllowedExtensions("gif, jpg, jpe, jpeg, png, bmp");<br /> $uploadObj->setRename("auto");<br /> return $uploadObj->Execute();<br />}<br />//end Trigger_ImageUpload trigger<br /><br />// Make an insert transaction instance<br />$ins_team = new tNG_insert($conn_test);<br />$tNGs->addTransaction($ins_team);<br />// Register triggers<br />$ins_team->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Insert1");<br />$ins_team->registerTrigger("BEFORE", "Trigger_Default_FormValidation", 10, $formValidation);<br />$ins_team->registerTrigger("END", "Trigger_Default_Redirect", 99, "../team.php");<br />$ins_team->registerTrigger("AFTER", "Trigger_ImageUpload", 97);<br />// Add columns<br />$ins_team->setTable("team");<br />$ins_team->addColumn("id", "NUMERIC_TYPE", "POST", "id");<br />$ins_team->addColumn("sort", "NUMERIC_TYPE", "POST", "sort");<br />$ins_team->addColumn("name", "STRING_TYPE", "POST", "name");<br />$ins_team->addColumn("title", "STRING_TYPE", "POST", "title");<br />$ins_team->addColumn("description", "STRING_TYPE", "POST", "description");<br />$ins_team->addColumn("picture", "FILE_TYPE", "FILES", "picture");<br />$ins_team->setPrimaryKey("id", "NUMERIC_TYPE");<br /><br />// Execute all the registered transactions<br />$tNGs->executeTransactions();<br /><br />// Get the transaction recordset<br />$rsteam = $tNGs->getRecordset("team");<br />$row_rsteam = mysql_fetch_assoc($rsteam);<br />$totalRows_rsteam = mysql_num_rows($rsteam);<br />?>If the reason is about memory, warning message should be happened when upload the image, because "show thumbnail" means resize at second time, how come you failed to resize the picture that system let it upload succeed at the first time by the same resize process?
upload procedure
a.jpg: 2722x1814, 1.2mb
upload condition: fixed width 330px, 1.5mb
"upload and resize" a.jpg -> file upload -> "resize engine" -> passed (but not work and no warning message)
"show thumbnail" a.jpg -> "resize engine" -> failed (not enough memory)
it doesn't make sense.
and you miss an important key point, I upload the same picture myself, and resize work, so I said it happened at random, and that's why I am so worried. -
I have an I-Mac running OSX 10.9.2. When I try to export (upload) pics from I-Photo to Photobucket I'm getting a failed messafge that reads "Upload failed. Resize error. IMP error We were unable to upload your image" Any thoughts on a possible solution? My enable java script is checked in the security window on Safari.
This a help page from Photobucket with an email link to Photobucket support if the suggestions do not help.
http://support.photobucket.com/hc/en-us/articles/200723794-Troubleshooting-Uploa d-Problems -
Weird resizing bug with Fluxbox + Xcompmgr.
I'm using fluxbox and xcompmgr today, trying it out again after a while with openbox. Every time I resize a window, it seems like xcompmgr is failing to resize the dropshadow it leaves behind it, or other times it will just show the contents of the window in the space they used to occupy.
Screens:
http://i30.tinypic.com/2mnm638.png
http://i31.tinypic.com/2niz2us.png
Any ideas would be great, I used fluxbox for quite a while and had no problems like this!I have same bug ....but doesn't have a solution for....anyone else?
-
Hi all,
I have ran out of space in the asm so couldn't add the datafiles to a tablesapce so I tried to resize the tablespace which has got unused space so that I can use the gained space to add datafile when I tried to do that I am getting the following error. What can I do
select FILE_NAME,TABLESPACE_NAME,sum(MAXBYTES)/1024/1024/1024,sum(USER_BYTES)/1024/1024/1024,sum(BYTES)/1024/1024/1024 from dba_data_files where TABLESPACE_NAME='DATA11' group by TABLESPACE_NAME,FILE_NAME;
FILE_NAME TABLESPACE_NAME SUM(MAXBYTES)/1024/1024/1024 SUM(USER_BYTES)/1024/1024/1024 SUM(BYTES)/1024/1024/1024
+DATA_1/affperf/datafile/data11.290.639902725 DATA11 31.9999847 2.01165771 2.01171875
+DATA_1/affperf/datafile/data11.291.639902049 DATA11 31.9999847 1.91497803 1.91503906
+DATA_1/affperf/datafile/data11.296.639896325 DATA11 31.9999847 4.73626709 4.73632813
+DATA_1/affperf/datafile/data11.298.639895327 DATA11 31.9999847 1.99212646 1.9921875
+DATA_1/affperf/datafile/data11.300.639894203 DATA11 31.9999847 2.07611084 2.07617188
+DATA_1/affperf/datafile/data11.305.639892373 DATA11 31.9999847 1.93255615 1.93261719
+DATA_1/affperf/datafile/data11.319.639873689 DATA11 31.9999847 2.04779053 2.04785156
+DATA_1/affperf/datafile/data11.339.639863013 DATA11 31.9999847 5.23431396 5.234375
Actually the alloted size for +DATA_1/affperf/datafile/data11.290.639902725 file is 31 g but used is very less as you can see, but when I tried to make it to 20 g by using the following command i am getting the error.
SQL> ALTER DATABASE DATAFILE '+DATA_1/affperf/datafile/data11.291.639902049' RESIZE 20g;
ALTER DATABASE DATAFILE '+DATA_1/affperf/datafile/data11.291.639902049' RESIZE 20g
ERROR at line 1:
ORA-01237: cannot extend datafile 233
ORA-01110: data file 233: '+DATA_1/affperf/datafile/data11.291.639902049'
ORA-17505: ksfdrsz:1 Failed to resize file to size 2621440 blocks
ORA-15041: diskgroup space exhausted
What is the problem, Please help.Hemant K Chitale wrote:
+DATA_1/affperf/datafile/data11.291.639902049 DATA11 31.9999847 1.91497803 1.91503906The datafile is only 1.9GB currently. Why not try resizing it to 2GB
Similarly :
+DATA_1/affperf/datafile/data11.290.639902725 DATA11 31.9999847 2.01165771 2.01171875this datafile is only 2.012GB in size.
What other files do you have in the DiskGroup ? What is the total size of the files ? How large is the DiskGroup ?
Hemant K Chitaleactually i am trying to shrink data11 tablespace
TABLESPACE_NAME SUM(MAXBYTES)/1024/1024/1024 SUM(USER_BYTES)/1024/1024/1024 SUM(BYTES)/1024/1024/1024
DATA11 255.999878 21.9458008 21.9462891
This is the status of the tablespace, See out of 255gb alloted for it only 22gb is used. So I thought of shrinking it and use the gained space through shrink to add datafile to another tablespace. on trying this i got the mentioned error. also now i checked the asm space it shows that 99gb is free. Is re balancing problem causing this ORA-15041. -
Hot backup full disk job Scheduled failed
Hello,
We are facing the issue with hot backup job. Can some one help me on this how to fix.
Here is the error log message..
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of backup command on c1 channel at 03/20/2014 01:25:20
ORA-19510: failed to set size of 4985610 blocks for file "+DB_FLASH_1/##########"(block size=8192)
ORA-17505: ksfdrsz:1 Failed to resize file to size 4985610 blocks
ORA-15041: diskgroup space exhausted
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of allocate command on c1 channel at 03/19/2014 23:00:01
ORA-19554: error allocating device, device type: SBT_TAPE, device name:
ORA-27211: Failed to load Media Management Library
Additional information: 2Hi,
It doesn't look like a Scheduler issue, but an RMAN one instead.
According to the error, the diskgroup space is exhausted, so perhaps you're running out of space on your disk? -
Can't have more than one application watch videos at the same time
The title isn't entirely accurate. I will write all my observations here.
I believe I started to notice these problems since the (recent) X11 update which seems to have happened in July. The subsequent Mesa updates may be related. These updates also caused X11 to crash sometimes, this issue got resolved after a patch update though, it seems.
Before I share my issues I have a Dell Vostro 1500 with the Intel Core 2 Duo processor (which includes the integrated GPU), using the Linux BFS 3.16.6-2-x86_64 kernel (plan to upgrade tomorrow morning while the internet is quick) and the packages listed in https://wiki.archlinux.org/index.php/Intel_Graphics.
The most reproducible version of this problem I've had has to do with Chromium, VLC/MPlayer/MPV and to an extent Firefox.
To reproduce all I have to do is have Chromium open and watch some video on YouTube (HTML5 as I do not have version with Flash included). Then I open a video in VLC/MPlayer/MPV and one of two things can happen:
It can work on VLC, but then if I go back to the HTML5 video when I press play it tells me it has crashed and I should reload the tab.
VLC simply does not work and it plays the audio but no video, sometimes not even the audio.
This is VLC's output in a case where nor the audio or video work (and the HTML5 crashed as well):
https://imgur.com/J897mMG,17xu7ip (album of 2 scrots)
I had to close VLC for the HTML5 to work, and if you're curious, yes I am listening to Weird Al as I write this. Most of the time I have to reset X11 (or even reboot) to be able to watch videos or listen to audio with VLC again. I have noticed that sometimes if I haven't watched a video for a long time VLC works again (or at least the audio does, sometimes the video).
OK so that's with video apps. This may be unrelated but I think it's worth mentioning here. With Firefox I run into an issue where Flash gets super glitchy, it gets stuck in one glitchy frame or it flashes between two glitchy frames, sometimes it shows the video in the background with the glitchy frames on top still flashing (so I get glimpses of the video), and other glitches.
Some of the ways I fix it are to reload the tab, open a new Firefox window and open the video there, reset Firefox, close Chromium's video tabs, amongst others. None of these work 100% of the time. Sometimes none of them work.
That is all that I can think of. I've been doing a couple of weeks of tests and normal usage in order to acquire this report so it'd be cool if there's a solution.
Thanks! If there are any questions or further information you need, feel free to ask.
Last edited by Greduan (2014-11-14 00:17:51)@kalos
Uninstalled everything PA, also uninstalled mangler which was the only thing that depended on PA. It didn't work anyway.
No pulseaudio --kill command so I couldn't run.
Checked systemd journal and there is no mention of PA this time.
Checked top, and grepped ps aux and there is no PA there either.
I also rebooted the machine completely just to make sure. However VLC and HTML5 have the same incompatibilities.
_ vlc Videos/anime/fmab/01.mp4
VLC media player 2.1.5 Rincewind (revision 2.1.4-49-gdab6cb5)
[0x1bc30f8] pulse audio output error: PulseAudio server connection failure: Connection refused
[0x1af4118] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
Fontconfig warning: FcPattern object size does not accept value "0"
Fontconfig warning: FcPattern object size does not accept value "0"
Fontconfig warning: FcPattern object size does not accept value "0"
Fontconfig warning: FcPattern object size does not accept value "0"
[0x7fb604001248] main vout display error: Failed to resize display
But the video and audio did work until I ran some HTML5 video, after which the audio worked, and then I opened it again and it didn't work...
@nomorewindows
I see. That's too bad. At least we're not alone.
Last edited by Greduan (2014-11-14 01:34:29) -
Ffplay doesn't play video after using chromium
Primarily my VLC stops playing movies after a while of using PC (and I think it stops working after first youtube video in chrome... I have chromium with gtalk and google talk plugin, stackoverflow.com and youtube opened... and the only one that seems to me to be related to video is youtube).
This is what I get trying to use ffplay:
[vyktor@machine ~]$ ffplay file.mp4 -loglevel debug
ffplay version 2.5 Copyright (c) 2003-2014 the FFmpeg developers
built on Dec 4 2014 21:09:42 with gcc 4.9.2 (GCC)
configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-avisynth --enable-avresample --enable-fontconfig --enable-gnutls --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-runtime-cpudetect --enable-shared --enable-swresample --enable-vdpau --enable-version3 --enable-x11grab
libavutil 54. 15.100 / 54. 15.100
libavcodec 56. 13.100 / 56. 13.100
libavformat 56. 15.102 / 56. 15.102
libavdevice 56. 3.100 / 56. 3.100
libavfilter 5. 2.103 / 5. 2.103
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f05e8000920] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f05e8000920] ISO: File Type Major Brand: isom
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f05e8000920] Before avformat_find_stream_info() pos: 599402532 bytes read:2866001 seeks:1
[h264 @ 0x7f05e80022e0] no picture
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f05e8000920] All info found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f05e8000920] After avformat_find_stream_info() pos: 2852731 bytes read:2898769 seeks:2 frames:13
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'file.mp4':
Metadata:
major_brand : isom
minor_version : 1
compatible_brands: isomavc1
creation_time : 2014-10-06 03:51:25
Duration: 01:37:26.93, start: 0.000000, bitrate: 820 kb/s
Stream #0:0(und), 12, 1/24000: Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709/unknown/unknown, left), 720x404 (720x416) [SAR 1:1 DAR 180:101], 1001/48000, 694 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc (default)
Metadata:
creation_time : 2014-10-06 03:51:25
Stream #0:1(und), 1, 1/48000: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 121 kb/s (default)
Metadata:
creation_time : 2014-10-06 03:51:30
handler_name : GPAC ISO Audio Handler
detected 2 logical cores
[ffplay_abuffer @ 0x7f05e8288d20] Setting 'sample_rate' to value '48000'
[ffplay_abuffer @ 0x7f05e8288d20] Setting 'sample_fmt' to value 'fltp'
[ffplay_abuffer @ 0x7f05e8288d20] Setting 'channels' to value '2'
[ffplay_abuffer @ 0x7f05e8288d20] Setting 'time_base' to value '1/48000'
[ffplay_abuffer @ 0x7f05e8288d20] Setting 'channel_layout' to value '0x3'
[ffplay_abuffer @ 0x7f05e8288d20] tb:1/48000 samplefmt:fltp samplerate:48000 chlayout:0x3
[ffplay_abuffersink @ 0x7f05e8289b60] auto-inserting filter 'auto-inserted resampler 0' between the filter 'ffplay_abuffer' and the filter 'ffplay_abuffersink'
[AVFilterGraph @ 0x7f05e8009200] query_formats: 2 queried, 0 merged, 3 already done, 0 delayed
[auto-inserted resampler 0 @ 0x7f05e828ab80] ch:2 chl:stereo fmt:fltp r:48000Hz -> ch:2 chl:stereo fmt:s16 r:48000Hz
Audio frame changed from rate:48000 ch:2 fmt:fltp layout:stereo serial:-1 to rate:48000 ch:2 fmt:fltp layout:stereo serial:1
[ffplay_abuffer @ 0x7f05dc005240] Setting 'sample_rate' to value '48000'
[ffplay_abuffer @ 0x7f05dc005240] Setting 'sample_fmt' to value 'fltp'
[ffplay_abuffer @ 0x7f05dc005240] Setting 'channels' to value '2'
[ffplay_abuffer @ 0x7f05dc005240] Setting 'time_base' to value '1/48000'
[ffplay_abuffer @ 0x7f05dc005240] Setting 'channel_layout' to value '0x3'
[ffplay_abuffer @ 0x7f05dc005240] tb:1/48000 samplefmt:fltp samplerate:48000 chlayout:0x3
[ffplay_abuffersink @ 0x7f05dc0063c0] auto-inserting filter 'auto-inserted resampler 0' between the filter 'ffplay_abuffer' and the filter 'ffplay_abuffersink'
[AVFilterGraph @ 0x7f05dc004f40] query_formats: 2 queried, 0 merged, 3 already done, 0 delayed
[auto-inserted resampler 0 @ 0x7f05dc0076e0] ch:2 chl:stereo fmt:fltp r:48000Hz -> ch:2 chl:stereo fmt:s16 r:48000Hz
[h264 @ 0x7f05e828f4e0] no picture
[h264 @ 0x7f05e8296680] no picture
Video frame changed from size:0x0 format:none serial:-1 to size:720x404 format:yuv420p serial:1
[ffplay_buffer @ 0x7f05d406c160] Setting 'video_size' to value '720x404'
[ffplay_buffer @ 0x7f05d406c160] Setting 'pix_fmt' to value '0'
[ffplay_buffer @ 0x7f05d406c160] Setting 'time_base' to value '1/24000'
[ffplay_buffer @ 0x7f05d406c160] Setting 'pixel_aspect' to value '1/1'
[ffplay_buffer @ 0x7f05d406c160] Setting 'frame_rate' to value '24000/1001'
[ffplay_buffer @ 0x7f05d406c160] w:720 h:404 pixfmt:yuv420p tb:1/24000 fr:24000/1001 sar:1/1 sws_param:
[ffplay_crop @ 0x7f05d406cb20] Setting 'out_w' to value 'floor(in_w/2)*2'
[ffplay_crop @ 0x7f05d406cb20] Setting 'out_h' to value 'floor(in_h/2)*2'
[AVFilterGraph @ 0x7f05d4000b80] query_formats: 3 queried, 2 merged, 0 already done, 0 delayed
[ffplay_crop @ 0x7f05d406cb20] w:720 h:404 sar:1/1 -> w:720 h:404 sar:1/1
X Error of failed request: BadRequest (invalid request code or no such operation)
Major opcode of failed request: 151 (XVideo)
Minor opcode of failed request: 19 ()
Serial number of failed request: 25
Current serial number in output stream: 26
I was unable to google Major opcode of failed request: 151 (XVideo) for a few hours. I'm running:
[vyktor@machine ~]$ uname -a
Linux machine 3.17.4-1-ARCH #1 SMP PREEMPT Fri Nov 21 21:14:42 CET 2014 x86_64 GNU/Linux
[vyktor@machine ~]$ pacman -Ss vlc
extra/phonon-qt4-vlc 0.8.2-1
Phonon VLC backend for Qt4
extra/phonon-qt5-vlc 0.8.2-1
Phonon VLC backend for Qt5
extra/vlc 2.1.5-5 [installed]
A multi-platform MPEG, VCD/DVD, and DivX player
[vyktor@machine ~]$ pacman -Ss ffmpeg
extra/ffmpeg 1:2.5-1 [installed]
Complete and free Internet live audio and video broadcasting solution
extra/ffmpeg-compat 1:0.10.15-1 [installed]
Complete and free Internet live audio and video broadcasting solution
extra/ffmpegthumbnailer 2.0.9-2 [installed]
Lightweight video thumbnailer that can be used by file managers.
extra/gst-libav 1.4.4-1 [installed]
Gstreamer libav Plugin
extra/gstreamer0.10-ffmpeg 0.10.13-2 (gstreamer0.10-plugins) [installed]
Gstreamer FFMpeg Plugin
extra/kdemultimedia-ffmpegthumbs 4.14.3-1 (kde kdemultimedia)
FFmpeg-based thumbnail creator for video files
community/ffmpeg2theora 0.29-6
Simple converter to create Ogg Theora files
community/ffms2 2.20-2
A libav/ffmpeg based source library and Avisynth plugin for easy frame accurate access
community/winff 1.5.3-2
GUI for ffmpeg
[vyktor@machine ~]$ pacman -Ss chromium
extra/chromium 39.0.2171.95-1 [installed]
The open-source project behind Google Chrome, an attempt at creating a safer, faster, and more stable browser
community/chromium-bsu 0.9.15.1-1
A fast paced top scrolling shooter
community/fcitx-mozc 1.15.1917.102-1
Fcitx Module of A Japanese Input Method for Chromium OS, Windows, Mac and Linux (the Open Source Edition of Google Japanese Input)
VLC opens and runs audio but with no video.
In chromium, video runs just fine.
I think (I'm not sure) that first youtube video stops vlc/ffplay from working properly.
Further more, after setting video output to X11 instead of "Default" in VLC videos start playing again, but still no luck with ffplay.
Output device set to X11 works (although with some errors):
[vyktor@machine ~]$ vlc --vout X11 file.mp4 -v
VLC media player 2.1.5 Rincewind (revision 2.1.4-49-gdab6cb5)
[0x1344118] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/access/libvcdx_plugin.so' (libvcdinfo.so.0: cannot open shared object file: No such file or directory)
[0x1344118] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/visualization/libprojectm_plugin.so' (libprojectM.so.2: cannot open shared object file: No such file or directory)
[0x1344118] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/visualization/libgoom_plugin.so' (libgoom2.so.0: cannot open shared object file: No such file or directory)
[0x1344118] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/codec/libtwolame_plugin.so' (libtwolame.so.0: cannot open shared object file: No such file or directory)
[0x1414c38] pulse audio output error: PulseAudio server connection failure: Connection refused
[0x1344118] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[0x7f4c80c01598] mp4 stream warning: unknown box type btrt (incompletely loaded)
[0x7f4c80c01828] mp4 demux warning: CTTS table
Fontconfig warning: FcPattern object size does not accept value "0"
Fontconfig warning: FcPattern object size does not accept value "0"
[0x7f4c81601b08] faad decoder warning: decoded zero sample
Fontconfig warning: FcPattern object size does not accept value "0"
Fontconfig warning: FcPattern object size does not accept value "0"
[0x7f4c8155a5f8] avcodec decoder warning: disabling direct rendering
[0x7f4c64001248] main vout display warning: VoutDisplayEvent 'pictures invalid'
[0x7f4c64001248] main vout display warning: VoutDisplayEvent 'pictures invalid'
[0x7f4c64001248] main vout display error: Failed to resize display
[0x1414c38] alsa audio output warning: device cannot be paused
With XVideo:
[vyktor@machine ~]vlc --vout XVideo file.mp4 -v
VLC media player 2.1.5 Rincewind (revision 2.1.4-49-gdab6cb5)
[0x1bd9118] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/access/libvcdx_plugin.so' (libvcdinfo.so.0: cannot open shared object file: No such file or directory)
[0x1bd9118] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/visualization/libprojectm_plugin.so' (libprojectM.so.2: cannot open shared object file: No such file or directory)
[0x1bd9118] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/visualization/libgoom_plugin.so' (libgoom2.so.0: cannot open shared object file: No such file or directory)
[0x1bd9118] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/codec/libtwolame_plugin.so' (libtwolame.so.0: cannot open shared object file: No such file or directory)
[0x1ca9c38] pulse audio output error: PulseAudio server connection failure: Connection refused
[0x1bd9118] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[0x7f2f98c01598] mp4 stream warning: unknown box type btrt (incompletely loaded)
[0x7f2f98c01808] mp4 demux warning: CTTS table
[0x7f2f99601908] faad decoder warning: decoded zero sample
Fontconfig warning: FcPattern object size does not accept value "0"
Fontconfig warning: FcPattern object size does not accept value "0"
Fontconfig warning: FcPattern object size does not accept value "0"
Fontconfig warning: FcPattern object size does not accept value "0"
[0x7f2f9955a668] avcodec decoder warning: disabling direct rendering
[0x7f2f78001248] main vout display error: Failed to resize display
[0x1ca9c38] alsa audio output warning: device cannot be paused
With -vv:
[0x7f7a30001248] xcb_xv vout display debug: cannot put image: X11 error 1
[0x7f7a30001248] xcb_xv vout display debug: cannot put image: X11 error 1
[0x7f7a30001248] xcb_xv vout display debug: cannot put image: X11 error 1
[0x7f7a30001248] xcb_xv vout display debug: cannot put image: X11 error 1
[0x7f7a30001248] xcb_xv vout display debug: cannot put image: X11 error 1
[0x7f7a30001248] xcb_xv vout display debug: cannot put image: X11 error 1
Last edited by vyktor (2014-12-11 11:33:12)I have few mkv files and the result is the same.
ffplay -vn works, with video I get Major opcode of failed request: 151 (XVideo)
I've added output from VLC to original post with output out of different VLCs --vouts... -
SWF not working properly when sent to acrobat
I am trying to place a simple swf file in a layout but Acrobat refuses to display it at the correct size. It shows me the correct dimensions in the import dialog, but then seems to ignore them. The final placed object comes in at 320x240 no matter what.
As for where the SWF is coming from, how it was made etc, I have tried multiple methods for making this work. Here's the list:
1. Created an MSO in Indesign, exported the mso element as a SWF and replaced the swf in the document. FAIL - Transparency breaks and the size is wrong
2. Retried about 5 versions of the about with opaque background and various sizes. FAIL - same problems
3. Built the SWF in Flash Catalyst, placed in InDesign FAIL - same problems
4. Used Catalyst swf, place directly in Acrobat 10. Import works, transparency works...FAIL - always resized to 320x240
I am using Indesign CS5 and Acrobat 10 on Mac OS X 10.6.6
I could really use some help here. I placed this same note in the acrobat forums, because I am getting pretty desperate here. I am supposed to deliver the final client file for this project today and this represents one of the key showcase elements!
Thanks.Ok. So after reading through a pile of forum posts and blogs I believe I may have my answer. Though I can't say I like it much.
It seems that Acrobat does not render video/swf pixels at 1:1 (See This Forum Comment) and the disparity causes the image to appear distorted. The only fix I have really seen so far is to play with the zoom level in acrobat until the image comes into focus. A point that is different on every screen.
Here are some of the posts I found most helpful:
http://acrobatusers.com/forum/rich-mediaflash/video-quality-degraded#comment-72985
http://acrobatusers.com/forum/rich-mediaflash/original-swf-size-distortion-import
http://forums.adobe.com/message/3379809#3379809
http://forums.adobe.com/message/3411262#3411262
I still want to think that there has to be a way to force a 1:1 pixel ratio, but I have not seen any solutions for doing so. There was a suggestion regarding setting the flash stage to NO_SCALE, but I am not entirely sure what the suggested implementation involves.
I would still love to hear ideas on how to create a better solution to this, but for now I suppose I will have to live with it as is. -
JDeveloper 11.1.2.4 Updating JSF
Hello,
Is it possible to update the versions of JSF/Trinidad in JDeveloper to the latest versions?
I am running into issues with components that appear to be outdated.
In particular: <tr:table> and <tr:selectManyShuttle> are not working correctly.
The table component fails to resize and the shuttle component java script is not working.
I have not found solutions in the community so I am wondering if some how updating and deploying the latest jars would help.
Thanks.
-bill
JDeveloper 11.1.2.4 (JDEVADF_11.1.2.4.0_GENERIC_130421.1600.6436.1)
Weblogic 10.3.6 w/ADF extensionsTimo,
Thanks for your response.
Yes I mean the Trinidad components. We are working with the automated conversion from 10g to 11 (with the Trinidad option).
ADF appears to be working OK. The main problem (besides certain components not working) is that the layout was very much toasted.
I checked out the new 12c and it has everything we need - unfortunately we are approved to only use 11g for this conversion.
From what I have read it appears that the implementation of JSF/Trinidad in JDeveloper 11.1.2.4 was an early adopters version and therefore the implementation/components are not up to what is currently available in JSF2. (No annotations, components are missing attributes etc.)
-bill -
Can't press more than 2 directional arrows keys at the same time
I just noticed that in the Macbook Pro Retina that I bought recently there's no way to press more than 2 arrow keys at the same time, or at least the system does not seem to handle it.
All other keys can be pressed at the same time without any problems, so I think that the problem affects only the arrow keys.
I'm surprised that in a modern computer can exist this type of limitation
I think Apple should update the system to allow this - car gamers like me will thanks or feel less disappointed...
Any help would be appreciated!
Thanks
GM@kalos
Uninstalled everything PA, also uninstalled mangler which was the only thing that depended on PA. It didn't work anyway.
No pulseaudio --kill command so I couldn't run.
Checked systemd journal and there is no mention of PA this time.
Checked top, and grepped ps aux and there is no PA there either.
I also rebooted the machine completely just to make sure. However VLC and HTML5 have the same incompatibilities.
_ vlc Videos/anime/fmab/01.mp4
VLC media player 2.1.5 Rincewind (revision 2.1.4-49-gdab6cb5)
[0x1bc30f8] pulse audio output error: PulseAudio server connection failure: Connection refused
[0x1af4118] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
Fontconfig warning: FcPattern object size does not accept value "0"
Fontconfig warning: FcPattern object size does not accept value "0"
Fontconfig warning: FcPattern object size does not accept value "0"
Fontconfig warning: FcPattern object size does not accept value "0"
[0x7fb604001248] main vout display error: Failed to resize display
But the video and audio did work until I ran some HTML5 video, after which the audio worked, and then I opened it again and it didn't work...
@nomorewindows
I see. That's too bad. At least we're not alone.
Last edited by Greduan (2014-11-14 01:34:29)
Maybe you are looking for
-
Need to change the Apple ID programmed into my iPhone
-
New Library - Erase and Sync??!!
OK, I've searched this site and found a lot of opinions, it seems, but I'm looking for a definitive answer, please. My girlfriend has an iPhone that was once registered to her ex-husband's computer/iTunes. She still has the iPhone, but she has a new
-
hello, I tried to understand the documentation on how to create plugin in acrobat reader, and I think I understand you need the authorization of adobe and I have to pay, I understand you correctly? I tried to launch the samples plugins of SDK 9 and a
-
Strange error to be solved - for he who knows
Hi, Below are the part are the codes presented that cause the problem. What happens is very strange to me and i would really appreciate it if someone could help me understand and solve the problem. If the excel file only contains numbers only or stri
-
Make a document workflow in portal
Hello, We have a requirement which we need to have a documents workflow such contains steps, 1. document author submit the documnet 2. each next step can edit/add content to the document and continue to next step. 3. after last step the ducument is r